@nervur.org/genome 0.0.0-stage → 0.37.1

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 (1075) hide show
  1. package/LICENSE +105 -0
  2. package/README.md +28 -2
  3. package/SECURITY.md +8 -0
  4. package/cage/cells/cells.d.ts +25 -0
  5. package/cage/cells/cells.js +114 -0
  6. package/cage/cells/index.d.ts +4 -0
  7. package/cage/cells/index.js +5 -0
  8. package/cage/cells/over.d.ts +5 -0
  9. package/cage/cells/over.js +46 -0
  10. package/cage/cells/range.d.ts +31 -0
  11. package/cage/cells/range.js +226 -0
  12. package/cage/cells/reader.d.ts +17 -0
  13. package/cage/cells/reader.js +20 -0
  14. package/cage/codec/codec.d.ts +2 -0
  15. package/cage/codec/codec.js +5 -0
  16. package/cage/codec/index.d.ts +1 -0
  17. package/cage/codec/index.js +2 -0
  18. package/cage/collation/check.d.ts +7 -0
  19. package/cage/collation/check.js +24 -0
  20. package/cage/collation/collation.d.ts +9 -0
  21. package/cage/collation/collation.js +118 -0
  22. package/cage/collation/index.d.ts +3 -0
  23. package/cage/collation/index.js +4 -0
  24. package/cage/collation/order.d.ts +1 -0
  25. package/cage/collation/order.js +9 -0
  26. package/cage/fill.d.ts +8 -0
  27. package/cage/fill.js +30 -0
  28. package/cage/index.d.ts +6 -0
  29. package/cage/index.js +78 -0
  30. package/cage/lobe/apart.d.ts +34 -0
  31. package/cage/lobe/apart.js +91 -0
  32. package/cage/lobe/calls.d.ts +8 -0
  33. package/cage/lobe/calls.js +35 -0
  34. package/cage/lobe/charges.d.ts +10 -0
  35. package/cage/lobe/charges.js +42 -0
  36. package/cage/lobe/decoder.d.ts +15 -0
  37. package/cage/lobe/decoder.js +159 -0
  38. package/cage/lobe/host.d.ts +27 -0
  39. package/cage/lobe/host.js +107 -0
  40. package/cage/lobe/index.d.ts +7 -0
  41. package/cage/lobe/index.js +32 -0
  42. package/cage/lobe/quo.d.ts +3 -0
  43. package/cage/lobe/quo.js +30 -0
  44. package/cage/lobe/read.d.ts +11 -0
  45. package/cage/lobe/read.js +18 -0
  46. package/cage/lobe/runner.d.ts +45 -0
  47. package/cage/lobe/runner.js +242 -0
  48. package/cage/lobe/seams.d.ts +2 -0
  49. package/cage/lobe/seams.js +124 -0
  50. package/cage/published.d.ts +1 -0
  51. package/cage/published.js +27 -0
  52. package/cage/run/cells.d.ts +9 -0
  53. package/cage/run/cells.js +80 -0
  54. package/cage/run/codes.d.ts +19 -0
  55. package/cage/run/codes.js +101 -0
  56. package/cage/run/given.d.ts +49 -0
  57. package/cage/run/given.js +145 -0
  58. package/cage/run/host.d.ts +13 -0
  59. package/cage/run/host.js +37 -0
  60. package/cage/run/index.d.ts +4 -0
  61. package/cage/run/index.js +5 -0
  62. package/cage/run/input.d.ts +14 -0
  63. package/cage/run/input.js +138 -0
  64. package/cage/run/nest.d.ts +31 -0
  65. package/cage/run/nest.js +187 -0
  66. package/cage/run/run.d.ts +12 -0
  67. package/cage/run/run.js +79 -0
  68. package/cage/run/suspend.d.ts +14 -0
  69. package/cage/run/suspend.js +57 -0
  70. package/contracts/bridge/contract.d.ts +2 -0
  71. package/contracts/bridge/contract.js +57 -0
  72. package/contracts/bridge/index.d.ts +1 -0
  73. package/contracts/bridge/index.js +2 -0
  74. package/contracts/carriers/contract.d.ts +4 -0
  75. package/contracts/carriers/contract.js +485 -0
  76. package/contracts/carriers/index.d.ts +2 -0
  77. package/contracts/carriers/index.js +3 -0
  78. package/contracts/carriers/web.d.ts +2 -0
  79. package/contracts/carriers/web.js +231 -0
  80. package/contracts/chance/contract.d.ts +2 -0
  81. package/contracts/chance/contract.js +25 -0
  82. package/contracts/chance/index.d.ts +1 -0
  83. package/contracts/chance/index.js +2 -0
  84. package/contracts/codec/contract.d.ts +2 -0
  85. package/contracts/codec/contract.js +124 -0
  86. package/contracts/codec/index.d.ts +1 -0
  87. package/contracts/codec/index.js +2 -0
  88. package/contracts/crypto/contract.d.ts +2 -0
  89. package/contracts/crypto/contract.js +204 -0
  90. package/contracts/crypto/index.d.ts +1 -0
  91. package/contracts/crypto/index.js +2 -0
  92. package/contracts/crypto/mlkem.d.ts +2 -0
  93. package/contracts/crypto/mlkem.js +21 -0
  94. package/contracts/crypto/signatures.d.ts +2 -0
  95. package/contracts/crypto/signatures.js +165 -0
  96. package/contracts/crypto/vector.d.ts +73 -0
  97. package/contracts/crypto/vector.js +93 -0
  98. package/contracts/crypto/vectors.d.ts +2 -0
  99. package/contracts/crypto/vectors.js +107 -0
  100. package/contracts/door/contract.d.ts +13 -0
  101. package/contracts/door/contract.js +94 -0
  102. package/contracts/door/index.d.ts +1 -0
  103. package/contracts/door/index.js +2 -0
  104. package/contracts/engine/contract.d.ts +2 -0
  105. package/contracts/engine/contract.js +251 -0
  106. package/contracts/engine/held.d.ts +3 -0
  107. package/contracts/engine/held.js +52 -0
  108. package/contracts/engine/index.d.ts +1 -0
  109. package/contracts/engine/index.js +2 -0
  110. package/contracts/engine/judge.d.ts +5 -0
  111. package/contracts/engine/judge.js +28 -0
  112. package/contracts/engine/sources.d.ts +17 -0
  113. package/contracts/engine/sources.js +67 -0
  114. package/contracts/index.d.ts +14 -0
  115. package/contracts/index.js +15 -0
  116. package/contracts/lobes/contract.d.ts +8 -0
  117. package/contracts/lobes/contract.js +186 -0
  118. package/contracts/lobes/index.d.ts +1 -0
  119. package/contracts/lobes/index.js +2 -0
  120. package/contracts/page-layer/contract.d.ts +2 -0
  121. package/contracts/page-layer/contract.js +218 -0
  122. package/contracts/page-layer/index.d.ts +1 -0
  123. package/contracts/page-layer/index.js +2 -0
  124. package/contracts/queues/contract.d.ts +2 -0
  125. package/contracts/queues/contract.js +281 -0
  126. package/contracts/queues/index.d.ts +1 -0
  127. package/contracts/queues/index.js +2 -0
  128. package/contracts/queues/steps.d.ts +11 -0
  129. package/contracts/queues/steps.js +68 -0
  130. package/contracts/run/contract.d.ts +2 -0
  131. package/contracts/run/contract.js +151 -0
  132. package/contracts/run/index.d.ts +1 -0
  133. package/contracts/run/index.js +2 -0
  134. package/contracts/run/sources.d.ts +6 -0
  135. package/contracts/run/sources.js +45 -0
  136. package/contracts/time/contract.d.ts +2 -0
  137. package/contracts/time/contract.js +113 -0
  138. package/contracts/time/index.d.ts +1 -0
  139. package/contracts/time/index.js +2 -0
  140. package/contracts/unlocker/contract.d.ts +2 -0
  141. package/contracts/unlocker/contract.js +25 -0
  142. package/contracts/unlocker/index.d.ts +1 -0
  143. package/contracts/unlocker/index.js +2 -0
  144. package/contracts/vitals/contract.d.ts +2 -0
  145. package/contracts/vitals/contract.js +50 -0
  146. package/contracts/vitals/index.d.ts +1 -0
  147. package/contracts/vitals/index.js +2 -0
  148. package/docs/authoring.md +1985 -0
  149. package/docs/changelog.md +11 -0
  150. package/docs/guide.md +429 -0
  151. package/engine/bytecode.d.ts +17 -0
  152. package/engine/bytecode.js +170 -0
  153. package/engine/context.d.ts +3 -0
  154. package/engine/context.js +271 -0
  155. package/engine/decoder.d.ts +10 -0
  156. package/engine/decoder.js +286 -0
  157. package/engine/engine.d.ts +21 -0
  158. package/engine/engine.js +271 -0
  159. package/engine/heap.d.ts +5 -0
  160. package/engine/heap.js +47 -0
  161. package/engine/held.d.ts +8 -0
  162. package/engine/held.js +32 -0
  163. package/engine/helpers.d.ts +27 -0
  164. package/engine/helpers.js +177 -0
  165. package/engine/host.d.ts +3 -0
  166. package/engine/host.js +78 -0
  167. package/engine/index.d.ts +1 -0
  168. package/engine/index.js +2 -0
  169. package/engine/loader.d.ts +6 -0
  170. package/engine/loader.js +72 -0
  171. package/engine/lock.d.ts +2 -0
  172. package/engine/lock.js +17 -0
  173. package/engine/state.d.ts +55 -0
  174. package/engine/state.js +107 -0
  175. package/engine/vendor/LICENSE +24 -0
  176. package/engine/vendor/emscripten-module.d.mts +5 -0
  177. package/engine/vendor/emscripten-module.mjs +2 -0
  178. package/engine/vendor/emscripten-module.wasm +0 -0
  179. package/engine/vendor/index.d.ts +1 -0
  180. package/engine/vendor/index.js +2 -0
  181. package/engine/watcher.d.ts +2 -0
  182. package/engine/watcher.js +4 -0
  183. package/engine/writer.d.ts +4 -0
  184. package/engine/writer.js +84 -0
  185. package/engine/written.d.ts +3 -0
  186. package/engine/written.js +86 -0
  187. package/evidence/index.d.ts +2 -0
  188. package/evidence/index.js +3 -0
  189. package/evidence/read.d.ts +42 -0
  190. package/evidence/read.js +210 -0
  191. package/evidence/replay.d.ts +17 -0
  192. package/evidence/replay.js +184 -0
  193. package/faculty/base/faculty.d.ts +24 -0
  194. package/faculty/base/faculty.js +300 -0
  195. package/faculty/base/host.d.ts +140 -0
  196. package/faculty/base/host.js +82 -0
  197. package/faculty/base/index.d.ts +6 -0
  198. package/faculty/base/index.js +29 -0
  199. package/faculty/base/objects.d.ts +82 -0
  200. package/faculty/base/objects.js +79 -0
  201. package/faculty/base/run.d.ts +63 -0
  202. package/faculty/base/run.js +52 -0
  203. package/faculty/base/source.d.ts +18 -0
  204. package/faculty/base/source.js +55 -0
  205. package/faculty/base/text.d.ts +1 -0
  206. package/faculty/base/text.js +3 -0
  207. package/faculty/index.d.ts +2 -0
  208. package/faculty/index.js +52 -0
  209. package/faculty/nervur-faculty.d.ts +28 -0
  210. package/faculty/published.d.ts +1 -0
  211. package/faculty/published.js +34 -0
  212. package/faculty/read/index.d.ts +1 -0
  213. package/faculty/read/index.js +15 -0
  214. package/faculty/read/read.d.ts +32 -0
  215. package/faculty/read/read.js +109 -0
  216. package/genome/backup/backup.d.ts +35 -0
  217. package/genome/backup/backup.js +278 -0
  218. package/genome/backup/file.d.ts +19 -0
  219. package/genome/backup/file.js +66 -0
  220. package/genome/backup/form.d.ts +11 -0
  221. package/genome/backup/form.js +339 -0
  222. package/genome/backup/held.d.ts +14 -0
  223. package/genome/backup/held.js +123 -0
  224. package/genome/backup/index.d.ts +6 -0
  225. package/genome/backup/index.js +29 -0
  226. package/genome/backup/kept.d.ts +117 -0
  227. package/genome/backup/kept.js +386 -0
  228. package/genome/backup/named.d.ts +6 -0
  229. package/genome/backup/named.js +70 -0
  230. package/genome/boot/anchor.d.ts +4 -0
  231. package/genome/boot/anchor.js +35 -0
  232. package/genome/boot/boot.d.ts +33 -0
  233. package/genome/boot/boot.js +223 -0
  234. package/genome/boot/channel.d.ts +11 -0
  235. package/genome/boot/channel.js +32 -0
  236. package/genome/boot/core.d.ts +17 -0
  237. package/genome/boot/core.js +80 -0
  238. package/genome/boot/given.d.ts +15 -0
  239. package/genome/boot/given.js +59 -0
  240. package/genome/boot/index.d.ts +5 -0
  241. package/genome/boot/index.js +6 -0
  242. package/genome/boot/invitation.d.ts +9 -0
  243. package/genome/boot/invitation.js +40 -0
  244. package/genome/boot/moved.d.ts +17 -0
  245. package/genome/boot/moved.js +133 -0
  246. package/genome/boot/organs.d.ts +8 -0
  247. package/genome/boot/organs.js +62 -0
  248. package/genome/boot/present.d.ts +34 -0
  249. package/genome/boot/present.js +136 -0
  250. package/genome/boot/renew.d.ts +13 -0
  251. package/genome/boot/renew.js +24 -0
  252. package/genome/boot/shelf.d.ts +16 -0
  253. package/genome/boot/shelf.js +60 -0
  254. package/genome/boot/skin.d.ts +14 -0
  255. package/genome/boot/skin.js +66 -0
  256. package/genome/brain/accept.d.ts +12 -0
  257. package/genome/brain/accept.js +120 -0
  258. package/genome/brain/addresses.d.ts +4 -0
  259. package/genome/brain/addresses.js +32 -0
  260. package/genome/brain/anchor.d.ts +22 -0
  261. package/genome/brain/anchor.js +155 -0
  262. package/genome/brain/askers.d.ts +5 -0
  263. package/genome/brain/askers.js +25 -0
  264. package/genome/brain/assets-method.d.ts +3 -0
  265. package/genome/brain/assets-method.js +28 -0
  266. package/genome/brain/assets.d.ts +4 -0
  267. package/genome/brain/assets.js +61 -0
  268. package/genome/brain/blueprint.d.ts +5 -0
  269. package/genome/brain/blueprint.js +528 -0
  270. package/genome/brain/brain.d.ts +19 -0
  271. package/genome/brain/brain.js +291 -0
  272. package/genome/brain/cede.d.ts +7 -0
  273. package/genome/brain/cede.js +179 -0
  274. package/genome/brain/changes.d.ts +23 -0
  275. package/genome/brain/changes.js +91 -0
  276. package/genome/brain/character.d.ts +8 -0
  277. package/genome/brain/character.js +55 -0
  278. package/genome/brain/children.d.ts +7 -0
  279. package/genome/brain/children.js +37 -0
  280. package/genome/brain/clock.d.ts +18 -0
  281. package/genome/brain/clock.js +91 -0
  282. package/genome/brain/ended.d.ts +3 -0
  283. package/genome/brain/ended.js +21 -0
  284. package/genome/brain/ends.d.ts +9 -0
  285. package/genome/brain/ends.js +109 -0
  286. package/genome/brain/expiry.d.ts +21 -0
  287. package/genome/brain/expiry.js +87 -0
  288. package/genome/brain/faculties.d.ts +16 -0
  289. package/genome/brain/faculties.js +88 -0
  290. package/genome/brain/far.d.ts +53 -0
  291. package/genome/brain/far.js +330 -0
  292. package/genome/brain/fields.d.ts +1 -0
  293. package/genome/brain/fields.js +5 -0
  294. package/genome/brain/genome.d.ts +8 -0
  295. package/genome/brain/genome.js +46 -0
  296. package/genome/brain/given.d.ts +4 -0
  297. package/genome/brain/given.js +15 -0
  298. package/genome/brain/granting.d.ts +23 -0
  299. package/genome/brain/granting.js +98 -0
  300. package/genome/brain/grants.d.ts +20 -0
  301. package/genome/brain/grants.js +70 -0
  302. package/genome/brain/guide.d.ts +2 -0
  303. package/genome/brain/guide.js +5 -0
  304. package/genome/brain/holds.d.ts +48 -0
  305. package/genome/brain/holds.js +197 -0
  306. package/genome/brain/index.d.ts +34 -0
  307. package/genome/brain/index.js +35 -0
  308. package/genome/brain/invitations.d.ts +6 -0
  309. package/genome/brain/invitations.js +80 -0
  310. package/genome/brain/kept.d.ts +32 -0
  311. package/genome/brain/kept.js +189 -0
  312. package/genome/brain/kit.d.ts +85 -0
  313. package/genome/brain/kit.js +101 -0
  314. package/genome/brain/landing.d.ts +6 -0
  315. package/genome/brain/landing.js +45 -0
  316. package/genome/brain/lapses.d.ts +8 -0
  317. package/genome/brain/lapses.js +53 -0
  318. package/genome/brain/letters.d.ts +8 -0
  319. package/genome/brain/letters.js +67 -0
  320. package/genome/brain/life.d.ts +24 -0
  321. package/genome/brain/life.js +205 -0
  322. package/genome/brain/limits.d.ts +14 -0
  323. package/genome/brain/limits.js +159 -0
  324. package/genome/brain/lined.d.ts +23 -0
  325. package/genome/brain/lined.js +90 -0
  326. package/genome/brain/marks.d.ts +22 -0
  327. package/genome/brain/marks.js +47 -0
  328. package/genome/brain/methods.d.ts +7 -0
  329. package/genome/brain/methods.js +243 -0
  330. package/genome/brain/mouth.d.ts +38 -0
  331. package/genome/brain/mouth.js +302 -0
  332. package/genome/brain/moves.d.ts +14 -0
  333. package/genome/brain/moves.js +81 -0
  334. package/genome/brain/nerves.d.ts +12 -0
  335. package/genome/brain/nerves.js +267 -0
  336. package/genome/brain/next.d.ts +6 -0
  337. package/genome/brain/next.js +25 -0
  338. package/genome/brain/notes.d.ts +9 -0
  339. package/genome/brain/notes.js +73 -0
  340. package/genome/brain/occupants.d.ts +7 -0
  341. package/genome/brain/occupants.js +79 -0
  342. package/genome/brain/old.d.ts +4 -0
  343. package/genome/brain/old.js +44 -0
  344. package/genome/brain/organ.d.ts +42 -0
  345. package/genome/brain/organ.js +248 -0
  346. package/genome/brain/organs.d.ts +28 -0
  347. package/genome/brain/organs.js +100 -0
  348. package/genome/brain/owed.d.ts +30 -0
  349. package/genome/brain/owed.js +58 -0
  350. package/genome/brain/owners.d.ts +15 -0
  351. package/genome/brain/owners.js +112 -0
  352. package/genome/brain/paged.d.ts +10 -0
  353. package/genome/brain/paged.js +26 -0
  354. package/genome/brain/pieces.d.ts +15 -0
  355. package/genome/brain/pieces.js +74 -0
  356. package/genome/brain/presence.d.ts +14 -0
  357. package/genome/brain/presence.js +111 -0
  358. package/genome/brain/reclaim.d.ts +7 -0
  359. package/genome/brain/reclaim.js +28 -0
  360. package/genome/brain/recovery.d.ts +34 -0
  361. package/genome/brain/recovery.js +165 -0
  362. package/genome/brain/reference-methods.d.ts +4 -0
  363. package/genome/brain/reference-methods.js +62 -0
  364. package/genome/brain/references.d.ts +22 -0
  365. package/genome/brain/references.js +128 -0
  366. package/genome/brain/reflex.d.ts +19 -0
  367. package/genome/brain/reflex.js +64 -0
  368. package/genome/brain/relations.d.ts +61 -0
  369. package/genome/brain/relations.js +320 -0
  370. package/genome/brain/road.d.ts +3 -0
  371. package/genome/brain/road.js +30 -0
  372. package/genome/brain/roll.d.ts +27 -0
  373. package/genome/brain/roll.js +144 -0
  374. package/genome/brain/schemas.d.ts +23 -0
  375. package/genome/brain/schemas.js +296 -0
  376. package/genome/brain/silence.d.ts +9 -0
  377. package/genome/brain/silence.js +30 -0
  378. package/genome/brain/space.d.ts +17 -0
  379. package/genome/brain/space.js +70 -0
  380. package/genome/brain/standing-methods.d.ts +4 -0
  381. package/genome/brain/standing-methods.js +78 -0
  382. package/genome/brain/standings.d.ts +57 -0
  383. package/genome/brain/standings.js +161 -0
  384. package/genome/brain/state.d.ts +66 -0
  385. package/genome/brain/state.js +322 -0
  386. package/genome/brain/still.d.ts +33 -0
  387. package/genome/brain/still.js +84 -0
  388. package/genome/brain/switch.d.ts +6 -0
  389. package/genome/brain/switch.js +24 -0
  390. package/genome/brain/tear.d.ts +14 -0
  391. package/genome/brain/tear.js +114 -0
  392. package/genome/brain/toward.d.ts +3 -0
  393. package/genome/brain/toward.js +21 -0
  394. package/genome/brain/upgrade.d.ts +3 -0
  395. package/genome/brain/upgrade.js +18 -0
  396. package/genome/brain/uses.d.ts +12 -0
  397. package/genome/brain/uses.js +62 -0
  398. package/genome/brain/version.d.ts +33 -0
  399. package/genome/brain/version.js +405 -0
  400. package/genome/brain/waiting.d.ts +3 -0
  401. package/genome/brain/waiting.js +27 -0
  402. package/genome/brain/wake.d.ts +26 -0
  403. package/genome/brain/wake.js +112 -0
  404. package/genome/brain/warded.d.ts +7 -0
  405. package/genome/brain/warded.js +67 -0
  406. package/genome/brain/wards.d.ts +14 -0
  407. package/genome/brain/wards.js +52 -0
  408. package/genome/brain/whole.d.ts +3 -0
  409. package/genome/brain/whole.js +136 -0
  410. package/genome/bridge/again.d.ts +9 -0
  411. package/genome/bridge/again.js +111 -0
  412. package/genome/bridge/carried.d.ts +10 -0
  413. package/genome/bridge/carried.js +165 -0
  414. package/genome/bridge/frames.d.ts +3 -0
  415. package/genome/bridge/frames.js +7 -0
  416. package/genome/bridge/gear.d.ts +19 -0
  417. package/genome/bridge/gear.js +26 -0
  418. package/genome/bridge/half.d.ts +12 -0
  419. package/genome/bridge/half.js +144 -0
  420. package/genome/bridge/index.d.ts +4 -0
  421. package/genome/bridge/index.js +5 -0
  422. package/genome/cache/cache.d.ts +20 -0
  423. package/genome/cache/cache.js +213 -0
  424. package/genome/cache/index.d.ts +3 -0
  425. package/genome/cache/index.js +4 -0
  426. package/genome/cache/snapshot.d.ts +17 -0
  427. package/genome/cache/snapshot.js +164 -0
  428. package/genome/cache/spaces.d.ts +14 -0
  429. package/genome/cache/spaces.js +91 -0
  430. package/genome/cage/index.d.ts +2 -0
  431. package/genome/cage/index.js +3 -0
  432. package/genome/cage/output.d.ts +3 -0
  433. package/genome/cage/output.js +75 -0
  434. package/genome/cage/reader.d.ts +10 -0
  435. package/genome/cage/reader.js +65 -0
  436. package/genome/cage/runner.d.ts +5 -0
  437. package/genome/cage/runner.js +157 -0
  438. package/genome/carry/apart.d.ts +24 -0
  439. package/genome/carry/apart.js +170 -0
  440. package/genome/carry/before.d.ts +22 -0
  441. package/genome/carry/before.js +86 -0
  442. package/genome/carry/carry.d.ts +6 -0
  443. package/genome/carry/carry.js +447 -0
  444. package/genome/carry/count.d.ts +72 -0
  445. package/genome/carry/count.js +142 -0
  446. package/genome/carry/dead.d.ts +17 -0
  447. package/genome/carry/dead.js +53 -0
  448. package/genome/carry/disconnect.d.ts +3 -0
  449. package/genome/carry/disconnect.js +21 -0
  450. package/genome/carry/durable.d.ts +36 -0
  451. package/genome/carry/durable.js +148 -0
  452. package/genome/carry/flight.d.ts +50 -0
  453. package/genome/carry/flight.js +338 -0
  454. package/genome/carry/flush.d.ts +12 -0
  455. package/genome/carry/flush.js +37 -0
  456. package/genome/carry/gear.d.ts +91 -0
  457. package/genome/carry/gear.js +164 -0
  458. package/genome/carry/held.d.ts +66 -0
  459. package/genome/carry/held.js +174 -0
  460. package/genome/carry/index.d.ts +15 -0
  461. package/genome/carry/index.js +38 -0
  462. package/genome/carry/letters.d.ts +31 -0
  463. package/genome/carry/letters.js +222 -0
  464. package/genome/carry/moving.d.ts +21 -0
  465. package/genome/carry/moving.js +179 -0
  466. package/genome/carry/organ.d.ts +25 -0
  467. package/genome/carry/organ.js +97 -0
  468. package/genome/carry/read.d.ts +4 -0
  469. package/genome/carry/read.js +24 -0
  470. package/genome/carry/ready.d.ts +26 -0
  471. package/genome/carry/ready.js +78 -0
  472. package/genome/carry/run.d.ts +22 -0
  473. package/genome/carry/run.js +146 -0
  474. package/genome/carry/shown.d.ts +4 -0
  475. package/genome/carry/shown.js +66 -0
  476. package/genome/carry/sick.d.ts +5 -0
  477. package/genome/carry/sick.js +37 -0
  478. package/genome/carry/span.d.ts +1 -0
  479. package/genome/carry/span.js +3 -0
  480. package/genome/carry/stamp.d.ts +3 -0
  481. package/genome/carry/stamp.js +19 -0
  482. package/genome/carry/standing.d.ts +7 -0
  483. package/genome/carry/standing.js +37 -0
  484. package/genome/carry/status.d.ts +12 -0
  485. package/genome/carry/status.js +36 -0
  486. package/genome/carry/still.d.ts +29 -0
  487. package/genome/carry/still.js +76 -0
  488. package/genome/carry/trace.d.ts +8 -0
  489. package/genome/carry/trace.js +24 -0
  490. package/genome/carry/waits.d.ts +20 -0
  491. package/genome/carry/waits.js +138 -0
  492. package/genome/carry/wire.d.ts +23 -0
  493. package/genome/carry/wire.js +47 -0
  494. package/genome/carry/words.d.ts +1 -0
  495. package/genome/carry/words.js +3 -0
  496. package/genome/carry/zero.d.ts +6 -0
  497. package/genome/carry/zero.js +27 -0
  498. package/genome/cells/digest.d.ts +8 -0
  499. package/genome/cells/digest.js +86 -0
  500. package/genome/cells/index.d.ts +2 -0
  501. package/genome/cells/index.js +15 -0
  502. package/genome/cells/rows.d.ts +18 -0
  503. package/genome/cells/rows.js +63 -0
  504. package/genome/cells/sum.d.ts +6 -0
  505. package/genome/cells/sum.js +35 -0
  506. package/genome/commits/commits.d.ts +20 -0
  507. package/genome/commits/commits.js +77 -0
  508. package/genome/commits/index.d.ts +1 -0
  509. package/genome/commits/index.js +2 -0
  510. package/genome/configuration/configuration.d.ts +2 -0
  511. package/genome/configuration/configuration.js +98 -0
  512. package/genome/configuration/index.d.ts +1 -0
  513. package/genome/configuration/index.js +2 -0
  514. package/genome/defaults/index.d.ts +4 -0
  515. package/genome/defaults/index.js +12 -0
  516. package/genome/entry/entry.d.ts +4 -0
  517. package/genome/entry/entry.js +27 -0
  518. package/genome/entry/halves.d.ts +6 -0
  519. package/genome/entry/halves.js +43 -0
  520. package/genome/entry/index.d.ts +2 -0
  521. package/genome/entry/index.js +3 -0
  522. package/genome/faculties/defaults/index.d.ts +5 -0
  523. package/genome/faculties/defaults/index.js +11 -0
  524. package/genome/faculties/ear/blueprint.d.ts +2 -0
  525. package/genome/faculties/ear/blueprint.js +254 -0
  526. package/genome/faculties/ear/ear.d.ts +18 -0
  527. package/genome/faculties/ear/ear.js +775 -0
  528. package/genome/faculties/ear/index.d.ts +2 -0
  529. package/genome/faculties/ear/index.js +3 -0
  530. package/genome/faculties/ear/source.d.ts +1 -0
  531. package/genome/faculties/ear/source.js +5 -0
  532. package/genome/faculties/ear/text.d.ts +1 -0
  533. package/genome/faculties/ear/text.js +3 -0
  534. package/genome/faculties/library/blueprint.d.ts +2 -0
  535. package/genome/faculties/library/blueprint.js +271 -0
  536. package/genome/faculties/library/index.d.ts +4 -0
  537. package/genome/faculties/library/index.js +5 -0
  538. package/genome/faculties/library/library.d.ts +26 -0
  539. package/genome/faculties/library/library.js +1227 -0
  540. package/genome/faculties/library/shelf.d.ts +15 -0
  541. package/genome/faculties/library/shelf.js +20 -0
  542. package/genome/faculties/library/source.d.ts +1 -0
  543. package/genome/faculties/library/source.js +5 -0
  544. package/genome/faculties/library/text.d.ts +1 -0
  545. package/genome/faculties/library/text.js +3 -0
  546. package/genome/faculties/mouth/blueprint.d.ts +2 -0
  547. package/genome/faculties/mouth/blueprint.js +171 -0
  548. package/genome/faculties/mouth/index.d.ts +2 -0
  549. package/genome/faculties/mouth/index.js +3 -0
  550. package/genome/faculties/mouth/mouth.d.ts +16 -0
  551. package/genome/faculties/mouth/mouth.js +543 -0
  552. package/genome/faculties/mouth/source.d.ts +1 -0
  553. package/genome/faculties/mouth/source.js +5 -0
  554. package/genome/faculties/mouth/text.d.ts +1 -0
  555. package/genome/faculties/mouth/text.js +3 -0
  556. package/genome/faculties/scheduler/blueprint.d.ts +2 -0
  557. package/genome/faculties/scheduler/blueprint.js +92 -0
  558. package/genome/faculties/scheduler/index.d.ts +2 -0
  559. package/genome/faculties/scheduler/index.js +3 -0
  560. package/genome/faculties/scheduler/scheduler.d.ts +13 -0
  561. package/genome/faculties/scheduler/scheduler.js +253 -0
  562. package/genome/faculties/scheduler/source.d.ts +1 -0
  563. package/genome/faculties/scheduler/source.js +5 -0
  564. package/genome/faculties/scheduler/text.d.ts +1 -0
  565. package/genome/faculties/scheduler/text.js +3 -0
  566. package/genome/header/file.d.ts +33 -0
  567. package/genome/header/file.js +121 -0
  568. package/genome/header/header.d.ts +11 -0
  569. package/genome/header/header.js +86 -0
  570. package/genome/header/index.d.ts +2 -0
  571. package/genome/header/index.js +19 -0
  572. package/genome/ids/ids.d.ts +11 -0
  573. package/genome/ids/ids.js +23 -0
  574. package/genome/ids/index.d.ts +1 -0
  575. package/genome/ids/index.js +2 -0
  576. package/genome/index.d.ts +11 -0
  577. package/genome/index.js +32 -0
  578. package/genome/key/arrivals.d.ts +7 -0
  579. package/genome/key/arrivals.js +148 -0
  580. package/genome/key/asks.d.ts +7 -0
  581. package/genome/key/asks.js +92 -0
  582. package/genome/key/blueprint.d.ts +3 -0
  583. package/genome/key/blueprint.js +149 -0
  584. package/genome/key/door.d.ts +12 -0
  585. package/genome/key/door.js +94 -0
  586. package/genome/key/forms.d.ts +11 -0
  587. package/genome/key/forms.js +45 -0
  588. package/genome/key/handed.d.ts +7 -0
  589. package/genome/key/handed.js +81 -0
  590. package/genome/key/index.d.ts +9 -0
  591. package/genome/key/index.js +18 -0
  592. package/genome/key/key.d.ts +9 -0
  593. package/genome/key/key.js +34 -0
  594. package/genome/key/kit.d.ts +27 -0
  595. package/genome/key/kit.js +85 -0
  596. package/genome/key/records.d.ts +12 -0
  597. package/genome/key/records.js +70 -0
  598. package/genome/key/row.d.ts +4 -0
  599. package/genome/key/row.js +22 -0
  600. package/genome/key/shapes.d.ts +54 -0
  601. package/genome/key/shapes.js +160 -0
  602. package/genome/key/standing.d.ts +19 -0
  603. package/genome/key/standing.js +108 -0
  604. package/genome/log/frame.d.ts +11 -0
  605. package/genome/log/frame.js +40 -0
  606. package/genome/log/index.d.ts +3 -0
  607. package/genome/log/index.js +12 -0
  608. package/genome/log/open.d.ts +31 -0
  609. package/genome/log/open.js +243 -0
  610. package/genome/log/pairs.d.ts +8 -0
  611. package/genome/log/pairs.js +187 -0
  612. package/genome/log/record.d.ts +8 -0
  613. package/genome/log/record.js +72 -0
  614. package/genome/log/store.d.ts +31 -0
  615. package/genome/log/store.js +291 -0
  616. package/genome/map/declare.d.ts +4 -0
  617. package/genome/map/declare.js +52 -0
  618. package/genome/map/handler.d.ts +4 -0
  619. package/genome/map/handler.js +37 -0
  620. package/genome/map/index.d.ts +8 -0
  621. package/genome/map/index.js +9 -0
  622. package/genome/map/kin.d.ts +12 -0
  623. package/genome/map/kin.js +63 -0
  624. package/genome/map/map.d.ts +40 -0
  625. package/genome/map/map.js +217 -0
  626. package/genome/map/nodes.d.ts +9 -0
  627. package/genome/map/nodes.js +35 -0
  628. package/genome/map/off.d.ts +3 -0
  629. package/genome/map/off.js +10 -0
  630. package/genome/map/order.d.ts +9 -0
  631. package/genome/map/order.js +105 -0
  632. package/genome/map/read.d.ts +4 -0
  633. package/genome/map/read.js +32 -0
  634. package/genome/map/remove.d.ts +3 -0
  635. package/genome/map/remove.js +30 -0
  636. package/genome/map/rows.d.ts +48 -0
  637. package/genome/map/rows.js +146 -0
  638. package/genome/map/skin.d.ts +10 -0
  639. package/genome/map/skin.js +35 -0
  640. package/genome/map/stands.d.ts +5 -0
  641. package/genome/map/stands.js +17 -0
  642. package/genome/map/unwired.d.ts +7 -0
  643. package/genome/map/unwired.js +36 -0
  644. package/genome/map/wires.d.ts +9 -0
  645. package/genome/map/wires.js +103 -0
  646. package/genome/network/blueprint.d.ts +4 -0
  647. package/genome/network/blueprint.js +111 -0
  648. package/genome/network/index.d.ts +3 -0
  649. package/genome/network/index.js +4 -0
  650. package/genome/network/network.d.ts +18 -0
  651. package/genome/network/network.js +248 -0
  652. package/genome/network/sent.d.ts +4 -0
  653. package/genome/network/sent.js +225 -0
  654. package/genome/network/served.d.ts +4 -0
  655. package/genome/network/served.js +162 -0
  656. package/genome/network/still.d.ts +26 -0
  657. package/genome/network/still.js +46 -0
  658. package/genome/network/web.d.ts +59 -0
  659. package/genome/network/web.js +74 -0
  660. package/genome/organism/body.d.ts +53 -0
  661. package/genome/organism/body.js +256 -0
  662. package/genome/organism/halves.d.ts +22 -0
  663. package/genome/organism/halves.js +181 -0
  664. package/genome/organism/index.d.ts +5 -0
  665. package/genome/organism/index.js +6 -0
  666. package/genome/organism/made.d.ts +73 -0
  667. package/genome/organism/made.js +414 -0
  668. package/genome/organism/organism.d.ts +9 -0
  669. package/genome/organism/organism.js +203 -0
  670. package/genome/organism/reclaim.d.ts +10 -0
  671. package/genome/organism/reclaim.js +41 -0
  672. package/genome/organism/still.d.ts +12 -0
  673. package/genome/organism/still.js +38 -0
  674. package/genome/organism/thaw.d.ts +10 -0
  675. package/genome/organism/thaw.js +23 -0
  676. package/genome/organism/told.d.ts +10 -0
  677. package/genome/organism/told.js +140 -0
  678. package/genome/pages/codes.d.ts +13 -0
  679. package/genome/pages/codes.js +16 -0
  680. package/genome/pages/file.d.ts +23 -0
  681. package/genome/pages/file.js +174 -0
  682. package/genome/pages/index.d.ts +2 -0
  683. package/genome/pages/index.js +3 -0
  684. package/genome/pages/vfs.d.ts +13 -0
  685. package/genome/pages/vfs.js +186 -0
  686. package/genome/presence/index.d.ts +1 -0
  687. package/genome/presence/index.js +2 -0
  688. package/genome/presence/organs.d.ts +8 -0
  689. package/genome/presence/organs.js +13 -0
  690. package/genome/pure/entry.d.ts +16 -0
  691. package/genome/pure/entry.js +76 -0
  692. package/genome/pure/frozen.d.ts +9 -0
  693. package/genome/pure/frozen.js +273 -0
  694. package/genome/pure/halves.d.ts +8 -0
  695. package/genome/pure/halves.js +62 -0
  696. package/genome/pure/index.d.ts +7 -0
  697. package/genome/pure/index.js +8 -0
  698. package/genome/queues/index.d.ts +1 -0
  699. package/genome/queues/index.js +2 -0
  700. package/genome/queues/queues.d.ts +2 -0
  701. package/genome/queues/queues.js +210 -0
  702. package/genome/self/blueprint.d.ts +5 -0
  703. package/genome/self/blueprint.js +36 -0
  704. package/genome/self/index.d.ts +2 -0
  705. package/genome/self/index.js +3 -0
  706. package/genome/self/self.d.ts +9 -0
  707. package/genome/self/self.js +49 -0
  708. package/genome/sqlite/database.d.ts +24 -0
  709. package/genome/sqlite/database.js +243 -0
  710. package/genome/sqlite/decoder.d.ts +10 -0
  711. package/genome/sqlite/decoder.js +92 -0
  712. package/genome/sqlite/imports.d.ts +9 -0
  713. package/genome/sqlite/imports.js +93 -0
  714. package/genome/sqlite/index.d.ts +6 -0
  715. package/genome/sqlite/index.js +7 -0
  716. package/genome/sqlite/memory.d.ts +14 -0
  717. package/genome/sqlite/memory.js +79 -0
  718. package/genome/sqlite/sqlite.d.ts +30 -0
  719. package/genome/sqlite/sqlite.js +77 -0
  720. package/genome/sqlite/table.d.ts +8 -0
  721. package/genome/sqlite/table.js +66 -0
  722. package/genome/sqlite/vendor/LICENSE +21 -0
  723. package/genome/sqlite/vendor/sqlite3.wasm +0 -0
  724. package/genome/store/index.d.ts +6 -0
  725. package/genome/store/index.js +16 -0
  726. package/genome/store/landing.d.ts +6 -0
  727. package/genome/store/landing.js +50 -0
  728. package/genome/store/open.d.ts +37 -0
  729. package/genome/store/open.js +301 -0
  730. package/genome/store/outside.d.ts +30 -0
  731. package/genome/store/outside.js +164 -0
  732. package/genome/store/reading.d.ts +2 -0
  733. package/genome/store/reading.js +121 -0
  734. package/genome/store/rescue.d.ts +15 -0
  735. package/genome/store/rescue.js +168 -0
  736. package/genome/store/salvage.d.ts +18 -0
  737. package/genome/store/salvage.js +158 -0
  738. package/genome/store/schema.d.ts +17 -0
  739. package/genome/store/schema.js +77 -0
  740. package/genome/store/store.d.ts +53 -0
  741. package/genome/store/store.js +531 -0
  742. package/genome/store/unwritten.d.ts +2 -0
  743. package/genome/store/unwritten.js +57 -0
  744. package/genome/store/witness.d.ts +17 -0
  745. package/genome/store/witness.js +87 -0
  746. package/genome/timer/index.d.ts +1 -0
  747. package/genome/timer/index.js +2 -0
  748. package/genome/timer/timer.d.ts +10 -0
  749. package/genome/timer/timer.js +167 -0
  750. package/kit/brain/organs.d.ts +6 -0
  751. package/kit/brain/organs.js +33 -0
  752. package/kit/brain/rig.d.ts +58 -0
  753. package/kit/brain/rig.js +259 -0
  754. package/kit/brain/shelf.d.ts +3 -0
  755. package/kit/brain/shelf.js +42 -0
  756. package/kit/core/answers.d.ts +7 -0
  757. package/kit/core/answers.js +23 -0
  758. package/kit/core/chance.d.ts +4 -0
  759. package/kit/core/chance.js +18 -0
  760. package/kit/core/clock.d.ts +8 -0
  761. package/kit/core/clock.js +39 -0
  762. package/kit/core/configuration.d.ts +2 -0
  763. package/kit/core/configuration.js +17 -0
  764. package/kit/core/data.d.ts +3 -0
  765. package/kit/core/data.js +41 -0
  766. package/kit/core/foundation.d.ts +30 -0
  767. package/kit/core/foundation.js +139 -0
  768. package/kit/core/held.d.ts +11 -0
  769. package/kit/core/held.js +82 -0
  770. package/kit/core/index.d.ts +10 -0
  771. package/kit/core/index.js +26 -0
  772. package/kit/core/puppets.d.ts +8 -0
  773. package/kit/core/puppets.js +17 -0
  774. package/kit/core/stamp.d.ts +2 -0
  775. package/kit/core/stamp.js +10 -0
  776. package/kit/core/wasm.d.ts +3 -0
  777. package/kit/core/wasm.js +11 -0
  778. package/kit/faculty/base/rig.d.ts +22 -0
  779. package/kit/faculty/base/rig.js +97 -0
  780. package/kit/index.d.ts +11 -0
  781. package/kit/index.js +22 -0
  782. package/kit/organism/bakery.d.ts +31 -0
  783. package/kit/organism/bakery.js +223 -0
  784. package/kit/organism/carriers.d.ts +25 -0
  785. package/kit/organism/carriers.js +93 -0
  786. package/kit/organism/forms.d.ts +10 -0
  787. package/kit/organism/forms.js +31 -0
  788. package/kit/organism/heard.d.ts +4 -0
  789. package/kit/organism/heard.js +42 -0
  790. package/kit/organism/laid.d.ts +8 -0
  791. package/kit/organism/laid.js +32 -0
  792. package/kit/organism/link.d.ts +14 -0
  793. package/kit/organism/link.js +130 -0
  794. package/kit/organism/notes.d.ts +2 -0
  795. package/kit/organism/notes.js +45 -0
  796. package/kit/organism/peer.d.ts +7 -0
  797. package/kit/organism/peer.js +34 -0
  798. package/kit/organism/rig.d.ts +59 -0
  799. package/kit/organism/rig.js +252 -0
  800. package/kit/organism/vitals.d.ts +9 -0
  801. package/kit/organism/vitals.js +44 -0
  802. package/kit/pages/index.d.ts +1 -0
  803. package/kit/pages/index.js +2 -0
  804. package/kit/pages/memory.d.ts +23 -0
  805. package/kit/pages/memory.js +264 -0
  806. package/kit/presence/console-half.d.ts +6 -0
  807. package/kit/presence/console-half.js +27 -0
  808. package/kit/presence/home.d.ts +33 -0
  809. package/kit/presence/home.js +192 -0
  810. package/kit/presence/pipe.d.ts +15 -0
  811. package/kit/presence/pipe.js +66 -0
  812. package/kit/presence/screen-half.d.ts +16 -0
  813. package/kit/presence/screen-half.js +180 -0
  814. package/kit/presence/skins.d.ts +17 -0
  815. package/kit/presence/skins.js +99 -0
  816. package/kit/puppet/boundary.d.ts +11 -0
  817. package/kit/puppet/boundary.js +103 -0
  818. package/kit/puppet/class.d.ts +3 -0
  819. package/kit/puppet/class.js +56 -0
  820. package/kit/puppet/defaults.d.ts +2 -0
  821. package/kit/puppet/defaults.js +14 -0
  822. package/kit/puppet/engine.d.ts +3 -0
  823. package/kit/puppet/engine.js +50 -0
  824. package/kit/puppet/index.d.ts +3 -0
  825. package/kit/puppet/index.js +4 -0
  826. package/kit/puppet/puppet.d.ts +41 -0
  827. package/kit/puppet/puppet.js +229 -0
  828. package/package.json +114 -4
  829. package/quo/box/box.d.ts +34 -0
  830. package/quo/box/box.js +137 -0
  831. package/quo/box/index.d.ts +4 -0
  832. package/quo/box/index.js +5 -0
  833. package/quo/box/reply.d.ts +12 -0
  834. package/quo/box/reply.js +64 -0
  835. package/quo/box/room.d.ts +3 -0
  836. package/quo/box/room.js +27 -0
  837. package/quo/box/sizes.d.ts +7 -0
  838. package/quo/box/sizes.js +10 -0
  839. package/quo/crypto/ed25519.d.ts +1 -0
  840. package/quo/crypto/ed25519.js +44 -0
  841. package/quo/crypto/index.d.ts +1 -0
  842. package/quo/crypto/index.js +2 -0
  843. package/quo/crypto/noble.d.ts +2 -0
  844. package/quo/crypto/noble.js +46 -0
  845. package/quo/door/door.d.ts +36 -0
  846. package/quo/door/door.js +207 -0
  847. package/quo/door/index.d.ts +2 -0
  848. package/quo/door/index.js +3 -0
  849. package/quo/door/occupant.d.ts +17 -0
  850. package/quo/door/occupant.js +55 -0
  851. package/quo/door/payload.d.ts +9 -0
  852. package/quo/door/payload.js +67 -0
  853. package/quo/frame/frame.d.ts +23 -0
  854. package/quo/frame/frame.js +160 -0
  855. package/quo/frame/index.d.ts +1 -0
  856. package/quo/frame/index.js +2 -0
  857. package/quo/index.d.ts +7 -0
  858. package/quo/index.js +55 -0
  859. package/quo/published.d.ts +1 -0
  860. package/quo/published.js +51 -0
  861. package/quo/standing/index.d.ts +3 -0
  862. package/quo/standing/index.js +4 -0
  863. package/quo/standing/once.d.ts +14 -0
  864. package/quo/standing/once.js +66 -0
  865. package/quo/standing/reading.d.ts +28 -0
  866. package/quo/standing/reading.js +99 -0
  867. package/quo/standing/standing.d.ts +44 -0
  868. package/quo/standing/standing.js +235 -0
  869. package/quo/value/address.d.ts +2 -0
  870. package/quo/value/address.js +89 -0
  871. package/quo/value/fields.d.ts +2 -0
  872. package/quo/value/fields.js +14 -0
  873. package/quo/value/index.d.ts +3 -0
  874. package/quo/value/index.js +4 -0
  875. package/quo/value/json.d.ts +16 -0
  876. package/quo/value/json.js +194 -0
  877. package/quo/ward/index.d.ts +6 -0
  878. package/quo/ward/index.js +19 -0
  879. package/quo/ward/invitation.d.ts +16 -0
  880. package/quo/ward/invitation.js +100 -0
  881. package/quo/ward/link.d.ts +38 -0
  882. package/quo/ward/link.js +94 -0
  883. package/quo/ward/lock.d.ts +1 -0
  884. package/quo/ward/lock.js +17 -0
  885. package/quo/ward/qr.d.ts +5 -0
  886. package/quo/ward/qr.js +279 -0
  887. package/quo/ward/vouch.d.ts +5 -0
  888. package/quo/ward/vouch.js +33 -0
  889. package/quo/ward/ward.d.ts +19 -0
  890. package/quo/ward/ward.js +63 -0
  891. package/screen/access.d.ts +32 -0
  892. package/screen/access.js +40 -0
  893. package/screen/compose.d.ts +14 -0
  894. package/screen/compose.js +137 -0
  895. package/screen/diff.d.ts +19 -0
  896. package/screen/diff.js +152 -0
  897. package/screen/digest.d.ts +1 -0
  898. package/screen/digest.js +60 -0
  899. package/screen/drawn.d.ts +35 -0
  900. package/screen/drawn.js +89 -0
  901. package/screen/fill.d.ts +12 -0
  902. package/screen/fill.js +91 -0
  903. package/screen/hydrate.d.ts +14 -0
  904. package/screen/hydrate.js +67 -0
  905. package/screen/index.d.ts +15 -0
  906. package/screen/index.js +26 -0
  907. package/screen/laid.d.ts +29 -0
  908. package/screen/laid.js +157 -0
  909. package/screen/match.d.ts +13 -0
  910. package/screen/match.js +63 -0
  911. package/screen/motion.d.ts +18 -0
  912. package/screen/motion.js +65 -0
  913. package/screen/press.d.ts +12 -0
  914. package/screen/press.js +63 -0
  915. package/screen/region.d.ts +6 -0
  916. package/screen/region.js +23 -0
  917. package/screen/route.d.ts +13 -0
  918. package/screen/route.js +74 -0
  919. package/screen/screen.d.ts +15 -0
  920. package/screen/screen.js +55 -0
  921. package/screen/sheet.d.ts +20 -0
  922. package/screen/sheet.js +145 -0
  923. package/screen/told.d.ts +14 -0
  924. package/screen/told.js +38 -0
  925. package/seams/bridge/bridge.d.ts +26 -0
  926. package/seams/bridge/bridge.js +31 -0
  927. package/seams/bridge/in-process.d.ts +13 -0
  928. package/seams/bridge/in-process.js +112 -0
  929. package/seams/bridge/index.d.ts +2 -0
  930. package/seams/bridge/index.js +3 -0
  931. package/seams/carriers/carriers.d.ts +112 -0
  932. package/seams/carriers/carriers.js +315 -0
  933. package/seams/carriers/index.d.ts +2 -0
  934. package/seams/carriers/index.js +29 -0
  935. package/seams/carriers/proof.d.ts +13 -0
  936. package/seams/carriers/proof.js +45 -0
  937. package/seams/chance/chance.d.ts +6 -0
  938. package/seams/chance/chance.js +8 -0
  939. package/seams/chance/index.d.ts +1 -0
  940. package/seams/chance/index.js +2 -0
  941. package/seams/codec/codec.d.ts +12 -0
  942. package/seams/codec/codec.js +9 -0
  943. package/seams/codec/index.d.ts +1 -0
  944. package/seams/codec/index.js +2 -0
  945. package/seams/contract/bytes.d.ts +1 -0
  946. package/seams/contract/bytes.js +4 -0
  947. package/seams/contract/contract.d.ts +10 -0
  948. package/seams/contract/contract.js +26 -0
  949. package/seams/contract/index.d.ts +2 -0
  950. package/seams/contract/index.js +3 -0
  951. package/seams/crypto/crypto.d.ts +29 -0
  952. package/seams/crypto/crypto.js +30 -0
  953. package/seams/crypto/index.d.ts +1 -0
  954. package/seams/crypto/index.js +2 -0
  955. package/seams/engine/engine.d.ts +44 -0
  956. package/seams/engine/engine.js +55 -0
  957. package/seams/engine/index.d.ts +1 -0
  958. package/seams/engine/index.js +2 -0
  959. package/seams/entry/configuration.d.ts +74 -0
  960. package/seams/entry/configuration.js +81 -0
  961. package/seams/entry/entry.d.ts +124 -0
  962. package/seams/entry/entry.js +144 -0
  963. package/seams/entry/index.d.ts +2 -0
  964. package/seams/entry/index.js +24 -0
  965. package/seams/index.d.ts +16 -0
  966. package/seams/index.js +86 -0
  967. package/seams/page-layer/index.d.ts +1 -0
  968. package/seams/page-layer/index.js +2 -0
  969. package/seams/page-layer/page-layer.d.ts +32 -0
  970. package/seams/page-layer/page-layer.js +29 -0
  971. package/seams/published.d.ts +1 -0
  972. package/seams/published.js +85 -0
  973. package/seams/queues/index.d.ts +2 -0
  974. package/seams/queues/index.js +3 -0
  975. package/seams/queues/queues.d.ts +36 -0
  976. package/seams/queues/queues.js +50 -0
  977. package/seams/run/index.d.ts +1 -0
  978. package/seams/run/index.js +2 -0
  979. package/seams/run/run.d.ts +7 -0
  980. package/seams/run/run.js +8 -0
  981. package/seams/time/index.d.ts +1 -0
  982. package/seams/time/index.js +2 -0
  983. package/seams/time/time.d.ts +10 -0
  984. package/seams/time/time.js +14 -0
  985. package/seams/unlocker/index.d.ts +1 -0
  986. package/seams/unlocker/index.js +2 -0
  987. package/seams/unlocker/unlocker.d.ts +17 -0
  988. package/seams/unlocker/unlocker.js +15 -0
  989. package/seams/vitals/index.d.ts +1 -0
  990. package/seams/vitals/index.js +2 -0
  991. package/seams/vitals/vitals.d.ts +24 -0
  992. package/seams/vitals/vitals.js +19 -0
  993. package/seams/webassembly.d.ts +36 -0
  994. package/standard/answer/answer.d.ts +16 -0
  995. package/standard/answer/answer.js +38 -0
  996. package/standard/answer/index.d.ts +1 -0
  997. package/standard/answer/index.js +2 -0
  998. package/standard/blueprint/blueprint.d.ts +21 -0
  999. package/standard/blueprint/blueprint.js +123 -0
  1000. package/standard/blueprint/index.d.ts +2 -0
  1001. package/standard/blueprint/index.js +3 -0
  1002. package/standard/blueprint/method.d.ts +21 -0
  1003. package/standard/blueprint/method.js +208 -0
  1004. package/standard/data/base64.d.ts +1 -0
  1005. package/standard/data/base64.js +39 -0
  1006. package/standard/data/data.d.ts +10 -0
  1007. package/standard/data/data.js +147 -0
  1008. package/standard/data/fields.d.ts +16 -0
  1009. package/standard/data/fields.js +68 -0
  1010. package/standard/data/guards.d.ts +9 -0
  1011. package/standard/data/guards.js +12 -0
  1012. package/standard/data/hex.d.ts +12 -0
  1013. package/standard/data/hex.js +74 -0
  1014. package/standard/data/index.d.ts +7 -0
  1015. package/standard/data/index.js +8 -0
  1016. package/standard/data/text.d.ts +19 -0
  1017. package/standard/data/text.js +222 -0
  1018. package/standard/data/utf8.d.ts +2 -0
  1019. package/standard/data/utf8.js +85 -0
  1020. package/standard/half/frames.d.ts +10 -0
  1021. package/standard/half/frames.js +115 -0
  1022. package/standard/half/half.d.ts +23 -0
  1023. package/standard/half/half.js +89 -0
  1024. package/standard/half/index.d.ts +2 -0
  1025. package/standard/half/index.js +14 -0
  1026. package/standard/index.d.ts +9 -0
  1027. package/standard/index.js +93 -0
  1028. package/standard/names/blueprint.d.ts +2 -0
  1029. package/standard/names/blueprint.js +18 -0
  1030. package/standard/names/code.d.ts +5 -0
  1031. package/standard/names/code.js +21 -0
  1032. package/standard/names/id.d.ts +3 -0
  1033. package/standard/names/id.js +11 -0
  1034. package/standard/names/index.d.ts +5 -0
  1035. package/standard/names/index.js +6 -0
  1036. package/standard/names/method.d.ts +2 -0
  1037. package/standard/names/method.js +19 -0
  1038. package/standard/names/version.d.ts +1 -0
  1039. package/standard/names/version.js +5 -0
  1040. package/standard/pattern/compile.d.ts +25 -0
  1041. package/standard/pattern/compile.js +153 -0
  1042. package/standard/pattern/index.d.ts +3 -0
  1043. package/standard/pattern/index.js +4 -0
  1044. package/standard/pattern/match.d.ts +2 -0
  1045. package/standard/pattern/match.js +75 -0
  1046. package/standard/pattern/parse.d.ts +39 -0
  1047. package/standard/pattern/parse.js +259 -0
  1048. package/standard/presence.d.ts +5 -0
  1049. package/standard/presence.js +69 -0
  1050. package/standard/published.d.ts +1 -0
  1051. package/standard/published.js +57 -0
  1052. package/standard/schema/admits.d.ts +10 -0
  1053. package/standard/schema/admits.js +189 -0
  1054. package/standard/schema/index.d.ts +3 -0
  1055. package/standard/schema/index.js +4 -0
  1056. package/standard/schema/known.d.ts +2 -0
  1057. package/standard/schema/known.js +23 -0
  1058. package/standard/schema/subset.d.ts +11 -0
  1059. package/standard/schema/subset.js +140 -0
  1060. package/standard/tree/allow.d.ts +22 -0
  1061. package/standard/tree/allow.js +229 -0
  1062. package/standard/tree/check.d.ts +3 -0
  1063. package/standard/tree/check.js +227 -0
  1064. package/standard/tree/forms.d.ts +9 -0
  1065. package/standard/tree/forms.js +121 -0
  1066. package/standard/tree/html.d.ts +11 -0
  1067. package/standard/tree/html.js +59 -0
  1068. package/standard/tree/index.d.ts +6 -0
  1069. package/standard/tree/index.js +46 -0
  1070. package/standard/tree/model.d.ts +7 -0
  1071. package/standard/tree/model.js +58 -0
  1072. package/standard/tree/tree.d.ts +44 -0
  1073. package/standard/tree/tree.js +58 -0
  1074. package/standard/version.d.ts +1 -0
  1075. package/standard/version.js +2 -0
@@ -0,0 +1,296 @@
1
+ // SPDX-License-Identifier: FSL-1.1-ALv2
2
+ import { BOX_SIZE } from '#seams';
3
+
4
+
5
+
6
+
7
+ export const text = { type: 'string', minLength: 1 };
8
+ export const count = { type: 'integer', minimum: 0 };
9
+
10
+ export const objectOf = (properties , required = []) => ({
11
+ type: 'object',
12
+ properties,
13
+ required: [...required],
14
+ additionalProperties: false,
15
+ });
16
+
17
+ export const nullOr = (schema ) => ({ anyOf: [schema, { type: 'null' }] });
18
+
19
+ export const ORDER = objectOf({ termination: text, placeholder: text, until: count }, ['termination']);
20
+
21
+ export const key = { type: 'string', pattern: '^[0-9a-f]{64}$' };
22
+
23
+ export const OCCUPANT = objectOf(
24
+ {
25
+ heir: key,
26
+ spent: { type: 'boolean' },
27
+ removed: { type: 'boolean' },
28
+ held: nullOr(key),
29
+ vouched: nullOr(key),
30
+ highest: count,
31
+ sealed: nullOr({ type: 'string', contentEncoding: 'base16', maxLength: BOX_SIZE }),
32
+ },
33
+ ['heir', 'spent', 'removed', 'held', 'vouched', 'highest', 'sealed'],
34
+ );
35
+
36
+ export const WARD_NAME = { type: 'string', pattern: '^[0-9a-f]{128}$' };
37
+
38
+ export const SAYS = {
39
+ anyOf: [{ type: 'object' }, { type: 'array' }, { type: 'string' }, { type: 'number' }, { type: 'boolean' }],
40
+ };
41
+
42
+ export const LINK = objectOf(
43
+ {
44
+ card: objectOf({ ward: WARD_NAME, at: { type: 'array', items: text } }, ['ward', 'at']),
45
+ reference: { type: 'string', pattern: '^[a-z2-7]{26}$' },
46
+ },
47
+ ['card', 'reference'],
48
+ );
49
+
50
+ export const WARD = objectOf(
51
+ {
52
+ name: WARD_NAME,
53
+ sealed: { type: 'string', contentEncoding: 'base16', maxLength: BOX_SIZE },
54
+ at: { type: 'array', items: text, minItems: 1 },
55
+ through: text,
56
+ reference: { type: 'string', pattern: '^[a-z2-7]{26}$' },
57
+ },
58
+ ['name', 'sealed'],
59
+ );
60
+
61
+ const STATUSES = { enum: ['not ready', 'connected', 'unavailable', 'far'] };
62
+
63
+ const wire = objectOf({ placeholder: text, termination: text, until: nullOr(count), status: STATUSES }, [
64
+ 'placeholder',
65
+ 'termination',
66
+ 'until',
67
+ 'status',
68
+ ]);
69
+
70
+ const queue = objectOf({ waiting: count, running: count }, ['waiting', 'running']);
71
+
72
+ const lastCutOff = objectOf(
73
+ {
74
+ at: count,
75
+ why: { enum: ['timeout', 'budget'] },
76
+ method: nullOr(text),
77
+ held: count,
78
+ worked: count,
79
+ waited: count,
80
+ longest: nullOr(objectOf({ placeholder: text, method: nullOr(text), ms: count }, ['placeholder', 'method', 'ms'])),
81
+ },
82
+ ['at', 'why', 'method', 'held', 'worked', 'waited', 'longest'],
83
+ );
84
+
85
+ const traced = objectOf(
86
+ { at: count, asker: text, node: text, method: nullOr(text), answer: text, work: count },
87
+ ['at', 'asker', 'node', 'method', 'answer', 'work'],
88
+ );
89
+
90
+ const node = objectOf(
91
+ {
92
+ id: text,
93
+ kind: { enum: ['organ', 'lobe', 'far'] },
94
+ blueprint: text,
95
+ faculty: nullOr(text),
96
+ label: nullOr(text),
97
+ road: text,
98
+ second: text,
99
+ unproven: { type: 'boolean' },
100
+ damaged: nullOr(text),
101
+ core: { type: 'boolean' },
102
+ direction: nullOr({ enum: ['standing', 'occupant'] }),
103
+ sealed: { type: 'boolean' },
104
+ wires: { type: 'array', items: wire },
105
+ step: objectOf({ faculty: text, since: count }, ['faculty', 'since']),
106
+ unwired: {
107
+ type: 'array',
108
+ items: objectOf({ placeholder: text, termination: text }, ['placeholder', 'termination']),
109
+ },
110
+ queue: nullOr(queue),
111
+ asks: count,
112
+ work: count,
113
+ space: count,
114
+ faults: count,
115
+ cutOffs: count,
116
+ cutOffsBy: objectOf({ timeout: count, budget: count, switchOff: count, tearDown: count }, [
117
+ 'timeout',
118
+ 'budget',
119
+ 'switchOff',
120
+ 'tearDown',
121
+ ]),
122
+ lastFault: nullOr(text),
123
+ lastCutOff: nullOr(lastCutOff),
124
+ released: count,
125
+ },
126
+ [
127
+ 'id',
128
+ 'kind',
129
+ 'blueprint',
130
+ 'faculty',
131
+ 'label',
132
+ 'damaged',
133
+ 'core',
134
+ 'direction',
135
+ 'wires',
136
+ 'queue',
137
+ 'asks',
138
+ 'work',
139
+ 'faults',
140
+ 'cutOffs',
141
+ 'cutOffsBy',
142
+ 'lastFault',
143
+ 'lastCutOff',
144
+ 'released',
145
+ ],
146
+ );
147
+
148
+ export const HALF = objectOf({ form: { enum: ['component', 'native'] }, digest: key }, ['form', 'digest']);
149
+
150
+ const organ = objectOf(
151
+ {
152
+ id: text,
153
+ reach: { type: 'object' },
154
+ half: nullOr(HALF),
155
+ last: objectOf({ reach: { type: 'object' }, half: HALF, blueprint: { type: 'object' } }, ['reach', 'half']),
156
+ why: nullOr(text),
157
+ restarts: count,
158
+ redialed: count,
159
+ unreplied: count,
160
+ },
161
+ ['id', 'reach', 'half', 'why', 'restarts', 'redialed', 'unreplied'],
162
+ );
163
+
164
+ const relation = objectOf(
165
+ { far: text, status: { enum: ['waiting', 'bound', 'ungiven'] }, nextAnchor: { type: 'boolean' } },
166
+ ['far', 'status', 'nextAnchor'],
167
+ );
168
+
169
+ const letter = objectOf(
170
+ {
171
+ lobe: text,
172
+ number: count,
173
+ asker: text,
174
+ method: text,
175
+ until: count,
176
+ attempts: count,
177
+ dead: { type: 'boolean' },
178
+ },
179
+ ['lobe', 'number', 'asker', 'method', 'until', 'dead'],
180
+ );
181
+ const durable = objectOf({ organ: text, asker: text, method: text }, ['organ', 'asker', 'method']);
182
+ const alarm = objectOf({ lobe: text, id: count, at: count, method: text }, ['lobe', 'id', 'at', 'method']);
183
+
184
+ const amount = { type: 'number', minimum: 0 };
185
+ const used = objectOf({ used: amount, total: amount }, ['used', 'total']);
186
+ const vitals = objectOf(
187
+ {
188
+ memory: used,
189
+ disk: nullOr(used),
190
+ load: amount,
191
+ battery: nullOr(objectOf({ level: amount, charging: { type: 'boolean' } }, ['level', 'charging'])),
192
+ temperature: nullOr({ type: 'number' }),
193
+ sleep: nullOr(amount),
194
+ },
195
+ ['memory', 'disk', 'load', 'battery', 'temperature', 'sleep'],
196
+ );
197
+
198
+ export const STATE = objectOf(
199
+ {
200
+ genome: text,
201
+ genomeDigest: nullOr(text),
202
+ installerDigest: nullOr(text),
203
+ cursor: nullOr(text),
204
+ letters: { type: 'array', items: letter },
205
+ durables: { type: 'array', items: durable },
206
+ alarms: { type: 'array', items: alarm },
207
+ nodes: { type: 'array', items: node },
208
+ traced: { type: 'array', items: traced },
209
+ store: objectOf({ size: count }, ['size']),
210
+ organs: { type: 'array', items: organ },
211
+ fingerprint: key,
212
+ presentLobes: { type: 'array', items: text },
213
+ anchor: nullOr(text),
214
+ owned: { type: 'boolean' },
215
+ relations: { type: 'array', items: relation },
216
+ vitals,
217
+ level: { enum: ['well', 'sick'] },
218
+ recoveryKeys: objectOf({ set: { type: 'boolean' }, replacing: nullOr(objectOf({ at: count }, ['at'])) }, [
219
+ 'set',
220
+ 'replacing',
221
+ ]),
222
+ restored: nullOr(
223
+ objectOf(
224
+ {
225
+ at: nullOr(count),
226
+ commit: nullOr(text),
227
+ salvaged: objectOf(
228
+ { hurt: { type: 'boolean' }, unread: { type: 'array', items: text }, lost: { type: 'array', items: text } },
229
+ ['hurt', 'unread', 'lost'],
230
+ ),
231
+ },
232
+ ['at', 'commit'],
233
+ ),
234
+ ),
235
+ unsure: count,
236
+ timeDropped: count,
237
+ },
238
+ [
239
+ 'genome',
240
+ 'genomeDigest',
241
+ 'installerDigest',
242
+ 'cursor',
243
+ 'letters',
244
+ 'durables',
245
+ 'alarms',
246
+ 'nodes',
247
+ 'organs',
248
+ 'traced',
249
+ 'store',
250
+ 'fingerprint',
251
+ 'presentLobes',
252
+ 'anchor',
253
+ 'owned',
254
+ 'relations',
255
+ 'vitals',
256
+ 'level',
257
+ 'recoveryKeys',
258
+ 'restored',
259
+ ],
260
+ );
261
+
262
+ const grantedLobe = objectOf({ lobe: text, placeholder: text, note: {} }, ['lobe', 'placeholder', 'note']);
263
+
264
+ const occupant = objectOf(
265
+ {
266
+ lobe: nullOr(text),
267
+ far: text,
268
+ side: { enum: ['occupant', 'standing'] },
269
+ note: {},
270
+ status: { enum: ['waiting', 'bound', 'ungiven', 'silent'] },
271
+ invited: nullOr(count),
272
+ bound: nullOr(count),
273
+ silent: nullOr(count),
274
+ lives: nullOr(count),
275
+ anchor: { type: 'boolean' },
276
+ lobes: { type: 'array', items: grantedLobe },
277
+ },
278
+ ['lobe', 'far', 'side', 'note', 'status', 'invited', 'bound', 'silent', 'lives'],
279
+ );
280
+
281
+ export const ENDS = objectOf({ ends: { type: 'array', items: occupant }, cursor: nullOr(text) }, [
282
+ 'ends',
283
+ 'cursor',
284
+ ]);
285
+
286
+ export const CARD = objectOf({ ward: WARD_NAME, at: { type: 'array', items: text } }, ['ward', 'at']);
287
+
288
+ export const STAND = {
289
+ node: text,
290
+ placeholder: text,
291
+ standing: { type: 'object' },
292
+ note: {},
293
+ waits: nullOr(count),
294
+ lives: nullOr(count),
295
+ anchor: { type: 'boolean' },
296
+ };
@@ -0,0 +1,9 @@
1
+ import type { Answer } from '#standard';
2
+ import type { StandingAsk } from '../carry/index.js';
3
+ import type { Cells } from '#cage';
4
+ import type { Kit } from './mouth.js';
5
+ export declare const LEAVE = "#leave";
6
+ export type Heard = 'fell' | 'answered' | 'neither';
7
+ export declare const anchorLost: (cells: Cells, ask: StandingAsk, heard: Answer) => boolean;
8
+ export declare const heardOf: (ask: StandingAsk, heard: Answer, answered: boolean) => Heard;
9
+ export declare const toldSilent: (kit: Kit, far: string, since: number) => void;
@@ -0,0 +1,30 @@
1
+ // SPDX-License-Identifier: FSL-1.1-ALv2
2
+
3
+
4
+
5
+ import { grantedLobes } from './grants.js';
6
+ import { heldOf } from './holds.js';
7
+
8
+ import { BRAIN } from '../ids/index.js';
9
+
10
+ export const LEAVE = '#leave';
11
+
12
+
13
+
14
+ export const anchorLost = (cells , ask , heard ) =>
15
+ ask.from !== BRAIN &&
16
+ 'error' in heard &&
17
+ heard.error.code === 'removed' &&
18
+ heldOf(cells, BRAIN, ask.far)?.anchor === true;
19
+
20
+ export const heardOf = (ask , heard , answered ) => {
21
+ if (ask.from === BRAIN) return 'neither';
22
+ if ('error' in heard && (heard.error.code === 'silent' || heard.error.code === 'removed')) return 'fell';
23
+ return answered ? 'answered' : 'neither';
24
+ };
25
+
26
+ export const toldSilent = (kit , far , since ) => {
27
+ const { longestTimeout } = kit.gear.configuration;
28
+ for (const { lobe, placeholder } of grantedLobes(kit.gear.cells(), kit.map(), far))
29
+ kit.gear.carry().ask(BRAIN, lobe, 'silent', { placeholder, since }, longestTimeout, () => {});
30
+ };
@@ -0,0 +1,17 @@
1
+ import type { Cache } from '../cache/index.js';
2
+ import { type CellKey, type Batch, type Reader } from '#cage';
3
+ export declare const RELATION = 8192;
4
+ export declare const countedRow: ([partition, row, node]: CellKey) => CellKey | null;
5
+ export type SpaceGear = {
6
+ readonly spaces: Cache['spaces'];
7
+ readonly reader: Reader;
8
+ readonly limit: (name: string, node: string) => number | undefined;
9
+ readonly room: () => number;
10
+ readonly core: (node: string) => boolean;
11
+ };
12
+ export type Space = {
13
+ held(node: string): number;
14
+ refused(lobe: string, writes: Batch, bytes: number): string | null;
15
+ drawing(node: string): string | null;
16
+ };
17
+ export declare const spaceOver: (gear: SpaceGear) => Space;
@@ -0,0 +1,70 @@
1
+ // SPDX-License-Identifier: FSL-1.1-ALv2
2
+
3
+ import { weightOver, } from '#cage';
4
+ import { BRAIN } from '../ids/index.js';
5
+ import { LIFTED } from './limits.js';
6
+
7
+ export const RELATION = 8192;
8
+
9
+ const HOLDS = 'holds';
10
+ const INVITED = 'invited';
11
+ const GRANTED = 'granted';
12
+
13
+ export const countedRow = ([partition, row, node] ) =>
14
+ partition === BRAIN && (row === HOLDS || row === INVITED || row === GRANTED) && typeof node === 'string'
15
+ ? [BRAIN, row, node]
16
+ : null;
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+ const FULL =
40
+ "the lobe holds all its `space` allows: come back once it holds less, or an owner's word moves its `space`";
41
+ const WAITING =
42
+ "the node holds all the invitations waiting it may: come back once one is knocked, lapses or ends, or an owner's word moves its `invitations`";
43
+
44
+ export const spaceOver = (gear ) => {
45
+ const { spaces, reader, limit, room, core } = gear;
46
+ const held = (node ) =>
47
+ spaces.bytes(node) + (spaces.rows([BRAIN, HOLDS, node]) + spaces.rows([BRAIN, GRANTED, node])) * RELATION;
48
+ const limitOf = (node ) => (core(node) ? LIFTED : (limit('space', node) ?? room()));
49
+ const growth = (writes ) =>
50
+ writes.reduce(
51
+ (sum, { key, value }) => sum + (value === null ? 0 : key.length + value.length) - weightOver(reader, key),
52
+ 0,
53
+ );
54
+ return {
55
+ held,
56
+ refused: (lobe, writes, bytes) => {
57
+ const [standing, most] = [held(lobe), limitOf(lobe)];
58
+ if (standing + bytes <= most) return null;
59
+ const adds = growth(writes);
60
+ return adds <= 0 || standing + adds <= most ? null : FULL;
61
+ },
62
+ drawing: (node) => {
63
+ const most = limitOf(node);
64
+ const bound = limit('invitations', node) ?? Math.floor(most / RELATION);
65
+ const waiting = spaces.rows([BRAIN, INVITED, node]);
66
+ if (waiting >= bound) return WAITING;
67
+ return held(node) + RELATION <= most ? null : FULL;
68
+ },
69
+ };
70
+ };
@@ -0,0 +1,4 @@
1
+ import type { Method } from '#standard';
2
+ export declare const STANDING_METHODS: {
3
+ readonly [name: string]: Method;
4
+ };
@@ -0,0 +1,78 @@
1
+ // SPDX-License-Identifier: FSL-1.1-ALv2
2
+
3
+ import { count, LINK, nullOr, objectOf, SAYS, text } from './schemas.js';
4
+
5
+ const REFUSED = ['refused'];
6
+
7
+ export const STANDING_METHODS = {
8
+ invite: {
9
+ description:
10
+ "Emits an invitation to the brain, which an owner hands out: it waits `waits` for a knock, null until it is knocked on or ended, and its relation lives `lives` once bound, null for good. With `through`, the address of an organism always on, its ward is reached down a line to it, so an organism nobody can dial can still be owned from afar. With `refer` it answers a link on the ward drawn for it, and with `public` beside it a link on the public ward. With `anchor`, asked by the anchor alone, it invites the next anchor, whose relation lives for good and binds only while its inviter is the anchor; a new one ends the last still waiting. An owner whose relation lives for a span invites no one. With `note`, free data of at most 4 KiB as its canonical text by default and never a secret, what the occupant is for and to whom it is given, which the brain keeps beside it and `occupants` answers, and which never travels with the invitation; null where none is named. With `says`, free data at most a quarter of the note's bound, 1 KiB by default, never null and never a secret, what the invitation says to whoever holds it before the yes: it travels in the invitation, and a link's offer answers it; neither brain keeps it. With `refer`, the ear keeps the invitation behind a reference and the answer is `{link}`, the organism's card and the reference, never the invitation: the owner hands out the link (`#quo`'s `linkText`), and the one who takes it redeems the reference on the zero head; refused with `anchor`. Either answers beside the invitation's far organism, `far`. It declares no budget: the ear's answer is waited for.",
11
+ args: objectOf(
12
+ {
13
+ waits: nullOr(count),
14
+ lives: nullOr(count),
15
+ anchor: { type: 'boolean' },
16
+ refer: { type: 'boolean' },
17
+ public: { type: 'boolean' },
18
+ through: text,
19
+ note: {},
20
+ says: SAYS,
21
+ },
22
+ ['waits', 'lives'],
23
+ ),
24
+ result: {
25
+ anyOf: [
26
+ objectOf({ invitation: text, far: text }, ['invitation', 'far']),
27
+ objectOf({ link: LINK, far: text }, ['link', 'far']),
28
+ ],
29
+ },
30
+ errors: REFUSED,
31
+ },
32
+ drop: {
33
+ irreversible: 'far',
34
+ description:
35
+ "Drops a relation to the brain by its far organism, and tears the far organism down: any but the anchor's, which leaves only by passing, or to a present lobe, whose drop of a far anchor takes it. Naming none, it drops the asker's own, as an owner from afar leaves. Naming a standing the organism holds, it forgets it, one its invitation marked an anchor's only once the far brain answers, or with `gone`, where it is unheard: the brain sends the inviting side `#leave`, forgets the standing whatever answers with its notes and its lobes' wires, and asks each lobe that was wired `left`; an anchor's only once the far brain answered its owner's `drop`. Naming `lobe` and `far`, it ends the occupant that lobe gave as the lobe's own drop ends it: once an ask in flight on it is committed, no ask starting on it from then, and the lobe asked `left`; refused where that lobe gave none.",
36
+ args: objectOf({ far: text, lobe: text, gone: { type: 'boolean' } }, []),
37
+ result: { type: 'null' },
38
+ errors: REFUSED,
39
+ budget: 100,
40
+ },
41
+ reinvite: {
42
+ description:
43
+ "Gives the occupant `lobe` gave of the far organism `far` again, in its place and never beside it: the ear draws a fresh invitation for it, as `invite` draws one, waiting `waits` and living `lives` as the asker names, saying `says` where it is named, as `invite` says it, and the answer is that invitation beside the same `far`. The keys of its last invitation end at once, so a knock or an ask on them is a stranger's; the standing keeps its far organism's ID, its note, its wires and whatever its lobe keeps of it, waiting until the first knock on the new invitation binds it again. Refused for an end that is no occupant, for the anchor's and the next anchor's, and to an owner whose relation lives for a span; `busy` while an ask is in flight on its relation. It declares no budget: the ear's answer is waited for.",
44
+ args: objectOf(
45
+ { lobe: text, far: text, waits: nullOr(count), lives: nullOr(count), refer: { type: 'boolean' }, says: SAYS },
46
+ ['lobe', 'far', 'waits', 'lives'],
47
+ ),
48
+ result: {
49
+ anyOf: [
50
+ objectOf({ invitation: text, far: text }, ['invitation', 'far']),
51
+ objectOf({ link: LINK, far: text }, ['link', 'far']),
52
+ ],
53
+ },
54
+ errors: REFUSED,
55
+ },
56
+ accept: {
57
+ description:
58
+ "The organism accepts, at an owner's ask from afar, as the owner present does at its console: `invitation`, or `link` in either form, taken by the steps a screen takes, its domain's vouch read where its card names a domain and its reference redeemed once on the zero head. The mouth accepts it with `note`, free data of at most 4 KiB as its canonical text by default and never a secret, which the brain keeps beside the standing as the organism's own and which never travels to the inviter, null where none is named; the standing is granted under `relation` to `lobe`, a lobe of the periphery, where it is named, else to the present lobes. Its first ask is the knock: one unanswered, its invitation spent, ended or wrong, is forgotten, so nothing is held. Refused where a lobe it would be granted to holds `relation` already, checked before anything is spent, where no lobe is named and none is present, and with neither or both of `invitation` and `link`. It answers the far organism of the standing. It declares no budget: the mouth's steps are waited for.",
59
+ args: objectOf({ relation: text, invitation: text, link: text, note: {}, lobe: text }, ['relation']),
60
+ result: objectOf({ far: text }, ['far']),
61
+ errors: REFUSED,
62
+ },
63
+ offer: {
64
+ description:
65
+ "A link's offer, read before the yes: `link` in either form, taken as `accept` takes one as far as its card, its domain's vouch read where its card names a domain, and `#offer` asked once of its zero head. It answers `{says, waits, lives}`: what the invitation says, null where it says nothing, what is left of its wait and how long its relation lives, in milliseconds, each null for none; null where the place answers no offer, its reference spent, past its wait, dropped or unknown. It spends nothing and holds nothing. Refused, saying to try again, where the place was not reached or no reply came in time, and for a text that is no link or a card its domain did not vouch for. It declares no budget: the mouth's steps are waited for.",
66
+ args: objectOf({ link: text }, ['link']),
67
+ result: nullOr(objectOf({ says: {}, waits: nullOr(count), lives: nullOr(count) }, ['says', 'waits', 'lives'])),
68
+ errors: REFUSED,
69
+ },
70
+ note: {
71
+ description:
72
+ "Sets anew a note of the end of the far organism `far`, everything else of the end kept, in one change: free data of at most 4 KiB as its canonical text by default, bounded as every note is, and never a secret; null names none. With `lobe`, that lobe's own note: the giving lobe's of an occupant, or a granted lobe's of a standing. Without `lobe`, the organism's own note on a standing it holds, the brain's. The far side never reads it. Refused for a node that is none, for a lobe that holds no standing of `far`, and, named without a lobe, for a `far` that is no standing the organism holds.",
73
+ args: objectOf({ lobe: text, far: text, note: {} }, ['far', 'note']),
74
+ result: { type: 'null' },
75
+ errors: REFUSED,
76
+ budget: 100,
77
+ },
78
+ };
@@ -0,0 +1,57 @@
1
+ import type { Configuration, TimeSeam } from '#seams';
2
+ import { type Data } from '#standard';
3
+ import type { Cells, CellKey } from '#cage';
4
+ import type { StandingAsk } from '../carry/index.js';
5
+ import type { Alarm, Timer } from '../timer/index.js';
6
+ import { Marks } from './marks.js';
7
+ export type Kept = {
8
+ readonly standing: Data;
9
+ readonly at: Data;
10
+ };
11
+ export type Moving = {
12
+ record: Kept;
13
+ readonly pending: Set<object>;
14
+ deadline: number;
15
+ };
16
+ type Held = {
17
+ readonly ask: StandingAsk;
18
+ readonly deadline: number;
19
+ alarm: Alarm | null;
20
+ };
21
+ export type Carrying = {
22
+ readonly ask: StandingAsk;
23
+ readonly deadline: number;
24
+ };
25
+ export type Standings = {
26
+ readonly flying: Marks;
27
+ readonly carrying: Map<string, Carrying>;
28
+ readonly moving: Map<string, Moving>;
29
+ readonly held: Map<string, Held[]>;
30
+ readonly ended: Set<string>;
31
+ readonly leaving: Map<string, () => void>;
32
+ readonly bounds: Map<string, number>;
33
+ };
34
+ export declare const keptAt: (cells: Cells, far: string) => Kept | undefined;
35
+ export declare const keptRows: (far: string, record: Kept) => readonly (readonly [CellKey, Data])[];
36
+ export declare const putKept: (cells: Cells, far: string, record: Kept) => void;
37
+ export declare const dropKept: (cells: Cells, far: string) => void;
38
+ export declare const boundAt: (cells: Cells, far: string) => number;
39
+ export declare const putBound: (cells: Cells, far: string, bound: number) => void;
40
+ export declare const standingsOf: () => Standings;
41
+ export type Holding = {
42
+ readonly standings: Standings;
43
+ readonly gear: {
44
+ readonly time: TimeSeam;
45
+ readonly timer: Timer;
46
+ readonly configuration: Configuration;
47
+ readonly cells: () => Cells;
48
+ };
49
+ };
50
+ export declare const freeFor: (standings: Standings, far: string) => boolean;
51
+ export declare const hold: (holding: Holding, ask: StandingAsk) => void;
52
+ export declare const release: (holding: Holding, far: string, carry: (ask: StandingAsk) => void) => void;
53
+ export declare const endSent: (holding: Holding, far: string, sender: {
54
+ cut: boolean;
55
+ }) => void;
56
+ export declare const endHeld: (holding: Holding, far: string) => void;
57
+ export {};