@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,11 @@
1
+ # Changelog
2
+
3
+ ## 0.37.1
4
+
5
+ The first version published on npm. 0.37.0 was released and never published: what it tells below reaches the world
6
+ with this one.
7
+
8
+ An invitation's signature is checked in the cryptography of the ward that drew it, the one under which its secret makes
9
+ its heir. Before, it was always checked in the one Nervur ships, so an organism whose port named another for new
10
+ invitations gave invitations no one could accept, itself included. A lobe's `readInvitation` still reads in the one
11
+ Nervur ships, the same on every host. No organism moves.
package/docs/guide.md ADDED
@@ -0,0 +1,429 @@
1
+ # Nervur's guide
2
+
3
+ What Nervur is and how an organism works, whole, in a few pages: the model a person or a model holds before it touches
4
+ anything, and the model an adopter builds from. The brain carries this guide as its own, so a model present at an
5
+ organism reads it first. How to install, own and build on Nervur, each path with its commands and code, stands beside it
6
+ in `authoring.md`, which travels with it in the genome's `docs/` and which the brain carries beside it, answered by
7
+ `authoring`. What each version of Nervur changed, from 0.31.0, stands beside them in `changelog.md`. Where the exact
8
+ detail matters, it is in `authoring.md`, in each faculty's own guide, and in what its node answers a **describe**, an
9
+ ask naming no method: what it may be asked.
10
+
11
+ ## The bet
12
+
13
+ Software as a graph, never accounts. Every person, group and agent is an **organism** on a device of its own, and
14
+ organisms ask each other over **Quo**, never through a server they share. A shop keeps what it knows of its customer in
15
+ its own organism; the person keeps the rest in their home. Nervur grows by being many small organisms on the devices
16
+ that already exist, never by one growing big.
17
+
18
+ Trust is what is scarce, never code: a shape is worth what it makes certain, who may ask whom, what ran and what it
19
+ changed. The primitives are few: the organism, the relation, the ask, the letter and the owner.
20
+
21
+ The genome is a kernel, as Linux is: small, slow to change, built for decades, with no opinion of what stands on it, and
22
+ **the owner is root**. Code starts with nothing, and an owner can give it everything: a faculty's power comes by wires
23
+ and organs, never by opening the cage. A **wall** stands only where it protects someone other than the owner, or where a
24
+ promise cannot be proven without it, as purity, closed cells, keys never exchanged and an ask ending once. Every other
25
+ limit is a **default** an owner can change, and one no owner's word can move is a gap. So of any limit, ask who it
26
+ limits, and build powerful things on Nervur: what people do with it is theirs.
27
+
28
+ ## The organism
29
+
30
+ An organism lives on one **device**, the machine, in an account of its own there: an account of an operating system, one
31
+ site of a browser, a phone's app or an edge's durable object. It is sealed. It has two doors and no third: the **ear**,
32
+ where every being enters over Quo, and the installer's **door**, where the device reaches it (install, boot, update,
33
+ wipe). Everything else that touches the world or the host is an **organ**.
34
+
35
+ A device gives it two **zones**:
36
+
37
+ - **The self**, the organism's own account: `key` (the boot key), `store` (primordial memory, encrypted), `cage` (runs
38
+ every lobe's ask, keeps time) and presence (the console, the screen). The self keeps.
39
+ - **The body**, the work account: `shell`, `disk`, `network` and every repo's organ. The self starts programs as the
40
+ body, never the other way, so nothing the body runs reads the key or the memory. The body forgets: a backup carries
41
+ the self alone, and what the body held comes back from the world. A backup is an older life, of which a lobe is told
42
+ first; what a damaged store still opens a salvage reads at the door, with no boot; a move, sealed to one device, is
43
+ the same life elsewhere, and the copy it left stops; a rekey is a move onto itself, a new data key that costs no
44
+ relation, where a rewrap moves the boot key alone. Who an organism is stands apart from where it is: an owner names
45
+ the addresses it is reached at, ahead of a move.
46
+
47
+ A host has a body where it has `shell` and `disk`. A server, a desktop, a Pi and a NAS have one; a browser, a phone's
48
+ app and an edge do not.
49
+
50
+ ## Nodes and the graph
51
+
52
+ Everything in an organism is a **node**, under an ID, with one **termination** where every ask to it arrives:
53
+
54
+ - **An organ**: a driver. Its **graph half** is its **blueprint**, what a node declares of itself, its name, its version
55
+ and its methods, and its **reach**, what of its host it touches, both held by the brain; its **host half** is code
56
+ running on the device. It holds no cells and declares no placeholders.
57
+ - **A lobe**: an instance of a **faculty**, pure code. It lives only inside an ask and keeps nothing between asks but
58
+ its **cells**, its own partition of memory. It keeps its ID, wires, relations and cells across its faculty's versions.
59
+ - **A far organism**: stands for one relation over Quo, one way, and nothing more.
60
+
61
+ The **core** is there from the first install and never torn down: the organs `key`, `store`, `cage` and `network`, and
62
+ the lobes `brain`, `scheduler`, `ear`, `mouth` and `library`. Everything else is **periphery**.
63
+
64
+ Nodes meet only through **wires**. A node declares **placeholders**, its needs; a wire joins one placeholder to one
65
+ termination, one way. The **brain** alone writes wiring and checks only that the blueprint name a placeholder expects is
66
+ the one it gets: a wire says who reaches whom, and code reaches only what its wires give it. A declaration wires
67
+ nothing, whatever ID it carries: a lobe starts with its `cells` and `nerves`, and every other wire is named, in the
68
+ `wiring` given at its creation or by an order, and what stands unwired an owner sees in `state`. Connection comes only
69
+ from connection: a lobe orders a wire by its `nerves`, its placeholders with their wires and statuses, only to its own
70
+ children and to who asked it, and every other wire is an owner's word, through `brain`, which an owner can give a lobe.
71
+ A lobe that declares a placeholder named after an organ is that organ's **skin lobe**: the only way an organ meets the
72
+ graph. A lobe may raise **children** through its `nerves`; a child reaches nothing its parent does not, and power only
73
+ narrows down the line.
74
+
75
+ ## The ask
76
+
77
+ Nodes meet only through the **ask**: a method, its args (data) and a timeout, sent over a placeholder. The brain carries
78
+ every ask and stamps it with the asker's ID, the time, a fresh 32-byte seed and the lobe memory. Every ask ends exactly
79
+ once, with `{result}` or `{error: {code, message}}`.
80
+
81
+ - **Whole or nothing.** A lobe's writes take effect in one batch when it answers. If the brain answers in its place
82
+ (timeout, fault, busy), nothing it wrote remains. An answer reaches its asker only once its batch is on disk, so an
83
+ answer always means it happened. What a lobe already sent to the world stays sent.
84
+ - **From far.** Only a far side's own answer says what happened there. Any other exit may have run, and where no reply
85
+ came may still run until the next ask on that relation is answered; `repeated` says the door took it, so it will not
86
+ run again. An ask that must not run twice carries a key of its asker's.
87
+ - **Reading and writing.** A reading method writes nothing and runs beside others; a writing method runs alone.
88
+ - **Signal or letter.** A **signal** lives in memory and is lost in a crash. A **letter** is kept in primordial memory
89
+ until the lobe takes it, exactly once. An ask whose loss matters is a letter.
90
+ - **Durable asks** go to organs: the brain sends them again whenever the organ reconnects, as "keep listening".
91
+ - **Time.** A **budget** bounds the real time a run works, watched from outside it; a **timeout** bounds waiting. Past
92
+ either the run is cut, nothing it wrote lands, and the asker hears `timeout`. An asker names a timeout only where an
93
+ answer is worth no longer; otherwise it waits as long as it may, and an inner ask never outlives the outer one. A run
94
+ that must pause, before a retry or while it holds its lobe, asks its `nerves` `wait {ms}`, answered `null` once the
95
+ span has passed, or `timeout` where its ask's time ends first; it waits as on any ask, spending no budget. Work
96
+ longer than one ask answers at once and ends later, by an ask back or a **job**, which a node answers at once to an
97
+ asker it cannot ask back, and which the asker gives back to ask how the work ended; what is long is cut into pieces
98
+ judged by progress, never by one slow piece.
99
+ - **Queues.** One queue per lobe, asks started in the order they arrive; each asker holds a share, and one over its
100
+ share alone meets `busy`. No wait inside an organism closes a circle: a run waits on any one of the asks it has in
101
+ flight, an ask queued waits on the runs ahead of it in its lobe, and a move of a version waits for the runs of its
102
+ lobe. An ask, or a move, that could start only once a run ended that waits on it, its own run or another lobe's,
103
+ through any number of lobes, queues or the brain, is answered `refused` at once instead of waiting; a run racing two
104
+ asks is never refused for the one it may not need, and one awaiting both hears the one on the circle refused the
105
+ moment the other answers. A
106
+ reading ask that starts beside other readers waits on none of them. Across organisms nothing tells such a circle, so
107
+ it ends at its timeouts.
108
+ - **Status.** Every termination is not ready, connected, unavailable or far, and status flows into each placeholder
109
+ wired to it.
110
+
111
+ ## Ownership
112
+
113
+ There are no roles in the brain. Whoever asks the brain is an **owner**: whoever is **present** at the device (the
114
+ console or the screen the configuration names present), whoever holds a relation the brain emitted, from afar, and a
115
+ lobe an owner wired to `brain`, which holds what that owner gave it. Every other being reaches only the lobe that
116
+ invited it. A relation to the brain is owning; a relation to a lobe is belonging, buying or following, and roles live in
117
+ lobes.
118
+
119
+ - **Presence wins over the graph and never over the account**. The present lobes, the console's and the screen's, are
120
+ one person and hold their relations alike. A model at the console is present as a person is, and holds no more, and
121
+ moves no skin of presence. It reaches the organism by `nervur mcp`, the console's MCP form: a tool for each method of
122
+ each node the console holds, its args, result and kind from the method's blueprint, and the portrait at connect. A
123
+ method marked irreversible, one that tears down, drops or deletes, is hinted destructive and made as the console makes
124
+ it: who must approve what is the organism's to say, and its **harness**'s to ask, the files an agent works by, its
125
+ instructions, hooks, settings and skills. A job is followed as a task.
126
+ - **Another account owns nothing** without the boot key, nor does the device while the organism is down; whoever can
127
+ become every account of a machine holds every organism on it.
128
+ - **The anchor** is the owner no other owner drops: the present lobe, or the first invitation's knock where there is
129
+ none. It leaves only by passing on, and the person present may take a far anchor back by dropping it.
130
+ - An owner reaches a lobe through the brain's `ask`; the lobe sees `brain` as its asker. Among the brain's methods:
131
+ create and move lobes, add organs, wire, invite owners, accept standings, back up, upgrade, read `state`.
132
+ - **A secret is held from strangers and siblings, never from owners.** A lobe's cells are a wall against other lobes and
133
+ the far side, and a default against accident for owners: `state` shows none, so a secret stays out of everyday tools
134
+ and a harness's model, as `ps` prints no process's memory. An owner reads all a lobe holds by a deliberate act that
135
+ shows, a move to a faculty that tells, or a backup.
136
+ - The brain counts and enforces, and never judges. It keeps the organism's **character**, `{name, voice, goals}`, and
137
+ answers every owner its **portrait**: this guide, the character, each lobe with its guide, and the first page of its
138
+ `state`.
139
+
140
+ ## Beings and Quo
141
+
142
+ Quo is its own spec: asks and replies as data, never code. An organism has a public **ward** (its name) and a fresh ward
143
+ for each relation it opens to a stranger, so no two strangers can link it by its name, or, where a **relay** is wired, a
144
+ lobe that gives each ward an address of its own, by where it is reached. What a wire shows, and where it asks from, is
145
+ the network's and the owner's to cover.
146
+
147
+ - A lobe **invites** through the ear, with **spans**, how long the invitation waits and how long the relation lives, and
148
+ a **note** (free JSON on what the relation is for, never sent). The invitation's text, its spans and what it says
149
+ among it, is signed whole by the ward drawn for it, so no one who carries it changes a word unseen; the signature
150
+ says the text is the ward's own, never whose the ward is. The other organism **accepts** through its mouth; its
151
+ first **knock** that announces a key binds the relation. A relation runs one way: the side that accepted asks, the
152
+ side that invited answers.
153
+ - A **link** is an invitation kept behind a one-time reference: short enough for a QR, it names the ward drawn for it
154
+ and where that ward is reached, so a link names no one, and it is redeemed once on that ward's **zero head**, Quo's
155
+ name for where whoever holds no relation asks. Before the yes its holder reads its **offer** there, spending nothing:
156
+ what the inviter says with it, how long it waits and how long the relation lives. A link on a domain names the public
157
+ ward, where a name is meant to be known.
158
+ - An **end** is a relation as one side holds it, in Quo's words: the **occupant**, the end a lobe gave, which answers,
159
+ and the **standing**, the end the organism holds, granted to the lobes the owner wires, which ask. The brain alone
160
+ keeps ends and their notes; a lobe keeps no copy. An owner hands a standing to another of its organisms, the place it
161
+ asks told nothing: there `taking` draws a key, here `cede` forgets the standing and answers it sealed to that key, and
162
+ there `take` keeps it. Its addresses, its keys and the count of its numbers go on as from one device, so nothing the
163
+ place receives tells it the standing moved. An app or a window of the owner's asks it.
164
+ - The ear opens each box with `key` and never decides; a stranger hears silence, and it keeps no place while a node
165
+ answers. An ask over a relation runs at most once, and one taken already hears `repeated`; a stranger's ask on the
166
+ zero head changes nothing by default, since nothing tells its copy from a second ask, so a change goes over a
167
+ relation. A relation ends from either side, never half. A **box**, one ask or one reply, sealed, is at most 1 MiB;
168
+ more crosses in pieces.
169
+ - A lobe never sees a ward or a key, only an ID. At most one lobe is the ear's `front`, answering strangers the
170
+ organism's public part alike, what it may be asked among it.
171
+ - An organism that cannot be dialed holds a **line** to one always on, and asks travel both ways over it.
172
+
173
+ ## Code: faculties, the library, versions
174
+
175
+ A **faculty** is one module the cage runs, in the engine's language, JavaScript, extending `Faculty`, its static
176
+ `blueprint` naming its name, version and methods. Its source is one string named by its SHA-256, the **digest**, so the
177
+ version is inside the digest. Each ask runs on a fresh instance in a cage with no clock, no randomness, no I/O: chance
178
+ comes from the stamp's seed, time from the stamp, the world only by asks. A faculty proves itself by **evidence**:
179
+ pieces of its world replayed exactly. Code is logic and data is cells.
180
+
181
+ The **library** keeps every code by its digest and never runs one. Code enters by four **roads** alone, always taken on
182
+ an owner's word, never given:
183
+
184
+ 1. **The genome's**: the default faculties, at install and upgrade.
185
+ 2. **The installer's**: the host's organs and the faculties it ships, from its **channel**, the host's own way of
186
+ shipping code: the floor's among them, the console's and the screen's skins and what it gives them by name, the
187
+ floor's look for the window, and the repo faculties, the jailer and the repo lobe.
188
+ 3. **A source's**: everything else, from any lobe an owner names that answers `get` and `told`. A repo lobe is Nervur's
189
+ own: it tells a version once a tagged commit holds it, and its `versions.json` names each version's digest. The
190
+ library asks the source (local, or far over a library's standing) for the text, hashes it itself and keeps it only if
191
+ the digest matches and the name and version were never kept under another digest, an owner's `second` taking another
192
+ author's as a name of its own, by its source. A faculty a far place offers is held as given by that place, for its
193
+ asker to create sealed.
194
+ 4. **An owner's hand**: a faculty's text an owner's `add` carries itself, kept under `hand@<version>`, by the same
195
+ walls. It is how a bare host gets its first source.
196
+
197
+ A faculty from a source carries its evidence as an **asset**, a file it carries as part of its version, data that runs
198
+ nothing, so the proof outlives its repo; one with none stays allowed, shown as unproven. What the genome or the
199
+ installer lays is proven by the release that ships it.
200
+
201
+ An owner **creates** a lobe on a kept digest, naming its wires, and **moves** it to another version in place, or to
202
+ another faculty's; the move asks the new version `migrate` once, keeps the old one if it fails, and leaves what the new
203
+ version declares anew unwired for the owner to wire. A landed move keeps one step back until the owner settles it, goes
204
+ back or moves again, and no size of a lobe stops it. The library keeps no old version no lobe or step names, but one an
205
+ owner spares: each boot, and each lobe leaving a version, sweeps them, so a version an owner adds stays for a lobe to
206
+ move to, an older one too. A version removed keeps its digest, so no other text ever takes it. Lobes that decide who
207
+ someone is or what code is (brain, library, ear, mouth) are **immutable**: they move only with the genome. A present
208
+ lobe decides no one: the person present moves the console's or the screen's skin to any faculty by `version`, never a
209
+ model or a far owner; the choice is the home's, so an upgrade moves only a skin no one chose, and
210
+ `nervur start --floor`, at the device, lays again the one its **port** gave, the installer for its kind of host, its
211
+ design with it, so no skin and no design holds anyone captive.
212
+
213
+ ## Organs
214
+
215
+ An organ is `{blueprint, reach, half, code?}`. Its host half is a WebAssembly **component** given exactly the imports
216
+ its reach names, or a **native half** built for one host. No host half's program ever crosses Quo: a **repo's organ**
217
+ comes only from a repo lobe of the organism's own, pulled and built in its body through `shell`, then added by an
218
+ owner's `addOrgan` under a fixed ID. A host without a body takes faculties only, and organs from its installer and the
219
+ halves its embedder's build brings, a site's, an app's or a pilot's, each admitted by `addOrgan`. A host half that fails
220
+ shows unavailable and restarts alone. An organ's judgment lives in its skin lobes, which hold its secrets and settings.
221
+ Logic lives in lobes, drivers in organs; a new use case is a new plain lobe composing skin lobes, seldom a new organ.
222
+
223
+ The organs Nervur holds: `network` carries Quo and the web; the console asks its present lobe `line` with each line
224
+ typed; `shell` runs programs as the body; `disk` keeps files under one folder.
225
+
226
+ ## Building well
227
+
228
+ What Nervur leaves to whoever builds, as a builder holds it; nothing here binds an organism.
229
+
230
+ - **Code is logic, data is cells.** A faculty is one module, written in any language that yields it and bundled by its
231
+ repo's build. A table, a content or a model it serves is laid in its lobe's cells, by `migrate` or by asks, never in
232
+ its source, so a version carries only what changed of the logic.
233
+ - **Logic in lobes, drivers in organs.** Whatever can be decided is decided in a lobe over an organ; heavy computation,
234
+ running a model or transcoding media, is a driver's work and stands in an organ, its host half native code of its
235
+ owner's where it must be, as a driver on a Pi that moves a robot, its source in its owner's repo, built on the Pi, its
236
+ reach the motor's device. The shape that repeats is a plain lobe composing skin lobes: the skin lobes hold what
237
+ reaches the world and its secrets, and the plain lobe holds the use case, reaching the world only by asking them and
238
+ beings.
239
+ - **Signal or letter.** An ask whose loss matters is a letter; one asked again anyway is a signal. An ask back, a letter
240
+ taken again or a durable ask sent again is a cue to read cells, never proof that something happened once: a node that
241
+ owes one and meets `unavailable` drops it, the asker's cells staying the truth, or posts it as a letter that waits for
242
+ the asker's switch on.
243
+ - **Once, far.** What an ask sent far did stays done, so an ask that must not run twice, a payment, carries a key of its
244
+ asker's, which the far lobe keeps and answers once. On a window of one, an asker who must know an earlier box will not
245
+ still run asks once more. A lobe working step by step names its next step in its answer.
246
+ - **Choosing by the nerves.** A lobe reads its statuses and answers `unavailable`, takes another path, or orders its
247
+ wiring again; at `left` it forgets what it keeps of that far organism, as a token. Whoever knocks first holds the
248
+ relation, so a note on an occupant is a belief rooted in the handing over. A lobe that needs more asks at once to one
249
+ being has its organism hold more standings.
250
+ - **Skin lobes.** Every use of an organ is a skin lobe of its own: `network` has the ear, the mouth and the web's,
251
+ `shell` the jailer and every lobe that runs programs. A skin lobe lets a secret reach its organ only as an ask's
252
+ input, never in words the organ keeps. A lobe stands before an organ for other lobes only where they must share what
253
+ it keeps, as one account's token, and is then their skin lobe's plain asker as any other. An organ's long work answers
254
+ at once and asks its skin lobe back; a skin lobe serving another lobe asks it back in turn, by a letter where it must
255
+ not be lost, and never asks its organ again from inside the organ's ask back, which waits on its answer: it keeps what
256
+ follows in its cells and starts it by an alarm, which the scheduler keeps.
257
+ - **Long work.** Work longer than one ask is made of pieces, each its own ask well within the longest timeout, and is
258
+ judged by progress: a piece that times out is asked again, and the whole fails only once it moved not for the span it
259
+ may stand still, never because one piece was slow.
260
+ - **Two organisms nobody can dial** both hold lines to one always on, which passes each ask down the line that proved
261
+ its ward and carries the reply back, unread. A relay, which gives a ward an address of its own, is a repo's, which the
262
+ genome neither holds nor forbids.
263
+ - **A builder delivers into its buyer's repo.** The buyer's repo lobe invites the builder with a writer's standing
264
+ scoped to the folders it delivers, a note and a span; the builder's repo lobe pulls the scope, writes in what it
265
+ delivers and pushes, and the buyer's lobe guards it. The standing ends and the builder's lobe is torn down, so the
266
+ builder keeps nothing of the buyer's, and the buyer keeps what was delivered. An update is a job again, on the buyer's
267
+ word, and a version enters the buyer's library from the buyer's own repo lobe.
268
+
269
+ ## Repos
270
+
271
+ An adopter builds on Nervur changing nothing of it: it writes faculties and organs in its own repos, and its nodes act
272
+ only through asks. What else it changes is its own. What travels as code stands in a **repo**. A repo is its lobes
273
+ and its bytes, kept by the **repo faculties**, the floor's skins of `shell` and `disk`, in `@nervur.org/floor`:
274
+
275
+ - **The jailer**, `nervur.repos`, one per organism with a body, laid on demand: it alone runs git, keeps each repo's
276
+ bytes at `repos/<name>`, grants each folder to one repo lobe, and lends the genome at
277
+ `repos/node_modules/@nervur.org/genome`, one folder up from every repo, at the version the organism runs; the genome
278
+ carries this guide, `authoring.md` and `changelog.md` in its `docs/`.
279
+ - **A repo lobe**, on `nervur.repo`, one per repo per organism: it commits, pulls and pushes git bundles over standings,
280
+ and guards its own `main` by two checks, Nervur's check of the parts and the repo's own `conform`, the choices its
281
+ owners hold it to, as the lobe's owner chose it, never a writer. Standings on it are a **reader's** (pull), a
282
+ **writer's** (pull and push), optionally scoped to folders, or a **library's** (read what was told). Only `main` and
283
+ its tags move between lobes.
284
+ - **Its commands and keys.** A repo declares commands alone, the scripts of its `package.json`. Keys belong to a copy of
285
+ the repo, never to the repo: its repo lobe keeps them in its cells, never answered and masked in all it tells, and has
286
+ `.env` written from them before each run. What protects a command is its key, never a role: a script without its key
287
+ fails by its own words. An owner asks `run`, `setToken` and `credential`; a credential renews itself before it expires
288
+ and ends with its standing. A lobe an owner wires to the repo lobe may run and commit, but while a writer's standing
289
+ stands on it only the one it names `author` commits; a **runner**, a far organism by its invitation, runs the scripts
290
+ it names alone.
291
+
292
+ **Authoring and running stand apart**. Authors work on their own organism, in their own repo lobe, gated at the commit,
293
+ and push along their standings. Code runs only where the owners ask it: a reader, a writer or a library never reaches
294
+ `run`, a key or a runner's invitation. They meet at a release alone: a version leaves by its digest, and an owner moves
295
+ a lobe to it. A release is published only by a `run` of the publish script on a repo lobe, at an owner's ask or a
296
+ runner's, on an organism its owner chooses, an authoring one among them. A gate runs the tests of the code that came,
297
+ which are the writer's, so it catches a mistake and never a writer: what an owner holds against writers is written in
298
+ `conform`.
299
+
300
+ A repo's version is its root `package.json`'s; a commit that raises it is tagged `v<version>` and that tag **tells**
301
+ every part it holds, whose bytes never change after. A repo names no genome: the organism lends it. Its conventions are
302
+ folders: `faculties/`, `organs/`, `designs/`; everything else is its owners' own, packages included. Its commands are
303
+ its `package.json` scripts, `gate` and `conform` always. Its **harness**, skills among it, says how it is authored, for
304
+ models alone, and Nervur shapes nothing of it; a faculty's **guide**, in its blueprint, says how it is run and used,
305
+ read by the owners, a lobe wired to it and whoever holds a standing on its lobe.
306
+
307
+ **Authoring a repo, anywhere.** A session authors a repo opened in that repo's own folder. Everything it needs is there:
308
+ Nervur's guide and the two papers beside it, one folder up in the lent genome's `docs/`, and the repo's own harness,
309
+ skills and gate in the repo. Its harness, its owners' own for whatever agent they bring, takes this guide in at the
310
+ start of every session, from the genome lent one folder up, at `repos/node_modules/@nervur.org/genome/docs/`, so whoever
311
+ authors starts holding Nervur, on any organism. Nervur lends knowledge alone, the guide and the papers beside it, for
312
+ any agent and any model, and lays no harness. A repo begins empty, or as the child of a lobe that raises repo lobes and
313
+ lays its owners' boilerplate, harness among it, as its first commit, to be pulled and authored. How a faculty is run is
314
+ its blueprint's `guide`, never a skill.
315
+
316
+ ## The screen and looks
317
+
318
+ A screen's **home** is the organism it is of, and a **place** is any lobe its person stands on, a far organism's or one
319
+ of their own, as its window draws it. A person sees through the **screen**:
320
+ lobes answer **trees** as data from a reading `draw`, the screen composes them, diffs and patches; no script, style or
321
+ address can be written in a tree, and a region a sealed lobe draws is drawn for the lobe whose slot asked it, which
322
+ hears its presses; a gesture is another hand on a control the keyboard reaches. A lobe may be created **sealed**, by
323
+ whoever creates it: it hears and answers, reads its own cells and its faculty's assets, and orders no wire, so code
324
+ another wrote runs and reaches nothing. A place answers what its describe offers; the floor's window draws a place with
325
+ no `draw` of its own as its methods and a field for each argument, so one describe gives its forms as it gives Quo's
326
+ describe and the console's tools. The **window**, the screen's skin lobe, draws in a **design** (tokens, themes,
327
+ components built into a **look** faculty), which is no part of the genome: it creates its design lobes sealed and
328
+ wears the design its port gave it by the name `design` until an owner's `wear` chooses another. What a window hands
329
+ the host to lay above the page stands outside every tree, where no place's tree or sheet covers or presses it, and no
330
+ tree of a place forges a consent the window holds. The floor's window is the least that lets a person use what Nervur
331
+ promises from a screen: it shows the organism and a place by what they describe, carries a press past the person's
332
+ yes where it binds them, takes a link only with a yes that knows who invites and what they say, and leaves what it
333
+ took. It says the warnings and every consent in the home's own words and lays a way out above the page; a note its
334
+ caller gives at a link's yes is kept beside the standing and never sent to the place; and at a place it took, a press
335
+ the person consents to ends the standing whole and returns them to the home. Everything else a person meets, pages
336
+ laid out of parts, boards, lists and words in their language, is built in a window or a design of one's own: Where
337
+ Nervur stops, below, says how. A site is another repo's, and in a
338
+ browser a page embeds the installer as plain files.
339
+
340
+ ## Hosts
341
+
342
+ One genome on every host; only host halves differ. The engine is QuickJS and the store SQLite with every page encrypted,
343
+ everywhere, and they are named in one place alone. The Node installer serves servers, desktops, Pis and NASes, with a
344
+ body and `nervur install`, `nervur update`; the browser's has none, its boot key a file of the site. A phone's app
345
+ embeds the browser port, its store in the app's own files and its boot key in the keychain; an edge, its boot key drawn
346
+ and kept in its object's own storage, is laid from another machine from its port's **cargo**, the genome and that host's
347
+ parts built into the files the host's runtime takes, by a **pilot**, a repo's faculty and organ that lay and keep an
348
+ organism on a host from another machine, or by hand, and a server where no one is present by `nervur install --claim`,
349
+ and either is claimed by whoever names its **claim**, a secret drawn and set on the host as it is laid, by which the
350
+ organism's first invitation is fetched. On a server the machine is root's: ports, DNS and services are laid outside the
351
+ graph by its holder, never by the organism. A server holds as many organisms as it has accounts, one for each, each with
352
+ a **body** of its own, a second account where its organs run, so none sees another's files; its administrator prepares
353
+ each person's two accounts once, and the person installs alone. Authoring's _A server_ says what each of the
354
+ administrator and the person does, for a machine you own, one you hold an account on, and one laid for you.
355
+
356
+ A new version is tried before it is kept: the old store is laid aside untouched, with the old package on a machine,
357
+ and the new version boots in place on a copy of it, a clone where the disk gives one, so an update costs what its own
358
+ moves change, never the size of the store; the version boots with the world held, and it is kept or the old comes back
359
+ by itself. The update asks nothing of the organism but its stop, so it moves one no one is present at as it moves one
360
+ owned at its console. Until 1.0.0 it is abrupt: a run
361
+ the body has going is lost to it as to a crash, and its lobe told so. What the installer ships, its organs' halves and
362
+ its faculties, moves at the new version's first boot, a lobe an owner moved to a later version staying. From afar
363
+ `upgrade` names a version and its digest, and nothing else lands. Until 1.0.0 every organism also moves itself to the
364
+ newest: its process asks the channel it was laid from or last updated by as it starts and every hour, and runs the same
365
+ update onto a newer version, saying what it did in its log and asking no one; one laid from a package at hand has no
366
+ channel and checks nothing. A start, a trial and a stop wait on the organism's silence, never on a span: while it opens
367
+ or ends it tells it lives, so a store that takes long to open is waited for, and a process that tells nothing for the
368
+ longest wait, or ends unasked, fails the step with why.
369
+
370
+ Two moves stand apart. A faculty's new version is its author's: its `migrate` converts its own cells by its own logic,
371
+ and Nervur only runs it. Nervur's own new version knows no faculty, and from 1.0.0 breaks no contract one stands on.
372
+ Until 1.0.0 Nervur goes forward only: a genome names its floor, `FLOOR`, the oldest release whose store it carries
373
+ forward, and refuses a store a genome below it last booted, saying to move to the floor first. Until every organism has
374
+ crossed it, one `nervur update` carries an organism whatever release it runs: below the floor, the floor's own package
375
+ opens its store in place first, then the newest version tries it; a step that fails brings the old back by itself, and
376
+ the update says why. On a machine, `nervur update` walks the floors in turn, and a backup from below the floor is
377
+ restored by the floor's own release, then updated. Each floor carries its own, so no machine's organism is stranded,
378
+ however long it slept. A browser and a phone carry no earlier release beside their files: their floor is the release a
379
+ site or an app serves, so a store a release below the genome's floor kept, and a backup or a move laid there that a
380
+ release below it wrote, is refused as it stands, saying the installer carries no floor, nothing opened and the store
381
+ untouched.
382
+
383
+ ## The floor and the licence
384
+
385
+ Above the genome and the ports everything is faculties and organs and the data they carry, and the genome names
386
+ nothing built of them, so all of it, Nervur's own defaults among it, can be built again or replaced by anyone.
387
+
388
+ The **floor** is only what the genome and the ports cannot work without: the default skins of the organs a port lays,
389
+ the console's terminal and the screen's window, the two skins of presence, and the repo faculties of `shell` and
390
+ `disk`, the jailer and the repo lobe, which a port with a body lays the first time an owner wants a repo; and the
391
+ plain look the window draws with. The window is the least that lets a person live with no design: it draws the
392
+ organism and each place by what they describe, carries a press past the person's yes where the press binds them,
393
+ takes a link only with a yes that knows who invites and what they say, and leaves a place it took. Its own words are
394
+ English; a design says them in any other language. Each of the floor's faculties stands on what the genome publishes
395
+ alone, as any repo does, and holds no privilege: the genome lays no skin, a port names the floor's in its
396
+ configuration, as an owner's word could name another repo's, and a skin's text whose row is damaged reads from the
397
+ bytes the port gave.
398
+
399
+ ## Where Nervur stops
400
+
401
+ Nervur gives the mechanics no one could build alone, and nothing more: an organism and its keys, an invitation taken
402
+ and its keys kept in the cells, asks one way over it, the owner as root, the cage, the store, backups and moves, the
403
+ screen's safety, and the ports that lay it on each host. Everything a person meets, holds or is offered is built on it
404
+ by whoever builds, in faculties, organs, designs and apps of their own: a list of places blocked, a report, a page of
405
+ what a person can do with a place, a board of many, a keeper of boot keys, a copy of an organism kept somewhere safe,
406
+ words in every language, a page laid out as one likes. Nervur will not build these for anyone, however often they are
407
+ asked: each is one way among many, and the first one built into the kernel would close the rest. What is asked of
408
+ Nervur is weighed by one question: without it, with no design and no app, does something Nervur already
409
+ promises break, or could no one build it on what is published? Three answers alone say yes: nothing published reaches
410
+ it; it can be built, but what Nervur promises could then not be proven; or the only way to build it breaks a promise,
411
+ a key held outside the cage, a wait where something could tell, two of a person's relations linked. Easier, faster,
412
+ nicer or often asked is not one of them. What enters comes with its proof, a test played from outside as a stranger
413
+ plays it, failing before and holding after. Where the answer is no, the answer is how to build it, in
414
+ `authoring.md`, never a change to Nervur.
415
+
416
+ Nervur is Bookarest Digital SRL's, under the Functional Source License (`FSL-1.1-ALv2`): anyone reads it, uses it and
417
+ earns with what they build on it; no one sells Nervur itself or a rival made of it; each version becomes Apache-2.0 two
418
+ years after it is published.
419
+
420
+ ## Where to look
421
+
422
+ | To know | Open |
423
+ | --------------------------------------- | --------------------------------------------------------- |
424
+ | how to install, own and build on Nervur | `authoring.md`, beside this guide |
425
+ | what each version changed | `changelog.md`, beside this guide |
426
+ | how a faculty is run and used | its `guide`, in its blueprint, and its node's describe |
427
+ | what an organism is and holds now | the brain's `portrait` and `state` |
428
+ | how a repo is authored and released | `authoring.md`, then the repo's harness, its skills first |
429
+ | what crosses between two organisms | Quo's own spec, by its chapter |
@@ -0,0 +1,17 @@
1
+ import type { QuickJSContext, QuickJSHandle, QuickJSWASMModule } from 'quickjs-emscripten-core';
2
+ export declare const HOLD_MOST: number;
3
+ export type Hold = {
4
+ get(key: string): Uint8Array | undefined;
5
+ set(key: string, bytecode: Uint8Array): void;
6
+ bytes(): number;
7
+ };
8
+ export declare const makeHold: (most: number) => Hold;
9
+ export type Build = {
10
+ write(context: QuickJSContext, name: string, source: Uint8Array): Uint8Array | null;
11
+ read(context: QuickJSContext, bytecode: Uint8Array): boolean;
12
+ cut(context: QuickJSContext): string | null;
13
+ lay(context: QuickJSContext, value: QuickJSHandle, read: (bytes: Uint8Array) => void): boolean;
14
+ atStack<T>(body: () => T): T;
15
+ };
16
+ export declare const STACK_OVERFLOW = "Maximum call stack size exceeded";
17
+ export declare const buildOf: (quickjs: QuickJSWASMModule) => Build | null;
@@ -0,0 +1,170 @@
1
+ // SPDX-License-Identifier: FSL-1.1-ALv2
2
+
3
+ import { utf8Bytes } from '#standard';
4
+
5
+ export const HOLD_MOST = 32 * 1024 * 1024;
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+ export const makeHold = (most ) => {
15
+ const held = new Map ();
16
+ let bytes = 0;
17
+ const drop = (key ) => {
18
+ const was = held.get(key);
19
+ if (was === undefined) return;
20
+ held.delete(key);
21
+ bytes -= was.length;
22
+ };
23
+ return {
24
+ get: (key) => {
25
+ const bytecode = held.get(key);
26
+ if (bytecode === undefined) return undefined;
27
+ held.delete(key);
28
+ held.set(key, bytecode);
29
+ return bytecode;
30
+ },
31
+ set: (key, bytecode) => {
32
+ drop(key);
33
+ if (bytecode.length > most) return;
34
+ held.set(key, bytecode);
35
+ bytes += bytecode.length;
36
+ for (const oldest of held.keys()) {
37
+ if (bytes <= most) break;
38
+ drop(oldest);
39
+ }
40
+ },
41
+ bytes: () => bytes,
42
+ };
43
+ };
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+ export const STACK_OVERFLOW = 'Maximum call stack size exceeded';
61
+
62
+ const CUTS = { 1: 'out of memory', 2: STACK_OVERFLOW };
63
+
64
+ const callOf = (module , name ) => {
65
+ const found = typeof module === 'object' && module !== null ? Reflect.get(module, name) : undefined;
66
+ if (typeof found !== 'function') return null;
67
+ return (...args) => {
68
+ const out = Reflect.apply(found, module, args);
69
+ if (out === undefined) return 0;
70
+ if (typeof out !== 'number') throw new Error(`the engine's ${name} answered no number`);
71
+ return out;
72
+ };
73
+ };
74
+
75
+ const pointerOf = (context ) => {
76
+ const lifetime = Reflect.get(context, 'ctx');
77
+ const pointer =
78
+ typeof lifetime === 'object' && lifetime !== null ? Reflect.get(lifetime, 'value') : undefined;
79
+ if (typeof pointer !== 'number' || !Number.isSafeInteger(pointer) || pointer <= 0)
80
+ throw new Error('the engine holds no context pointer');
81
+ return pointer;
82
+ };
83
+
84
+ const parsed = (source ) => {
85
+ const end = source.indexOf(0);
86
+ return end === -1 ? source : source.subarray(0, end);
87
+ };
88
+
89
+ export const buildOf = (quickjs ) => {
90
+ const module = Reflect.get(quickjs, 'module');
91
+ const [write, read, cut, layValue, malloc, free, release, stackSave, stackRestore] = [
92
+ '_QTS_WriteModule',
93
+ '_QTS_ReadModule',
94
+ '_QTS_Cut',
95
+ '_QTS_LayValue',
96
+ '_malloc',
97
+ '_free',
98
+ '_QTS_FreeVoidPointer',
99
+ '_emscripten_stack_get_current',
100
+ '__emscripten_stack_restore',
101
+ ].map((name) => callOf(module, name));
102
+ if (!write || !read || !cut || !layValue || !malloc || !free || !release || !stackSave || !stackRestore) return null;
103
+ const memory = quickjs.getWasmMemory();
104
+ const lay = (bytes , zero ) => {
105
+ const at = malloc(bytes.length + Number(zero));
106
+ const view = new Uint8Array(memory.buffer);
107
+ view.set(bytes, at);
108
+ if (zero) view[at + bytes.length] = 0;
109
+ return at;
110
+ };
111
+ return {
112
+ write: (context, name, source) => {
113
+ const text = parsed(source);
114
+ const laid = [];
115
+ const laying = (bytes , zero ) => {
116
+ const at = lay(bytes, zero);
117
+ laid.push(at);
118
+ return at;
119
+ };
120
+ try {
121
+ const named = laying(utf8Bytes(name), true);
122
+ const body = laying(text, true);
123
+ const length = laying(new Uint8Array(4), false);
124
+ const ctx = pointerOf(context);
125
+ const at = write(ctx, named, body, text.length, length);
126
+ if (at === 0) return null;
127
+ const size = new DataView(memory.buffer).getUint32(length, true);
128
+ const bytecode = new Uint8Array(memory.buffer).slice(at, at + size);
129
+ release(ctx, at);
130
+ return bytecode;
131
+ } finally {
132
+ for (const at of laid) free(at);
133
+ }
134
+ },
135
+ read: (context, bytecode) => {
136
+ const at = lay(bytecode, false);
137
+ try {
138
+ return read(pointerOf(context), at, bytecode.length) === 0;
139
+ } finally {
140
+ free(at);
141
+ }
142
+ },
143
+ cut: (context) => CUTS[cut(pointerOf(context))] ?? null,
144
+ lay: (context, value, reading) => {
145
+ const length = malloc(4);
146
+ try {
147
+ const at = layValue(pointerOf(context), Number(value.value), length);
148
+ if (at === 0) return false;
149
+ try {
150
+ const size = new DataView(memory.buffer).getUint32(length, true);
151
+ reading(new Uint8Array(memory.buffer, at, size));
152
+ } finally {
153
+ free(at);
154
+ }
155
+ return true;
156
+ } finally {
157
+ free(length);
158
+ }
159
+ },
160
+ atStack: (body) => {
161
+ const at = stackSave();
162
+ try {
163
+ return body();
164
+ } catch (thrown) {
165
+ stackRestore(at);
166
+ throw thrown;
167
+ }
168
+ },
169
+ };
170
+ };
@@ -0,0 +1,3 @@
1
+ import type { Context, Host } from '#seams';
2
+ import { type Home } from './state.js';
3
+ export declare const makeContext: (home: Home, modules: ReadonlyMap<string, Uint8Array>, host: Host, memory?: number) => Context;