@nervur.org/genome 0.0.0-stage → 0.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +105 -0
- package/README.md +28 -2
- package/SECURITY.md +8 -0
- package/cage/cells/cells.d.ts +25 -0
- package/cage/cells/cells.js +114 -0
- package/cage/cells/index.d.ts +4 -0
- package/cage/cells/index.js +5 -0
- package/cage/cells/over.d.ts +5 -0
- package/cage/cells/over.js +46 -0
- package/cage/cells/range.d.ts +31 -0
- package/cage/cells/range.js +226 -0
- package/cage/cells/reader.d.ts +17 -0
- package/cage/cells/reader.js +20 -0
- package/cage/codec/codec.d.ts +2 -0
- package/cage/codec/codec.js +5 -0
- package/cage/codec/index.d.ts +1 -0
- package/cage/codec/index.js +2 -0
- package/cage/collation/check.d.ts +7 -0
- package/cage/collation/check.js +24 -0
- package/cage/collation/collation.d.ts +9 -0
- package/cage/collation/collation.js +118 -0
- package/cage/collation/index.d.ts +3 -0
- package/cage/collation/index.js +4 -0
- package/cage/collation/order.d.ts +1 -0
- package/cage/collation/order.js +9 -0
- package/cage/fill.d.ts +8 -0
- package/cage/fill.js +30 -0
- package/cage/index.d.ts +6 -0
- package/cage/index.js +78 -0
- package/cage/lobe/apart.d.ts +34 -0
- package/cage/lobe/apart.js +91 -0
- package/cage/lobe/calls.d.ts +8 -0
- package/cage/lobe/calls.js +35 -0
- package/cage/lobe/charges.d.ts +10 -0
- package/cage/lobe/charges.js +42 -0
- package/cage/lobe/decoder.d.ts +15 -0
- package/cage/lobe/decoder.js +159 -0
- package/cage/lobe/host.d.ts +27 -0
- package/cage/lobe/host.js +107 -0
- package/cage/lobe/index.d.ts +7 -0
- package/cage/lobe/index.js +32 -0
- package/cage/lobe/quo.d.ts +3 -0
- package/cage/lobe/quo.js +30 -0
- package/cage/lobe/read.d.ts +11 -0
- package/cage/lobe/read.js +18 -0
- package/cage/lobe/runner.d.ts +45 -0
- package/cage/lobe/runner.js +242 -0
- package/cage/lobe/seams.d.ts +2 -0
- package/cage/lobe/seams.js +124 -0
- package/cage/published.d.ts +1 -0
- package/cage/published.js +27 -0
- package/cage/run/cells.d.ts +9 -0
- package/cage/run/cells.js +80 -0
- package/cage/run/codes.d.ts +19 -0
- package/cage/run/codes.js +101 -0
- package/cage/run/given.d.ts +49 -0
- package/cage/run/given.js +145 -0
- package/cage/run/host.d.ts +13 -0
- package/cage/run/host.js +37 -0
- package/cage/run/index.d.ts +4 -0
- package/cage/run/index.js +5 -0
- package/cage/run/input.d.ts +14 -0
- package/cage/run/input.js +138 -0
- package/cage/run/nest.d.ts +31 -0
- package/cage/run/nest.js +187 -0
- package/cage/run/run.d.ts +12 -0
- package/cage/run/run.js +79 -0
- package/cage/run/suspend.d.ts +14 -0
- package/cage/run/suspend.js +57 -0
- package/contracts/bridge/contract.d.ts +2 -0
- package/contracts/bridge/contract.js +57 -0
- package/contracts/bridge/index.d.ts +1 -0
- package/contracts/bridge/index.js +2 -0
- package/contracts/carriers/contract.d.ts +4 -0
- package/contracts/carriers/contract.js +485 -0
- package/contracts/carriers/index.d.ts +2 -0
- package/contracts/carriers/index.js +3 -0
- package/contracts/carriers/web.d.ts +2 -0
- package/contracts/carriers/web.js +231 -0
- package/contracts/chance/contract.d.ts +2 -0
- package/contracts/chance/contract.js +25 -0
- package/contracts/chance/index.d.ts +1 -0
- package/contracts/chance/index.js +2 -0
- package/contracts/codec/contract.d.ts +2 -0
- package/contracts/codec/contract.js +124 -0
- package/contracts/codec/index.d.ts +1 -0
- package/contracts/codec/index.js +2 -0
- package/contracts/crypto/contract.d.ts +2 -0
- package/contracts/crypto/contract.js +204 -0
- package/contracts/crypto/index.d.ts +1 -0
- package/contracts/crypto/index.js +2 -0
- package/contracts/crypto/mlkem.d.ts +2 -0
- package/contracts/crypto/mlkem.js +21 -0
- package/contracts/crypto/signatures.d.ts +2 -0
- package/contracts/crypto/signatures.js +165 -0
- package/contracts/crypto/vector.d.ts +73 -0
- package/contracts/crypto/vector.js +93 -0
- package/contracts/crypto/vectors.d.ts +2 -0
- package/contracts/crypto/vectors.js +107 -0
- package/contracts/door/contract.d.ts +13 -0
- package/contracts/door/contract.js +94 -0
- package/contracts/door/index.d.ts +1 -0
- package/contracts/door/index.js +2 -0
- package/contracts/engine/contract.d.ts +2 -0
- package/contracts/engine/contract.js +251 -0
- package/contracts/engine/held.d.ts +3 -0
- package/contracts/engine/held.js +52 -0
- package/contracts/engine/index.d.ts +1 -0
- package/contracts/engine/index.js +2 -0
- package/contracts/engine/judge.d.ts +5 -0
- package/contracts/engine/judge.js +28 -0
- package/contracts/engine/sources.d.ts +17 -0
- package/contracts/engine/sources.js +67 -0
- package/contracts/index.d.ts +14 -0
- package/contracts/index.js +15 -0
- package/contracts/lobes/contract.d.ts +8 -0
- package/contracts/lobes/contract.js +186 -0
- package/contracts/lobes/index.d.ts +1 -0
- package/contracts/lobes/index.js +2 -0
- package/contracts/page-layer/contract.d.ts +2 -0
- package/contracts/page-layer/contract.js +218 -0
- package/contracts/page-layer/index.d.ts +1 -0
- package/contracts/page-layer/index.js +2 -0
- package/contracts/queues/contract.d.ts +2 -0
- package/contracts/queues/contract.js +281 -0
- package/contracts/queues/index.d.ts +1 -0
- package/contracts/queues/index.js +2 -0
- package/contracts/queues/steps.d.ts +11 -0
- package/contracts/queues/steps.js +68 -0
- package/contracts/run/contract.d.ts +2 -0
- package/contracts/run/contract.js +151 -0
- package/contracts/run/index.d.ts +1 -0
- package/contracts/run/index.js +2 -0
- package/contracts/run/sources.d.ts +6 -0
- package/contracts/run/sources.js +45 -0
- package/contracts/time/contract.d.ts +2 -0
- package/contracts/time/contract.js +113 -0
- package/contracts/time/index.d.ts +1 -0
- package/contracts/time/index.js +2 -0
- package/contracts/unlocker/contract.d.ts +2 -0
- package/contracts/unlocker/contract.js +25 -0
- package/contracts/unlocker/index.d.ts +1 -0
- package/contracts/unlocker/index.js +2 -0
- package/contracts/vitals/contract.d.ts +2 -0
- package/contracts/vitals/contract.js +50 -0
- package/contracts/vitals/index.d.ts +1 -0
- package/contracts/vitals/index.js +2 -0
- package/docs/authoring.md +1986 -0
- package/docs/changelog.md +17 -0
- package/docs/guide.md +429 -0
- package/engine/bytecode.d.ts +17 -0
- package/engine/bytecode.js +170 -0
- package/engine/context.d.ts +3 -0
- package/engine/context.js +271 -0
- package/engine/decoder.d.ts +10 -0
- package/engine/decoder.js +286 -0
- package/engine/engine.d.ts +21 -0
- package/engine/engine.js +271 -0
- package/engine/heap.d.ts +5 -0
- package/engine/heap.js +47 -0
- package/engine/held.d.ts +8 -0
- package/engine/held.js +32 -0
- package/engine/helpers.d.ts +27 -0
- package/engine/helpers.js +177 -0
- package/engine/host.d.ts +3 -0
- package/engine/host.js +78 -0
- package/engine/index.d.ts +1 -0
- package/engine/index.js +2 -0
- package/engine/loader.d.ts +6 -0
- package/engine/loader.js +72 -0
- package/engine/lock.d.ts +2 -0
- package/engine/lock.js +17 -0
- package/engine/state.d.ts +55 -0
- package/engine/state.js +107 -0
- package/engine/vendor/LICENSE +24 -0
- package/engine/vendor/emscripten-module.d.mts +5 -0
- package/engine/vendor/emscripten-module.mjs +2 -0
- package/engine/vendor/emscripten-module.wasm +0 -0
- package/engine/vendor/index.d.ts +1 -0
- package/engine/vendor/index.js +2 -0
- package/engine/watcher.d.ts +2 -0
- package/engine/watcher.js +4 -0
- package/engine/writer.d.ts +4 -0
- package/engine/writer.js +84 -0
- package/engine/written.d.ts +3 -0
- package/engine/written.js +86 -0
- package/evidence/index.d.ts +2 -0
- package/evidence/index.js +3 -0
- package/evidence/read.d.ts +42 -0
- package/evidence/read.js +210 -0
- package/evidence/replay.d.ts +17 -0
- package/evidence/replay.js +184 -0
- package/faculty/base/faculty.d.ts +24 -0
- package/faculty/base/faculty.js +300 -0
- package/faculty/base/host.d.ts +140 -0
- package/faculty/base/host.js +82 -0
- package/faculty/base/index.d.ts +6 -0
- package/faculty/base/index.js +29 -0
- package/faculty/base/objects.d.ts +82 -0
- package/faculty/base/objects.js +79 -0
- package/faculty/base/run.d.ts +63 -0
- package/faculty/base/run.js +52 -0
- package/faculty/base/source.d.ts +18 -0
- package/faculty/base/source.js +55 -0
- package/faculty/base/text.d.ts +1 -0
- package/faculty/base/text.js +3 -0
- package/faculty/index.d.ts +2 -0
- package/faculty/index.js +52 -0
- package/faculty/nervur-faculty.d.ts +28 -0
- package/faculty/published.d.ts +1 -0
- package/faculty/published.js +34 -0
- package/faculty/read/index.d.ts +1 -0
- package/faculty/read/index.js +15 -0
- package/faculty/read/read.d.ts +32 -0
- package/faculty/read/read.js +109 -0
- package/genome/backup/backup.d.ts +35 -0
- package/genome/backup/backup.js +278 -0
- package/genome/backup/file.d.ts +19 -0
- package/genome/backup/file.js +66 -0
- package/genome/backup/form.d.ts +11 -0
- package/genome/backup/form.js +339 -0
- package/genome/backup/held.d.ts +14 -0
- package/genome/backup/held.js +123 -0
- package/genome/backup/index.d.ts +6 -0
- package/genome/backup/index.js +29 -0
- package/genome/backup/kept.d.ts +117 -0
- package/genome/backup/kept.js +386 -0
- package/genome/backup/named.d.ts +6 -0
- package/genome/backup/named.js +70 -0
- package/genome/boot/anchor.d.ts +4 -0
- package/genome/boot/anchor.js +35 -0
- package/genome/boot/boot.d.ts +33 -0
- package/genome/boot/boot.js +223 -0
- package/genome/boot/channel.d.ts +11 -0
- package/genome/boot/channel.js +32 -0
- package/genome/boot/core.d.ts +17 -0
- package/genome/boot/core.js +80 -0
- package/genome/boot/given.d.ts +15 -0
- package/genome/boot/given.js +59 -0
- package/genome/boot/index.d.ts +5 -0
- package/genome/boot/index.js +6 -0
- package/genome/boot/invitation.d.ts +9 -0
- package/genome/boot/invitation.js +40 -0
- package/genome/boot/moved.d.ts +17 -0
- package/genome/boot/moved.js +133 -0
- package/genome/boot/organs.d.ts +8 -0
- package/genome/boot/organs.js +62 -0
- package/genome/boot/present.d.ts +34 -0
- package/genome/boot/present.js +136 -0
- package/genome/boot/renew.d.ts +13 -0
- package/genome/boot/renew.js +24 -0
- package/genome/boot/shelf.d.ts +16 -0
- package/genome/boot/shelf.js +60 -0
- package/genome/boot/skin.d.ts +14 -0
- package/genome/boot/skin.js +66 -0
- package/genome/brain/accept.d.ts +12 -0
- package/genome/brain/accept.js +120 -0
- package/genome/brain/addresses.d.ts +4 -0
- package/genome/brain/addresses.js +32 -0
- package/genome/brain/anchor.d.ts +22 -0
- package/genome/brain/anchor.js +155 -0
- package/genome/brain/askers.d.ts +5 -0
- package/genome/brain/askers.js +25 -0
- package/genome/brain/assets-method.d.ts +3 -0
- package/genome/brain/assets-method.js +28 -0
- package/genome/brain/assets.d.ts +4 -0
- package/genome/brain/assets.js +61 -0
- package/genome/brain/blueprint.d.ts +5 -0
- package/genome/brain/blueprint.js +528 -0
- package/genome/brain/brain.d.ts +19 -0
- package/genome/brain/brain.js +291 -0
- package/genome/brain/cede.d.ts +7 -0
- package/genome/brain/cede.js +179 -0
- package/genome/brain/changes.d.ts +23 -0
- package/genome/brain/changes.js +91 -0
- package/genome/brain/character.d.ts +8 -0
- package/genome/brain/character.js +55 -0
- package/genome/brain/children.d.ts +7 -0
- package/genome/brain/children.js +37 -0
- package/genome/brain/clock.d.ts +18 -0
- package/genome/brain/clock.js +91 -0
- package/genome/brain/ended.d.ts +3 -0
- package/genome/brain/ended.js +21 -0
- package/genome/brain/ends.d.ts +9 -0
- package/genome/brain/ends.js +109 -0
- package/genome/brain/expiry.d.ts +21 -0
- package/genome/brain/expiry.js +87 -0
- package/genome/brain/faculties.d.ts +16 -0
- package/genome/brain/faculties.js +88 -0
- package/genome/brain/far.d.ts +53 -0
- package/genome/brain/far.js +330 -0
- package/genome/brain/fields.d.ts +1 -0
- package/genome/brain/fields.js +5 -0
- package/genome/brain/genome.d.ts +8 -0
- package/genome/brain/genome.js +46 -0
- package/genome/brain/given.d.ts +4 -0
- package/genome/brain/given.js +15 -0
- package/genome/brain/granting.d.ts +23 -0
- package/genome/brain/granting.js +98 -0
- package/genome/brain/grants.d.ts +20 -0
- package/genome/brain/grants.js +70 -0
- package/genome/brain/guide.d.ts +2 -0
- package/genome/brain/guide.js +5 -0
- package/genome/brain/holds.d.ts +48 -0
- package/genome/brain/holds.js +197 -0
- package/genome/brain/index.d.ts +34 -0
- package/genome/brain/index.js +35 -0
- package/genome/brain/invitations.d.ts +6 -0
- package/genome/brain/invitations.js +80 -0
- package/genome/brain/kept.d.ts +32 -0
- package/genome/brain/kept.js +189 -0
- package/genome/brain/kit.d.ts +85 -0
- package/genome/brain/kit.js +101 -0
- package/genome/brain/landing.d.ts +6 -0
- package/genome/brain/landing.js +45 -0
- package/genome/brain/lapses.d.ts +8 -0
- package/genome/brain/lapses.js +53 -0
- package/genome/brain/letters.d.ts +8 -0
- package/genome/brain/letters.js +67 -0
- package/genome/brain/life.d.ts +24 -0
- package/genome/brain/life.js +205 -0
- package/genome/brain/limits.d.ts +14 -0
- package/genome/brain/limits.js +159 -0
- package/genome/brain/lined.d.ts +23 -0
- package/genome/brain/lined.js +90 -0
- package/genome/brain/marks.d.ts +22 -0
- package/genome/brain/marks.js +47 -0
- package/genome/brain/methods.d.ts +7 -0
- package/genome/brain/methods.js +243 -0
- package/genome/brain/mouth.d.ts +38 -0
- package/genome/brain/mouth.js +302 -0
- package/genome/brain/moves.d.ts +14 -0
- package/genome/brain/moves.js +81 -0
- package/genome/brain/nerves.d.ts +12 -0
- package/genome/brain/nerves.js +267 -0
- package/genome/brain/next.d.ts +6 -0
- package/genome/brain/next.js +25 -0
- package/genome/brain/notes.d.ts +9 -0
- package/genome/brain/notes.js +73 -0
- package/genome/brain/occupants.d.ts +7 -0
- package/genome/brain/occupants.js +79 -0
- package/genome/brain/old.d.ts +4 -0
- package/genome/brain/old.js +44 -0
- package/genome/brain/organ.d.ts +42 -0
- package/genome/brain/organ.js +248 -0
- package/genome/brain/organs.d.ts +28 -0
- package/genome/brain/organs.js +100 -0
- package/genome/brain/owed.d.ts +30 -0
- package/genome/brain/owed.js +58 -0
- package/genome/brain/owners.d.ts +15 -0
- package/genome/brain/owners.js +112 -0
- package/genome/brain/paged.d.ts +10 -0
- package/genome/brain/paged.js +26 -0
- package/genome/brain/pieces.d.ts +15 -0
- package/genome/brain/pieces.js +74 -0
- package/genome/brain/presence.d.ts +14 -0
- package/genome/brain/presence.js +111 -0
- package/genome/brain/reclaim.d.ts +7 -0
- package/genome/brain/reclaim.js +28 -0
- package/genome/brain/recovery.d.ts +34 -0
- package/genome/brain/recovery.js +165 -0
- package/genome/brain/reference-methods.d.ts +4 -0
- package/genome/brain/reference-methods.js +62 -0
- package/genome/brain/references.d.ts +22 -0
- package/genome/brain/references.js +128 -0
- package/genome/brain/reflex.d.ts +19 -0
- package/genome/brain/reflex.js +64 -0
- package/genome/brain/relations.d.ts +61 -0
- package/genome/brain/relations.js +320 -0
- package/genome/brain/road.d.ts +3 -0
- package/genome/brain/road.js +30 -0
- package/genome/brain/roll.d.ts +27 -0
- package/genome/brain/roll.js +144 -0
- package/genome/brain/schemas.d.ts +23 -0
- package/genome/brain/schemas.js +296 -0
- package/genome/brain/silence.d.ts +9 -0
- package/genome/brain/silence.js +30 -0
- package/genome/brain/space.d.ts +17 -0
- package/genome/brain/space.js +70 -0
- package/genome/brain/standing-methods.d.ts +4 -0
- package/genome/brain/standing-methods.js +78 -0
- package/genome/brain/standings.d.ts +57 -0
- package/genome/brain/standings.js +161 -0
- package/genome/brain/state.d.ts +66 -0
- package/genome/brain/state.js +322 -0
- package/genome/brain/still.d.ts +33 -0
- package/genome/brain/still.js +84 -0
- package/genome/brain/switch.d.ts +6 -0
- package/genome/brain/switch.js +24 -0
- package/genome/brain/tear.d.ts +14 -0
- package/genome/brain/tear.js +114 -0
- package/genome/brain/toward.d.ts +3 -0
- package/genome/brain/toward.js +21 -0
- package/genome/brain/upgrade.d.ts +3 -0
- package/genome/brain/upgrade.js +18 -0
- package/genome/brain/uses.d.ts +12 -0
- package/genome/brain/uses.js +62 -0
- package/genome/brain/version.d.ts +33 -0
- package/genome/brain/version.js +405 -0
- package/genome/brain/waiting.d.ts +3 -0
- package/genome/brain/waiting.js +27 -0
- package/genome/brain/wake.d.ts +26 -0
- package/genome/brain/wake.js +112 -0
- package/genome/brain/warded.d.ts +7 -0
- package/genome/brain/warded.js +67 -0
- package/genome/brain/wards.d.ts +14 -0
- package/genome/brain/wards.js +52 -0
- package/genome/brain/whole.d.ts +3 -0
- package/genome/brain/whole.js +136 -0
- package/genome/bridge/again.d.ts +9 -0
- package/genome/bridge/again.js +111 -0
- package/genome/bridge/carried.d.ts +10 -0
- package/genome/bridge/carried.js +165 -0
- package/genome/bridge/frames.d.ts +3 -0
- package/genome/bridge/frames.js +7 -0
- package/genome/bridge/gear.d.ts +19 -0
- package/genome/bridge/gear.js +26 -0
- package/genome/bridge/half.d.ts +12 -0
- package/genome/bridge/half.js +144 -0
- package/genome/bridge/index.d.ts +4 -0
- package/genome/bridge/index.js +5 -0
- package/genome/cache/cache.d.ts +20 -0
- package/genome/cache/cache.js +213 -0
- package/genome/cache/index.d.ts +3 -0
- package/genome/cache/index.js +4 -0
- package/genome/cache/snapshot.d.ts +17 -0
- package/genome/cache/snapshot.js +164 -0
- package/genome/cache/spaces.d.ts +14 -0
- package/genome/cache/spaces.js +91 -0
- package/genome/cage/index.d.ts +2 -0
- package/genome/cage/index.js +3 -0
- package/genome/cage/output.d.ts +3 -0
- package/genome/cage/output.js +75 -0
- package/genome/cage/reader.d.ts +10 -0
- package/genome/cage/reader.js +65 -0
- package/genome/cage/runner.d.ts +5 -0
- package/genome/cage/runner.js +157 -0
- package/genome/carry/apart.d.ts +24 -0
- package/genome/carry/apart.js +170 -0
- package/genome/carry/before.d.ts +22 -0
- package/genome/carry/before.js +86 -0
- package/genome/carry/carry.d.ts +6 -0
- package/genome/carry/carry.js +447 -0
- package/genome/carry/count.d.ts +72 -0
- package/genome/carry/count.js +142 -0
- package/genome/carry/dead.d.ts +17 -0
- package/genome/carry/dead.js +53 -0
- package/genome/carry/disconnect.d.ts +3 -0
- package/genome/carry/disconnect.js +21 -0
- package/genome/carry/durable.d.ts +36 -0
- package/genome/carry/durable.js +148 -0
- package/genome/carry/flight.d.ts +50 -0
- package/genome/carry/flight.js +338 -0
- package/genome/carry/flush.d.ts +12 -0
- package/genome/carry/flush.js +37 -0
- package/genome/carry/gear.d.ts +91 -0
- package/genome/carry/gear.js +164 -0
- package/genome/carry/held.d.ts +66 -0
- package/genome/carry/held.js +174 -0
- package/genome/carry/index.d.ts +15 -0
- package/genome/carry/index.js +38 -0
- package/genome/carry/letters.d.ts +31 -0
- package/genome/carry/letters.js +222 -0
- package/genome/carry/moving.d.ts +21 -0
- package/genome/carry/moving.js +179 -0
- package/genome/carry/organ.d.ts +25 -0
- package/genome/carry/organ.js +97 -0
- package/genome/carry/read.d.ts +4 -0
- package/genome/carry/read.js +24 -0
- package/genome/carry/ready.d.ts +26 -0
- package/genome/carry/ready.js +78 -0
- package/genome/carry/run.d.ts +22 -0
- package/genome/carry/run.js +146 -0
- package/genome/carry/shown.d.ts +4 -0
- package/genome/carry/shown.js +66 -0
- package/genome/carry/sick.d.ts +5 -0
- package/genome/carry/sick.js +37 -0
- package/genome/carry/span.d.ts +1 -0
- package/genome/carry/span.js +3 -0
- package/genome/carry/stamp.d.ts +3 -0
- package/genome/carry/stamp.js +19 -0
- package/genome/carry/standing.d.ts +7 -0
- package/genome/carry/standing.js +37 -0
- package/genome/carry/status.d.ts +12 -0
- package/genome/carry/status.js +36 -0
- package/genome/carry/still.d.ts +29 -0
- package/genome/carry/still.js +76 -0
- package/genome/carry/trace.d.ts +8 -0
- package/genome/carry/trace.js +24 -0
- package/genome/carry/waits.d.ts +20 -0
- package/genome/carry/waits.js +138 -0
- package/genome/carry/wire.d.ts +23 -0
- package/genome/carry/wire.js +47 -0
- package/genome/carry/words.d.ts +1 -0
- package/genome/carry/words.js +3 -0
- package/genome/carry/zero.d.ts +6 -0
- package/genome/carry/zero.js +27 -0
- package/genome/cells/digest.d.ts +8 -0
- package/genome/cells/digest.js +86 -0
- package/genome/cells/index.d.ts +2 -0
- package/genome/cells/index.js +15 -0
- package/genome/cells/rows.d.ts +18 -0
- package/genome/cells/rows.js +63 -0
- package/genome/cells/sum.d.ts +6 -0
- package/genome/cells/sum.js +35 -0
- package/genome/commits/commits.d.ts +20 -0
- package/genome/commits/commits.js +77 -0
- package/genome/commits/index.d.ts +1 -0
- package/genome/commits/index.js +2 -0
- package/genome/configuration/configuration.d.ts +2 -0
- package/genome/configuration/configuration.js +98 -0
- package/genome/configuration/index.d.ts +1 -0
- package/genome/configuration/index.js +2 -0
- package/genome/defaults/index.d.ts +4 -0
- package/genome/defaults/index.js +12 -0
- package/genome/entry/entry.d.ts +4 -0
- package/genome/entry/entry.js +27 -0
- package/genome/entry/halves.d.ts +6 -0
- package/genome/entry/halves.js +52 -0
- package/genome/entry/index.d.ts +2 -0
- package/genome/entry/index.js +3 -0
- package/genome/faculties/defaults/index.d.ts +5 -0
- package/genome/faculties/defaults/index.js +11 -0
- package/genome/faculties/ear/blueprint.d.ts +2 -0
- package/genome/faculties/ear/blueprint.js +254 -0
- package/genome/faculties/ear/ear.d.ts +18 -0
- package/genome/faculties/ear/ear.js +775 -0
- package/genome/faculties/ear/index.d.ts +2 -0
- package/genome/faculties/ear/index.js +3 -0
- package/genome/faculties/ear/source.d.ts +1 -0
- package/genome/faculties/ear/source.js +5 -0
- package/genome/faculties/ear/text.d.ts +1 -0
- package/genome/faculties/ear/text.js +3 -0
- package/genome/faculties/library/blueprint.d.ts +2 -0
- package/genome/faculties/library/blueprint.js +271 -0
- package/genome/faculties/library/index.d.ts +4 -0
- package/genome/faculties/library/index.js +5 -0
- package/genome/faculties/library/library.d.ts +26 -0
- package/genome/faculties/library/library.js +1227 -0
- package/genome/faculties/library/shelf.d.ts +15 -0
- package/genome/faculties/library/shelf.js +20 -0
- package/genome/faculties/library/source.d.ts +1 -0
- package/genome/faculties/library/source.js +5 -0
- package/genome/faculties/library/text.d.ts +1 -0
- package/genome/faculties/library/text.js +3 -0
- package/genome/faculties/mouth/blueprint.d.ts +2 -0
- package/genome/faculties/mouth/blueprint.js +171 -0
- package/genome/faculties/mouth/index.d.ts +2 -0
- package/genome/faculties/mouth/index.js +3 -0
- package/genome/faculties/mouth/mouth.d.ts +16 -0
- package/genome/faculties/mouth/mouth.js +543 -0
- package/genome/faculties/mouth/source.d.ts +1 -0
- package/genome/faculties/mouth/source.js +5 -0
- package/genome/faculties/mouth/text.d.ts +1 -0
- package/genome/faculties/mouth/text.js +3 -0
- package/genome/faculties/scheduler/blueprint.d.ts +2 -0
- package/genome/faculties/scheduler/blueprint.js +92 -0
- package/genome/faculties/scheduler/index.d.ts +2 -0
- package/genome/faculties/scheduler/index.js +3 -0
- package/genome/faculties/scheduler/scheduler.d.ts +13 -0
- package/genome/faculties/scheduler/scheduler.js +253 -0
- package/genome/faculties/scheduler/source.d.ts +1 -0
- package/genome/faculties/scheduler/source.js +5 -0
- package/genome/faculties/scheduler/text.d.ts +1 -0
- package/genome/faculties/scheduler/text.js +3 -0
- package/genome/header/file.d.ts +33 -0
- package/genome/header/file.js +121 -0
- package/genome/header/header.d.ts +11 -0
- package/genome/header/header.js +86 -0
- package/genome/header/index.d.ts +2 -0
- package/genome/header/index.js +19 -0
- package/genome/ids/ids.d.ts +11 -0
- package/genome/ids/ids.js +23 -0
- package/genome/ids/index.d.ts +1 -0
- package/genome/ids/index.js +2 -0
- package/genome/index.d.ts +11 -0
- package/genome/index.js +32 -0
- package/genome/key/arrivals.d.ts +7 -0
- package/genome/key/arrivals.js +148 -0
- package/genome/key/asks.d.ts +7 -0
- package/genome/key/asks.js +92 -0
- package/genome/key/blueprint.d.ts +3 -0
- package/genome/key/blueprint.js +149 -0
- package/genome/key/door.d.ts +12 -0
- package/genome/key/door.js +94 -0
- package/genome/key/forms.d.ts +11 -0
- package/genome/key/forms.js +45 -0
- package/genome/key/handed.d.ts +7 -0
- package/genome/key/handed.js +81 -0
- package/genome/key/index.d.ts +9 -0
- package/genome/key/index.js +18 -0
- package/genome/key/key.d.ts +9 -0
- package/genome/key/key.js +34 -0
- package/genome/key/kit.d.ts +27 -0
- package/genome/key/kit.js +85 -0
- package/genome/key/records.d.ts +12 -0
- package/genome/key/records.js +70 -0
- package/genome/key/row.d.ts +4 -0
- package/genome/key/row.js +22 -0
- package/genome/key/shapes.d.ts +54 -0
- package/genome/key/shapes.js +160 -0
- package/genome/key/standing.d.ts +19 -0
- package/genome/key/standing.js +108 -0
- package/genome/log/frame.d.ts +11 -0
- package/genome/log/frame.js +40 -0
- package/genome/log/index.d.ts +3 -0
- package/genome/log/index.js +12 -0
- package/genome/log/open.d.ts +31 -0
- package/genome/log/open.js +243 -0
- package/genome/log/pairs.d.ts +8 -0
- package/genome/log/pairs.js +187 -0
- package/genome/log/record.d.ts +8 -0
- package/genome/log/record.js +72 -0
- package/genome/log/store.d.ts +31 -0
- package/genome/log/store.js +291 -0
- package/genome/map/declare.d.ts +4 -0
- package/genome/map/declare.js +52 -0
- package/genome/map/handler.d.ts +4 -0
- package/genome/map/handler.js +37 -0
- package/genome/map/index.d.ts +8 -0
- package/genome/map/index.js +9 -0
- package/genome/map/kin.d.ts +12 -0
- package/genome/map/kin.js +63 -0
- package/genome/map/map.d.ts +40 -0
- package/genome/map/map.js +217 -0
- package/genome/map/nodes.d.ts +9 -0
- package/genome/map/nodes.js +35 -0
- package/genome/map/off.d.ts +3 -0
- package/genome/map/off.js +10 -0
- package/genome/map/order.d.ts +9 -0
- package/genome/map/order.js +105 -0
- package/genome/map/read.d.ts +4 -0
- package/genome/map/read.js +32 -0
- package/genome/map/remove.d.ts +3 -0
- package/genome/map/remove.js +30 -0
- package/genome/map/rows.d.ts +48 -0
- package/genome/map/rows.js +146 -0
- package/genome/map/skin.d.ts +10 -0
- package/genome/map/skin.js +35 -0
- package/genome/map/stands.d.ts +5 -0
- package/genome/map/stands.js +17 -0
- package/genome/map/unwired.d.ts +7 -0
- package/genome/map/unwired.js +36 -0
- package/genome/map/wires.d.ts +9 -0
- package/genome/map/wires.js +103 -0
- package/genome/network/blueprint.d.ts +4 -0
- package/genome/network/blueprint.js +111 -0
- package/genome/network/index.d.ts +3 -0
- package/genome/network/index.js +4 -0
- package/genome/network/network.d.ts +18 -0
- package/genome/network/network.js +248 -0
- package/genome/network/sent.d.ts +4 -0
- package/genome/network/sent.js +225 -0
- package/genome/network/served.d.ts +4 -0
- package/genome/network/served.js +162 -0
- package/genome/network/still.d.ts +26 -0
- package/genome/network/still.js +46 -0
- package/genome/network/web.d.ts +59 -0
- package/genome/network/web.js +74 -0
- package/genome/organism/body.d.ts +53 -0
- package/genome/organism/body.js +256 -0
- package/genome/organism/halves.d.ts +22 -0
- package/genome/organism/halves.js +181 -0
- package/genome/organism/index.d.ts +5 -0
- package/genome/organism/index.js +6 -0
- package/genome/organism/made.d.ts +73 -0
- package/genome/organism/made.js +416 -0
- package/genome/organism/organism.d.ts +9 -0
- package/genome/organism/organism.js +203 -0
- package/genome/organism/reclaim.d.ts +10 -0
- package/genome/organism/reclaim.js +41 -0
- package/genome/organism/still.d.ts +12 -0
- package/genome/organism/still.js +38 -0
- package/genome/organism/thaw.d.ts +10 -0
- package/genome/organism/thaw.js +23 -0
- package/genome/organism/told.d.ts +10 -0
- package/genome/organism/told.js +140 -0
- package/genome/pages/codes.d.ts +13 -0
- package/genome/pages/codes.js +16 -0
- package/genome/pages/file.d.ts +23 -0
- package/genome/pages/file.js +174 -0
- package/genome/pages/index.d.ts +2 -0
- package/genome/pages/index.js +3 -0
- package/genome/pages/vfs.d.ts +13 -0
- package/genome/pages/vfs.js +186 -0
- package/genome/presence/index.d.ts +1 -0
- package/genome/presence/index.js +2 -0
- package/genome/presence/organs.d.ts +8 -0
- package/genome/presence/organs.js +13 -0
- package/genome/pure/entry.d.ts +16 -0
- package/genome/pure/entry.js +76 -0
- package/genome/pure/frozen.d.ts +9 -0
- package/genome/pure/frozen.js +273 -0
- package/genome/pure/halves.d.ts +8 -0
- package/genome/pure/halves.js +63 -0
- package/genome/pure/index.d.ts +7 -0
- package/genome/pure/index.js +8 -0
- package/genome/queues/index.d.ts +1 -0
- package/genome/queues/index.js +2 -0
- package/genome/queues/queues.d.ts +2 -0
- package/genome/queues/queues.js +210 -0
- package/genome/self/blueprint.d.ts +5 -0
- package/genome/self/blueprint.js +36 -0
- package/genome/self/index.d.ts +2 -0
- package/genome/self/index.js +3 -0
- package/genome/self/self.d.ts +9 -0
- package/genome/self/self.js +49 -0
- package/genome/sqlite/database.d.ts +24 -0
- package/genome/sqlite/database.js +243 -0
- package/genome/sqlite/decoder.d.ts +10 -0
- package/genome/sqlite/decoder.js +92 -0
- package/genome/sqlite/imports.d.ts +9 -0
- package/genome/sqlite/imports.js +93 -0
- package/genome/sqlite/index.d.ts +6 -0
- package/genome/sqlite/index.js +7 -0
- package/genome/sqlite/memory.d.ts +14 -0
- package/genome/sqlite/memory.js +79 -0
- package/genome/sqlite/sqlite.d.ts +30 -0
- package/genome/sqlite/sqlite.js +77 -0
- package/genome/sqlite/table.d.ts +8 -0
- package/genome/sqlite/table.js +66 -0
- package/genome/sqlite/vendor/LICENSE +21 -0
- package/genome/sqlite/vendor/sqlite3.wasm +0 -0
- package/genome/store/held.d.ts +2 -0
- package/genome/store/held.js +41 -0
- package/genome/store/index.d.ts +6 -0
- package/genome/store/index.js +16 -0
- package/genome/store/landing.d.ts +6 -0
- package/genome/store/landing.js +50 -0
- package/genome/store/open.d.ts +38 -0
- package/genome/store/open.js +308 -0
- package/genome/store/outside.d.ts +30 -0
- package/genome/store/outside.js +165 -0
- package/genome/store/reading.d.ts +2 -0
- package/genome/store/reading.js +121 -0
- package/genome/store/rescue.d.ts +15 -0
- package/genome/store/rescue.js +168 -0
- package/genome/store/salvage.d.ts +18 -0
- package/genome/store/salvage.js +158 -0
- package/genome/store/schema.d.ts +17 -0
- package/genome/store/schema.js +77 -0
- package/genome/store/store.d.ts +54 -0
- package/genome/store/store.js +534 -0
- package/genome/store/unwritten.d.ts +2 -0
- package/genome/store/unwritten.js +57 -0
- package/genome/store/witness.d.ts +18 -0
- package/genome/store/witness.js +87 -0
- package/genome/timer/index.d.ts +1 -0
- package/genome/timer/index.js +2 -0
- package/genome/timer/timer.d.ts +10 -0
- package/genome/timer/timer.js +167 -0
- package/kit/brain/organs.d.ts +6 -0
- package/kit/brain/organs.js +33 -0
- package/kit/brain/rig.d.ts +58 -0
- package/kit/brain/rig.js +259 -0
- package/kit/brain/shelf.d.ts +3 -0
- package/kit/brain/shelf.js +42 -0
- package/kit/core/answers.d.ts +7 -0
- package/kit/core/answers.js +23 -0
- package/kit/core/chance.d.ts +4 -0
- package/kit/core/chance.js +18 -0
- package/kit/core/clock.d.ts +8 -0
- package/kit/core/clock.js +39 -0
- package/kit/core/configuration.d.ts +2 -0
- package/kit/core/configuration.js +17 -0
- package/kit/core/data.d.ts +3 -0
- package/kit/core/data.js +41 -0
- package/kit/core/foundation.d.ts +30 -0
- package/kit/core/foundation.js +139 -0
- package/kit/core/held.d.ts +11 -0
- package/kit/core/held.js +82 -0
- package/kit/core/index.d.ts +10 -0
- package/kit/core/index.js +26 -0
- package/kit/core/puppets.d.ts +8 -0
- package/kit/core/puppets.js +17 -0
- package/kit/core/stamp.d.ts +2 -0
- package/kit/core/stamp.js +10 -0
- package/kit/core/wasm.d.ts +3 -0
- package/kit/core/wasm.js +11 -0
- package/kit/faculty/base/rig.d.ts +22 -0
- package/kit/faculty/base/rig.js +97 -0
- package/kit/index.d.ts +11 -0
- package/kit/index.js +22 -0
- package/kit/organism/bakery.d.ts +31 -0
- package/kit/organism/bakery.js +223 -0
- package/kit/organism/carriers.d.ts +25 -0
- package/kit/organism/carriers.js +93 -0
- package/kit/organism/forms.d.ts +10 -0
- package/kit/organism/forms.js +31 -0
- package/kit/organism/heard.d.ts +4 -0
- package/kit/organism/heard.js +42 -0
- package/kit/organism/laid.d.ts +8 -0
- package/kit/organism/laid.js +32 -0
- package/kit/organism/link.d.ts +14 -0
- package/kit/organism/link.js +130 -0
- package/kit/organism/notes.d.ts +2 -0
- package/kit/organism/notes.js +45 -0
- package/kit/organism/peer.d.ts +7 -0
- package/kit/organism/peer.js +34 -0
- package/kit/organism/rig.d.ts +59 -0
- package/kit/organism/rig.js +252 -0
- package/kit/organism/vitals.d.ts +9 -0
- package/kit/organism/vitals.js +44 -0
- package/kit/pages/index.d.ts +1 -0
- package/kit/pages/index.js +2 -0
- package/kit/pages/memory.d.ts +23 -0
- package/kit/pages/memory.js +264 -0
- package/kit/presence/console-half.d.ts +6 -0
- package/kit/presence/console-half.js +27 -0
- package/kit/presence/home.d.ts +33 -0
- package/kit/presence/home.js +192 -0
- package/kit/presence/pipe.d.ts +15 -0
- package/kit/presence/pipe.js +66 -0
- package/kit/presence/screen-half.d.ts +16 -0
- package/kit/presence/screen-half.js +180 -0
- package/kit/presence/skins.d.ts +17 -0
- package/kit/presence/skins.js +99 -0
- package/kit/puppet/boundary.d.ts +11 -0
- package/kit/puppet/boundary.js +103 -0
- package/kit/puppet/class.d.ts +3 -0
- package/kit/puppet/class.js +56 -0
- package/kit/puppet/defaults.d.ts +2 -0
- package/kit/puppet/defaults.js +14 -0
- package/kit/puppet/engine.d.ts +3 -0
- package/kit/puppet/engine.js +50 -0
- package/kit/puppet/index.d.ts +3 -0
- package/kit/puppet/index.js +4 -0
- package/kit/puppet/puppet.d.ts +41 -0
- package/kit/puppet/puppet.js +229 -0
- package/package.json +114 -4
- package/quo/box/box.d.ts +34 -0
- package/quo/box/box.js +137 -0
- package/quo/box/index.d.ts +4 -0
- package/quo/box/index.js +5 -0
- package/quo/box/reply.d.ts +12 -0
- package/quo/box/reply.js +64 -0
- package/quo/box/room.d.ts +3 -0
- package/quo/box/room.js +27 -0
- package/quo/box/sizes.d.ts +7 -0
- package/quo/box/sizes.js +10 -0
- package/quo/crypto/ed25519.d.ts +1 -0
- package/quo/crypto/ed25519.js +44 -0
- package/quo/crypto/index.d.ts +1 -0
- package/quo/crypto/index.js +2 -0
- package/quo/crypto/noble.d.ts +2 -0
- package/quo/crypto/noble.js +46 -0
- package/quo/door/door.d.ts +36 -0
- package/quo/door/door.js +207 -0
- package/quo/door/index.d.ts +2 -0
- package/quo/door/index.js +3 -0
- package/quo/door/occupant.d.ts +17 -0
- package/quo/door/occupant.js +55 -0
- package/quo/door/payload.d.ts +9 -0
- package/quo/door/payload.js +67 -0
- package/quo/frame/frame.d.ts +23 -0
- package/quo/frame/frame.js +160 -0
- package/quo/frame/index.d.ts +1 -0
- package/quo/frame/index.js +2 -0
- package/quo/index.d.ts +7 -0
- package/quo/index.js +55 -0
- package/quo/published.d.ts +1 -0
- package/quo/published.js +51 -0
- package/quo/standing/index.d.ts +3 -0
- package/quo/standing/index.js +4 -0
- package/quo/standing/once.d.ts +14 -0
- package/quo/standing/once.js +66 -0
- package/quo/standing/reading.d.ts +28 -0
- package/quo/standing/reading.js +99 -0
- package/quo/standing/standing.d.ts +44 -0
- package/quo/standing/standing.js +235 -0
- package/quo/value/address.d.ts +2 -0
- package/quo/value/address.js +89 -0
- package/quo/value/fields.d.ts +2 -0
- package/quo/value/fields.js +14 -0
- package/quo/value/index.d.ts +3 -0
- package/quo/value/index.js +4 -0
- package/quo/value/json.d.ts +16 -0
- package/quo/value/json.js +194 -0
- package/quo/ward/index.d.ts +6 -0
- package/quo/ward/index.js +19 -0
- package/quo/ward/invitation.d.ts +16 -0
- package/quo/ward/invitation.js +100 -0
- package/quo/ward/link.d.ts +38 -0
- package/quo/ward/link.js +94 -0
- package/quo/ward/lock.d.ts +1 -0
- package/quo/ward/lock.js +17 -0
- package/quo/ward/qr.d.ts +5 -0
- package/quo/ward/qr.js +279 -0
- package/quo/ward/vouch.d.ts +5 -0
- package/quo/ward/vouch.js +33 -0
- package/quo/ward/ward.d.ts +19 -0
- package/quo/ward/ward.js +63 -0
- package/screen/access.d.ts +32 -0
- package/screen/access.js +40 -0
- package/screen/compose.d.ts +14 -0
- package/screen/compose.js +137 -0
- package/screen/diff.d.ts +19 -0
- package/screen/diff.js +152 -0
- package/screen/digest.d.ts +1 -0
- package/screen/digest.js +60 -0
- package/screen/drawn.d.ts +35 -0
- package/screen/drawn.js +89 -0
- package/screen/fill.d.ts +12 -0
- package/screen/fill.js +91 -0
- package/screen/hydrate.d.ts +14 -0
- package/screen/hydrate.js +67 -0
- package/screen/index.d.ts +15 -0
- package/screen/index.js +26 -0
- package/screen/laid.d.ts +29 -0
- package/screen/laid.js +157 -0
- package/screen/match.d.ts +13 -0
- package/screen/match.js +63 -0
- package/screen/motion.d.ts +18 -0
- package/screen/motion.js +65 -0
- package/screen/press.d.ts +12 -0
- package/screen/press.js +63 -0
- package/screen/region.d.ts +6 -0
- package/screen/region.js +23 -0
- package/screen/route.d.ts +13 -0
- package/screen/route.js +74 -0
- package/screen/screen.d.ts +15 -0
- package/screen/screen.js +55 -0
- package/screen/sheet.d.ts +20 -0
- package/screen/sheet.js +145 -0
- package/screen/told.d.ts +14 -0
- package/screen/told.js +38 -0
- package/seams/bridge/bridge.d.ts +26 -0
- package/seams/bridge/bridge.js +31 -0
- package/seams/bridge/in-process.d.ts +13 -0
- package/seams/bridge/in-process.js +112 -0
- package/seams/bridge/index.d.ts +2 -0
- package/seams/bridge/index.js +3 -0
- package/seams/carriers/carriers.d.ts +112 -0
- package/seams/carriers/carriers.js +315 -0
- package/seams/carriers/index.d.ts +2 -0
- package/seams/carriers/index.js +29 -0
- package/seams/carriers/proof.d.ts +13 -0
- package/seams/carriers/proof.js +45 -0
- package/seams/chance/chance.d.ts +6 -0
- package/seams/chance/chance.js +8 -0
- package/seams/chance/index.d.ts +1 -0
- package/seams/chance/index.js +2 -0
- package/seams/codec/codec.d.ts +12 -0
- package/seams/codec/codec.js +9 -0
- package/seams/codec/index.d.ts +1 -0
- package/seams/codec/index.js +2 -0
- package/seams/contract/bytes.d.ts +1 -0
- package/seams/contract/bytes.js +4 -0
- package/seams/contract/contract.d.ts +10 -0
- package/seams/contract/contract.js +26 -0
- package/seams/contract/index.d.ts +2 -0
- package/seams/contract/index.js +3 -0
- package/seams/crypto/crypto.d.ts +29 -0
- package/seams/crypto/crypto.js +30 -0
- package/seams/crypto/index.d.ts +1 -0
- package/seams/crypto/index.js +2 -0
- package/seams/engine/engine.d.ts +44 -0
- package/seams/engine/engine.js +55 -0
- package/seams/engine/index.d.ts +1 -0
- package/seams/engine/index.js +2 -0
- package/seams/entry/configuration.d.ts +74 -0
- package/seams/entry/configuration.js +81 -0
- package/seams/entry/entry.d.ts +124 -0
- package/seams/entry/entry.js +144 -0
- package/seams/entry/index.d.ts +2 -0
- package/seams/entry/index.js +24 -0
- package/seams/index.d.ts +16 -0
- package/seams/index.js +86 -0
- package/seams/page-layer/index.d.ts +1 -0
- package/seams/page-layer/index.js +2 -0
- package/seams/page-layer/page-layer.d.ts +32 -0
- package/seams/page-layer/page-layer.js +29 -0
- package/seams/published.d.ts +1 -0
- package/seams/published.js +85 -0
- package/seams/queues/index.d.ts +2 -0
- package/seams/queues/index.js +3 -0
- package/seams/queues/queues.d.ts +36 -0
- package/seams/queues/queues.js +50 -0
- package/seams/run/index.d.ts +1 -0
- package/seams/run/index.js +2 -0
- package/seams/run/run.d.ts +7 -0
- package/seams/run/run.js +8 -0
- package/seams/time/index.d.ts +1 -0
- package/seams/time/index.js +2 -0
- package/seams/time/time.d.ts +10 -0
- package/seams/time/time.js +14 -0
- package/seams/unlocker/index.d.ts +1 -0
- package/seams/unlocker/index.js +2 -0
- package/seams/unlocker/unlocker.d.ts +17 -0
- package/seams/unlocker/unlocker.js +15 -0
- package/seams/vitals/index.d.ts +1 -0
- package/seams/vitals/index.js +2 -0
- package/seams/vitals/vitals.d.ts +24 -0
- package/seams/vitals/vitals.js +19 -0
- package/seams/webassembly.d.ts +36 -0
- package/standard/answer/answer.d.ts +16 -0
- package/standard/answer/answer.js +38 -0
- package/standard/answer/index.d.ts +1 -0
- package/standard/answer/index.js +2 -0
- package/standard/blueprint/blueprint.d.ts +21 -0
- package/standard/blueprint/blueprint.js +123 -0
- package/standard/blueprint/index.d.ts +2 -0
- package/standard/blueprint/index.js +3 -0
- package/standard/blueprint/method.d.ts +21 -0
- package/standard/blueprint/method.js +208 -0
- package/standard/data/base64.d.ts +1 -0
- package/standard/data/base64.js +39 -0
- package/standard/data/data.d.ts +10 -0
- package/standard/data/data.js +147 -0
- package/standard/data/fields.d.ts +16 -0
- package/standard/data/fields.js +68 -0
- package/standard/data/guards.d.ts +9 -0
- package/standard/data/guards.js +12 -0
- package/standard/data/hex.d.ts +12 -0
- package/standard/data/hex.js +74 -0
- package/standard/data/index.d.ts +7 -0
- package/standard/data/index.js +8 -0
- package/standard/data/text.d.ts +19 -0
- package/standard/data/text.js +222 -0
- package/standard/data/utf8.d.ts +2 -0
- package/standard/data/utf8.js +85 -0
- package/standard/half/frames.d.ts +10 -0
- package/standard/half/frames.js +115 -0
- package/standard/half/half.d.ts +23 -0
- package/standard/half/half.js +89 -0
- package/standard/half/index.d.ts +2 -0
- package/standard/half/index.js +14 -0
- package/standard/index.d.ts +9 -0
- package/standard/index.js +93 -0
- package/standard/names/blueprint.d.ts +2 -0
- package/standard/names/blueprint.js +18 -0
- package/standard/names/code.d.ts +5 -0
- package/standard/names/code.js +21 -0
- package/standard/names/id.d.ts +3 -0
- package/standard/names/id.js +11 -0
- package/standard/names/index.d.ts +5 -0
- package/standard/names/index.js +6 -0
- package/standard/names/method.d.ts +2 -0
- package/standard/names/method.js +19 -0
- package/standard/names/version.d.ts +1 -0
- package/standard/names/version.js +5 -0
- package/standard/pattern/compile.d.ts +25 -0
- package/standard/pattern/compile.js +153 -0
- package/standard/pattern/index.d.ts +3 -0
- package/standard/pattern/index.js +4 -0
- package/standard/pattern/match.d.ts +2 -0
- package/standard/pattern/match.js +75 -0
- package/standard/pattern/parse.d.ts +39 -0
- package/standard/pattern/parse.js +259 -0
- package/standard/presence.d.ts +5 -0
- package/standard/presence.js +69 -0
- package/standard/published.d.ts +1 -0
- package/standard/published.js +57 -0
- package/standard/schema/admits.d.ts +10 -0
- package/standard/schema/admits.js +189 -0
- package/standard/schema/index.d.ts +3 -0
- package/standard/schema/index.js +4 -0
- package/standard/schema/known.d.ts +2 -0
- package/standard/schema/known.js +23 -0
- package/standard/schema/subset.d.ts +11 -0
- package/standard/schema/subset.js +140 -0
- package/standard/tree/allow.d.ts +22 -0
- package/standard/tree/allow.js +229 -0
- package/standard/tree/check.d.ts +3 -0
- package/standard/tree/check.js +227 -0
- package/standard/tree/forms.d.ts +9 -0
- package/standard/tree/forms.js +121 -0
- package/standard/tree/html.d.ts +11 -0
- package/standard/tree/html.js +59 -0
- package/standard/tree/index.d.ts +6 -0
- package/standard/tree/index.js +46 -0
- package/standard/tree/model.d.ts +7 -0
- package/standard/tree/model.js +58 -0
- package/standard/tree/tree.d.ts +44 -0
- package/standard/tree/tree.js +58 -0
- package/standard/version.d.ts +1 -0
- package/standard/version.js +2 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
export {
|
|
3
|
+
HEADER,
|
|
4
|
+
HEADER_NEXT,
|
|
5
|
+
headerOpened,
|
|
6
|
+
readHeader,
|
|
7
|
+
layRekey,
|
|
8
|
+
layRekeyCipher,
|
|
9
|
+
REKEY,
|
|
10
|
+
REKEY_CIPHER,
|
|
11
|
+
rekeyCipher,
|
|
12
|
+
rekeyStage,
|
|
13
|
+
rewrapHeader,
|
|
14
|
+
|
|
15
|
+
rewriteHeader,
|
|
16
|
+
writeHeader,
|
|
17
|
+
|
|
18
|
+
} from './file.js';
|
|
19
|
+
export { HEADER_SIZE, openHeader, sealHeader } from './header.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const BRAIN = "brain";
|
|
2
|
+
export declare const NETWORK = "network";
|
|
3
|
+
export declare const KEY = "key";
|
|
4
|
+
export declare const STORE = "store";
|
|
5
|
+
export declare const CAGE = "cage";
|
|
6
|
+
export declare const EAR = "ear";
|
|
7
|
+
export declare const MOUTH = "mouth";
|
|
8
|
+
export declare const SCHEDULER = "scheduler";
|
|
9
|
+
export declare const LIBRARY = "library";
|
|
10
|
+
export declare const FRONT = "front";
|
|
11
|
+
export declare const RELAY = "relay";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
|
|
3
|
+
export const BRAIN = 'brain';
|
|
4
|
+
|
|
5
|
+
export const NETWORK = 'network';
|
|
6
|
+
|
|
7
|
+
export const KEY = 'key';
|
|
8
|
+
|
|
9
|
+
export const STORE = 'store';
|
|
10
|
+
|
|
11
|
+
export const CAGE = 'cage';
|
|
12
|
+
|
|
13
|
+
export const EAR = 'ear';
|
|
14
|
+
|
|
15
|
+
export const MOUTH = 'mouth';
|
|
16
|
+
|
|
17
|
+
export const SCHEDULER = 'scheduler';
|
|
18
|
+
|
|
19
|
+
export const LIBRARY = 'library';
|
|
20
|
+
|
|
21
|
+
export const FRONT = 'front';
|
|
22
|
+
|
|
23
|
+
export const RELAY = 'relay';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BRAIN, CAGE, EAR, FRONT, KEY, LIBRARY, MOUTH, NETWORK, RELAY, SCHEDULER, STORE } from './ids.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { frameSizeOf } from './bridge/index.js';
|
|
2
|
+
export { EAR_BLUEPRINT, EAR_SOURCE, Library, LIBRARY_BLUEPRINT, LIBRARY_SOURCE, MOUTH_BLUEPRINT, MOUTH_SOURCE, SCHEDULER_BLUEPRINT, SCHEDULER_SOURCE, type HalfCode, type Shelf, type Version, } from './defaults/index.js';
|
|
3
|
+
export { genomeEntry } from './entry/index.js';
|
|
4
|
+
export { NETWORK_BLUEPRINT } from './network/index.js';
|
|
5
|
+
export { CONSOLE, GENOME_ROAD, SCREEN, type PresenceOrgan } from './presence/index.js';
|
|
6
|
+
export { SQLITE_SIGNATURES, SQLITE_WASM_SHA256, compiledWrappers, wrapperBytes, type CompiledSqlite, type Wrappers, } from './sqlite/index.js';
|
|
7
|
+
export { pureEntry, pureThaw } from './pure/index.js';
|
|
8
|
+
export { genomeQueues } from './queues/index.js';
|
|
9
|
+
export { ARRIVAL, namedKeyOf, SALVAGED } from './backup/index.js';
|
|
10
|
+
export { CIPHERS, OUT, salvageStore, type SalvageGear, type Salvaged } from './store/index.js';
|
|
11
|
+
export { BELOW_FLOOR, FLOOR, MOVED } from './brain/index.js';
|
package/genome/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
export { frameSizeOf } from './bridge/index.js';
|
|
3
|
+
export {
|
|
4
|
+
EAR_BLUEPRINT,
|
|
5
|
+
EAR_SOURCE,
|
|
6
|
+
Library,
|
|
7
|
+
LIBRARY_BLUEPRINT,
|
|
8
|
+
LIBRARY_SOURCE,
|
|
9
|
+
MOUTH_BLUEPRINT,
|
|
10
|
+
MOUTH_SOURCE,
|
|
11
|
+
SCHEDULER_BLUEPRINT,
|
|
12
|
+
SCHEDULER_SOURCE,
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
} from './defaults/index.js';
|
|
17
|
+
export { genomeEntry } from './entry/index.js';
|
|
18
|
+
export { NETWORK_BLUEPRINT } from './network/index.js';
|
|
19
|
+
export { CONSOLE, GENOME_ROAD, SCREEN, } from './presence/index.js';
|
|
20
|
+
export {
|
|
21
|
+
SQLITE_SIGNATURES,
|
|
22
|
+
SQLITE_WASM_SHA256,
|
|
23
|
+
compiledWrappers,
|
|
24
|
+
wrapperBytes,
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
} from './sqlite/index.js';
|
|
28
|
+
export { pureEntry, pureThaw } from './pure/index.js';
|
|
29
|
+
export { genomeQueues } from './queues/index.js';
|
|
30
|
+
export { ARRIVAL, namedKeyOf, SALVAGED } from './backup/index.js';
|
|
31
|
+
export { CIPHERS, OUT, salvageStore, } from './store/index.js';
|
|
32
|
+
export { BELOW_FLOOR, FLOOR, MOVED } from './brain/index.js';
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { arrive, choose, invite, keysOf, makeWard, openHead, wardSeed, } from '#quo';
|
|
3
|
+
import { lineProof } from '#seams';
|
|
4
|
+
|
|
5
|
+
import { addressListOf, bytesOf, choiceOf, quoData, textOf } from '#cage';
|
|
6
|
+
import { openAdmitted, openOccupant, openOpened, sealAdmitted, sealOpened, sealWard } from './door.js';
|
|
7
|
+
|
|
8
|
+
import { opened as openedRecord, sealRecord } from './records.js';
|
|
9
|
+
import { sealedAdmittedOf, sealedOccupantOf, sealedOpenedOf, sealedWardOf } from './shapes.js';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const lookupOver = (kit , data ) => {
|
|
14
|
+
const lookup = kit.read.fieldsOf(data, 'the lookup');
|
|
15
|
+
const occupants = kit.read.recordAt(lookup, 'occupants');
|
|
16
|
+
return {
|
|
17
|
+
occupant: (heir) => {
|
|
18
|
+
const one = Object.hasOwn(occupants, heir) ? occupants[heir] : undefined;
|
|
19
|
+
return one === undefined || one === null ? undefined : openOccupant(kit.sealing(), sealedOccupantOf(one));
|
|
20
|
+
},
|
|
21
|
+
zero: kit.read.flagAt(lookup, 'zero'),
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const openHeadOf =
|
|
26
|
+
(kit ) =>
|
|
27
|
+
(args) => {
|
|
28
|
+
const ward = sealedWardOf(args['ward']);
|
|
29
|
+
const box = bytesOf('the box', args['box']);
|
|
30
|
+
const keys = kit.keysOf(ward);
|
|
31
|
+
const head = openHead(kit.formOf(ward).crypto, keys.scalar, box);
|
|
32
|
+
return head === null ? null : quoData(sealOpened(kit.sealing(), ward.name, head));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const arriveOf =
|
|
36
|
+
(kit ) =>
|
|
37
|
+
(args) => {
|
|
38
|
+
const ward = sealedWardOf(args['ward']);
|
|
39
|
+
const box = bytesOf('the box', args['box']);
|
|
40
|
+
const keys = kit.keysOf(ward);
|
|
41
|
+
const sealing = kit.sealing();
|
|
42
|
+
const given = args['opened'];
|
|
43
|
+
const opened =
|
|
44
|
+
given === undefined ? [] : [given === null ? null : openOpened(sealing, ward.name, box, sealedOpenedOf(given))];
|
|
45
|
+
const lookup = lookupOver(kit, args['lookup']);
|
|
46
|
+
const arrival = arrive(kit.formOf(ward).crypto, kit.draw, keys, box, lookup, ...opened);
|
|
47
|
+
if (arrival.refused) return quoData(arrival);
|
|
48
|
+
return quoData({
|
|
49
|
+
refused: false,
|
|
50
|
+
admitted: sealAdmitted(sealing, ward.name, arrival.admitted),
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const chooseOf =
|
|
55
|
+
(kit ) =>
|
|
56
|
+
(args) => {
|
|
57
|
+
const ward = sealedWardOf(args['ward']);
|
|
58
|
+
const keys = kit.keysOf(ward);
|
|
59
|
+
const admitted = openAdmitted(kit.sealing(), ward.name, sealedAdmittedOf(args['admitted']));
|
|
60
|
+
return quoData(choose(kit.formOf(ward).crypto, keys, admitted, choiceOf(args['choice'])));
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const SEED = 32;
|
|
64
|
+
|
|
65
|
+
const drawOf =
|
|
66
|
+
(kit ) =>
|
|
67
|
+
() => {
|
|
68
|
+
const form = kit.forms.fresh;
|
|
69
|
+
const ward = makeWard(form.crypto, wardSeed(form.crypto, kit.draw(SEED)), kit.draw);
|
|
70
|
+
const keys = keysOf(form.crypto, ward);
|
|
71
|
+
const sealed = sealWard(kit.sealing(), keys.name, ward, form.name);
|
|
72
|
+
kit.remember(sealed, keys, form);
|
|
73
|
+
return quoData({ ward: sealed });
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const inviteOf =
|
|
77
|
+
(kit ) =>
|
|
78
|
+
(args) => {
|
|
79
|
+
const ward = sealedWardOf(args['ward']);
|
|
80
|
+
const keys = kit.keysOf(ward);
|
|
81
|
+
const at = args['at'];
|
|
82
|
+
const addresses = at === undefined ? at : addressListOf(at);
|
|
83
|
+
const { given, invitation } = invite(kit.formOf(ward).crypto, keys, kit.draw, addresses, args['beside'] ?? {});
|
|
84
|
+
return quoData({ invitation: given, heir: invitation.heir });
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const REFERENCE_BYTES = 16;
|
|
88
|
+
const BASE32 = 'abcdefghijklmnopqrstuvwxyz234567';
|
|
89
|
+
|
|
90
|
+
const referenceOf = (bytes ) => {
|
|
91
|
+
let bits = '';
|
|
92
|
+
for (const byte of bytes) bits += byte.toString(2).padStart(8, '0');
|
|
93
|
+
const padded = bits.padEnd(130, '0');
|
|
94
|
+
let text = '';
|
|
95
|
+
for (let at = 0; at < 130; at += 5) text += BASE32[Number.parseInt(padded.slice(at, at + 5), 2)] ?? '';
|
|
96
|
+
return text;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const referOf =
|
|
100
|
+
(kit ) =>
|
|
101
|
+
(args) => {
|
|
102
|
+
const invitation = textOf('the invitation', args['invitation']);
|
|
103
|
+
if (invitation === '') throw new TypeError('the invitation is empty');
|
|
104
|
+
const drawn = kit.draw(REFERENCE_BYTES);
|
|
105
|
+
if (drawn.length !== REFERENCE_BYTES) throw new Error('key: the draw is not the reference it asked.');
|
|
106
|
+
const reference = referenceOf(drawn);
|
|
107
|
+
return quoData({ reference, sealed: sealRecord(kit.sealing(), 'reference', reference, { invitation }) });
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
const redeemOf =
|
|
111
|
+
(kit ) =>
|
|
112
|
+
(args) => {
|
|
113
|
+
const ward = sealedWardOf(args['ward']);
|
|
114
|
+
const keys = kit.keysOf(ward);
|
|
115
|
+
const admitted = openAdmitted(kit.sealing(), ward.name, sealedAdmittedOf(args['admitted']));
|
|
116
|
+
const reference = textOf('the reference', args['reference']);
|
|
117
|
+
const kept = openedRecord(kit.sealing(), 'reference', reference, bytesOf('the sealed invitation', args['sealed']));
|
|
118
|
+
const invitation = textOf('the invitation', kept['invitation']);
|
|
119
|
+
return quoData(choose(kit.formOf(ward).crypto, keys, admitted, { object: invitation, seen: null }));
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
const proveOf =
|
|
123
|
+
(kit ) =>
|
|
124
|
+
(args) => {
|
|
125
|
+
const given = args['wards'];
|
|
126
|
+
if (!Array.isArray(given)) throw new TypeError('the wards are no list');
|
|
127
|
+
const challenge = {
|
|
128
|
+
nonce: bytesOf('the nonce', args['nonce']),
|
|
129
|
+
identity: bytesOf('the identity', args['identity']),
|
|
130
|
+
};
|
|
131
|
+
return {
|
|
132
|
+
proofs: given.map((one) => {
|
|
133
|
+
const ward = sealedWardOf(one);
|
|
134
|
+
return lineProof(kit.formOf(ward).crypto, kit.keysOf(ward).signingSecret, challenge);
|
|
135
|
+
}),
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
export const arrivalsOf = (kit ) => ({
|
|
140
|
+
openHead: openHeadOf(kit),
|
|
141
|
+
arrive: arriveOf(kit),
|
|
142
|
+
choose: chooseOf(kit),
|
|
143
|
+
draw: drawOf(kit),
|
|
144
|
+
invite: inviteOf(kit),
|
|
145
|
+
refer: referOf(kit),
|
|
146
|
+
redeem: redeemOf(kit),
|
|
147
|
+
prove: proveOf(kit),
|
|
148
|
+
});
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { askZero, lapsed, read, readInvitation, readZero, seal, standingOn, } from '#quo';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
import { askOf, maybeBytesOf, quoData, textOf } from '#cage';
|
|
6
|
+
|
|
7
|
+
import { sealedPendingOf, sealedStandingOf } from './shapes.js';
|
|
8
|
+
|
|
9
|
+
import { openedStanding, openPending, risen, sealPending, sealStanding, } from './standing.js';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const standingAt = (kit , args ) => {
|
|
14
|
+
const sealed = sealedStandingOf(args['standing']);
|
|
15
|
+
const sent = { zero: false, bound: sealed.invitation.heir };
|
|
16
|
+
const { standing, form, start } = openedStanding(kit.sealing(), sealed);
|
|
17
|
+
return { standing, sent, form: kit.forms.of(form), start };
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const standingOnOf =
|
|
21
|
+
(kit ) =>
|
|
22
|
+
(args) => {
|
|
23
|
+
let form = kit.forms.fresh;
|
|
24
|
+
const told = (secret , heir ) => {
|
|
25
|
+
form = kit.forms.told(secret, heir);
|
|
26
|
+
return form.crypto;
|
|
27
|
+
};
|
|
28
|
+
const invitation = readInvitation(textOf('the invitation', args['invitation']), kit.schemes(), told);
|
|
29
|
+
if (invitation === null) return { why: 'the text is no invitation' };
|
|
30
|
+
return quoData(sealStanding(kit.sealing(), standingOn(invitation), form.name));
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const sealOf =
|
|
34
|
+
(kit ) =>
|
|
35
|
+
(args) => {
|
|
36
|
+
const { standing, sent, form, start } = standingAt(kit, args);
|
|
37
|
+
const sealed = seal(form.crypto, kit.draw, risen(kit.sealing(), standing, start, kit.wall()), askOf(args['ask']));
|
|
38
|
+
if ('why' in sealed) return { why: sealed.why };
|
|
39
|
+
const sealing = kit.sealing();
|
|
40
|
+
return quoData({
|
|
41
|
+
box: sealed.box,
|
|
42
|
+
pending: sealPending(sealing, sent, sealed.pending),
|
|
43
|
+
standing: sealStanding(sealing, sealed.standing, form.name, start),
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const readOf =
|
|
48
|
+
(kit ) =>
|
|
49
|
+
(args) => {
|
|
50
|
+
const { standing, sent, form, start } = standingAt(kit, args);
|
|
51
|
+
const pending = openPending(kit.sealing(), sent, sealedPendingOf(args['pending']));
|
|
52
|
+
const reply = maybeBytesOf('the reply', args['reply'] ?? null);
|
|
53
|
+
const heard = read(form.crypto, standing, pending, reply, kit.schemes());
|
|
54
|
+
return quoData({ read: heard.read, standing: sealStanding(kit.sealing(), heard.standing, form.name, start) });
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const lapsedOf =
|
|
58
|
+
(kit ) =>
|
|
59
|
+
(args) => {
|
|
60
|
+
const { standing, sent, form, start } = standingAt(kit, args);
|
|
61
|
+
const pending = openPending(kit.sealing(), sent, sealedPendingOf(args['pending']));
|
|
62
|
+
return quoData(sealStanding(kit.sealing(), lapsed(standing, pending), form.name, start));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const askZeroOf =
|
|
66
|
+
(kit ) =>
|
|
67
|
+
(args) => {
|
|
68
|
+
const ward = textOf('the ward', args['ward']);
|
|
69
|
+
const asked = askZero(kit.forms.fresh.crypto, kit.draw, ward, askOf(args['ask']));
|
|
70
|
+
if ('why' in asked) return { why: asked.why };
|
|
71
|
+
const pending = sealPending(kit.sealing(), { zero: true, bound: ward }, asked.pending);
|
|
72
|
+
return quoData({ box: asked.box, pending });
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const readZeroOf =
|
|
76
|
+
(kit ) =>
|
|
77
|
+
(args) => {
|
|
78
|
+
const ward = textOf('the ward', args['ward']);
|
|
79
|
+
const sent = { zero: true, bound: ward };
|
|
80
|
+
const pending = openPending(kit.sealing(), sent, sealedPendingOf(args['pending']));
|
|
81
|
+
const reply = maybeBytesOf('the reply', args['reply'] ?? null);
|
|
82
|
+
return quoData(readZero(kit.forms.fresh.crypto, ward, pending, reply, kit.schemes()));
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const asksOf = (kit ) => ({
|
|
86
|
+
standingOn: standingOnOf(kit),
|
|
87
|
+
seal: sealOf(kit),
|
|
88
|
+
read: readOf(kit),
|
|
89
|
+
lapsed: lapsedOf(kit),
|
|
90
|
+
askZero: askZeroOf(kit),
|
|
91
|
+
readZero: readZeroOf(kit),
|
|
92
|
+
});
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { BOX_SIZE } from '#seams';
|
|
3
|
+
import { GENOME_VERSION, } from '#standard';
|
|
4
|
+
|
|
5
|
+
export const KEY_BUDGET = 200;
|
|
6
|
+
|
|
7
|
+
const bytes = { type: 'string', contentEncoding: 'base16', maxLength: BOX_SIZE };
|
|
8
|
+
const record = { type: 'object' };
|
|
9
|
+
const challenge = { type: 'string', contentEncoding: 'base16', minLength: 32, maxLength: 32 };
|
|
10
|
+
const text = { type: 'string', minLength: 1 };
|
|
11
|
+
const name = { type: 'string', pattern: '^[0-9a-f]{128}$' };
|
|
12
|
+
const named = { type: 'string', pattern: '^[0-9a-f]{2432}$' };
|
|
13
|
+
const ward = {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: { name, sealed: bytes },
|
|
16
|
+
required: ['name', 'sealed'],
|
|
17
|
+
additionalProperties: false,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const objectOf = (properties , required ) => ({
|
|
21
|
+
type: 'object',
|
|
22
|
+
properties,
|
|
23
|
+
required,
|
|
24
|
+
additionalProperties: false,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const method = (description , args , answered = record) => ({
|
|
28
|
+
description,
|
|
29
|
+
args,
|
|
30
|
+
result: answered,
|
|
31
|
+
errors: ['refused'],
|
|
32
|
+
budget: KEY_BUDGET,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const methods = {
|
|
36
|
+
openHead: method(
|
|
37
|
+
"The ear's: opens a box's head with the ward's scalar, and answers the head and its agreement sealed for that box, or null where it does not open.",
|
|
38
|
+
objectOf({ ward, box: bytes }, ['ward', 'box']),
|
|
39
|
+
{ anyOf: [record, { type: 'null' }] },
|
|
40
|
+
),
|
|
41
|
+
arrive: method(
|
|
42
|
+
"The ear's: judges a box at the ward's door over the sealed occupants it is handed, and answers its refusal and reply, or the ask admitted, its next occupant and its reply's keys sealed.",
|
|
43
|
+
objectOf({ ward, box: bytes, lookup: record, opened: { anyOf: [record, { type: 'null' }] } }, [
|
|
44
|
+
'ward',
|
|
45
|
+
'box',
|
|
46
|
+
'lookup',
|
|
47
|
+
]),
|
|
48
|
+
),
|
|
49
|
+
choose: method(
|
|
50
|
+
"The ear's: seals the choice made on an admitted ask into its reply, or answers why.",
|
|
51
|
+
objectOf({ ward, admitted: record, choice: record }, ['ward', 'admitted', 'choice']),
|
|
52
|
+
),
|
|
53
|
+
draw: method(
|
|
54
|
+
"The ear's: draws a ward fresh for one invitation, and answers it sealed under its name.",
|
|
55
|
+
objectOf({}, []),
|
|
56
|
+
objectOf({ ward }, ['ward']),
|
|
57
|
+
),
|
|
58
|
+
invite: method(
|
|
59
|
+
"The ear's: draws a new heir of the ward, and answers the invitation that gives it away, at the addresses named, its text Quo's fields and those `beside` them, an object naming none of Quo's, signed by the ward whole, and the heir.",
|
|
60
|
+
objectOf(
|
|
61
|
+
{
|
|
62
|
+
ward,
|
|
63
|
+
at: { type: 'array', items: text },
|
|
64
|
+
beside: { type: 'object' },
|
|
65
|
+
},
|
|
66
|
+
['ward'],
|
|
67
|
+
),
|
|
68
|
+
objectOf({ invitation: text, heir: text }, ['invitation', 'heir']),
|
|
69
|
+
),
|
|
70
|
+
refer: method(
|
|
71
|
+
"The ear's: keeps an invitation's text behind a reference drawn by chance, 128 bits as twenty-six lowercase base32, and answers the reference and the invitation sealed under it.",
|
|
72
|
+
objectOf({ invitation: text }, ['invitation']),
|
|
73
|
+
objectOf({ reference: text, sealed: bytes }, ['reference', 'sealed']),
|
|
74
|
+
),
|
|
75
|
+
redeem: method(
|
|
76
|
+
"The ear's: seals the invitation kept behind a reference into the reply of an admitted ask on the zero head, as `{result: {invitation}}`, and answers the reply, never the invitation; refused where the record is not the reference's.",
|
|
77
|
+
objectOf({ ward, admitted: record, reference: text, sealed: bytes }, ['ward', 'admitted', 'reference', 'sealed']),
|
|
78
|
+
),
|
|
79
|
+
prove: method(
|
|
80
|
+
"The ear's: each ward's proof under a line's challenge, its signature of the label `nervur-line`, the listener's `identity` and the line's `nonce`, in the order the wards are handed.",
|
|
81
|
+
objectOf({ wards: { type: 'array', items: ward }, nonce: challenge, identity: challenge }, [
|
|
82
|
+
'wards',
|
|
83
|
+
'nonce',
|
|
84
|
+
'identity',
|
|
85
|
+
]),
|
|
86
|
+
objectOf(
|
|
87
|
+
{ proofs: { type: 'array', items: { type: 'string', contentEncoding: 'base16', maxLength: 64, minLength: 64 } } },
|
|
88
|
+
['proofs'],
|
|
89
|
+
),
|
|
90
|
+
),
|
|
91
|
+
standingOn: method(
|
|
92
|
+
"The mouth's: a standing on an invitation's text, its `at` read as the organism stands its carriers, before its knock, its secrets sealed; or why, where the text is no invitation.",
|
|
93
|
+
objectOf({ invitation: text }, ['invitation']),
|
|
94
|
+
),
|
|
95
|
+
seal: method(
|
|
96
|
+
"The mouth's: the next box on a sealed standing, its pending sealed and the standing moved, or why.",
|
|
97
|
+
objectOf({ standing: record, ask: record }, ['standing', 'ask']),
|
|
98
|
+
),
|
|
99
|
+
read: method(
|
|
100
|
+
"The mouth's: a reply to a pending read, null for nothing, and the standing moved.",
|
|
101
|
+
objectOf({ standing: record, pending: record, reply: { anyOf: [bytes, { type: 'null' }] } }, [
|
|
102
|
+
'standing',
|
|
103
|
+
'pending',
|
|
104
|
+
'reply',
|
|
105
|
+
]),
|
|
106
|
+
),
|
|
107
|
+
lapsed: method(
|
|
108
|
+
"The mouth's: the standing once no reply came to a pending within its wait.",
|
|
109
|
+
objectOf({ standing: record, pending: record }, ['standing', 'pending']),
|
|
110
|
+
),
|
|
111
|
+
askZero: method(
|
|
112
|
+
"The mouth's: an ask on a ward's zero head, signed by a key drawn for it, and its pending sealed, or why.",
|
|
113
|
+
objectOf({ ward: name, ask: record }, ['ward', 'ask']),
|
|
114
|
+
),
|
|
115
|
+
readZero: method(
|
|
116
|
+
"The mouth's: a reply to an ask on a ward's zero head, read.",
|
|
117
|
+
objectOf({ ward: name, pending: record, reply: { anyOf: [bytes, { type: 'null' }] } }, [
|
|
118
|
+
'ward',
|
|
119
|
+
'pending',
|
|
120
|
+
'reply',
|
|
121
|
+
]),
|
|
122
|
+
),
|
|
123
|
+
taking: method(
|
|
124
|
+
"The mouth's: draws a key for a standing to be handed to, and answers its public half, `key`, and its secret sealed under the record key.",
|
|
125
|
+
objectOf({}, []),
|
|
126
|
+
objectOf({ key: named, sealed: bytes }, ['key', 'sealed']),
|
|
127
|
+
),
|
|
128
|
+
cede: method(
|
|
129
|
+
"The mouth's: the sealed standing whole, its numbers as handed, with what the brain keeps `beside` it, sealed to `to`, a key `taking` drew, as a named key's wrap is sealed; refused where `to` is no named key.",
|
|
130
|
+
objectOf({ standing: record, beside: record, to: named }, ['standing', 'beside', 'to']),
|
|
131
|
+
objectOf({ handed: bytes }, ['handed']),
|
|
132
|
+
),
|
|
133
|
+
take: method(
|
|
134
|
+
"The mouth's: the standing `cede` handed, opened by the secret `taking` sealed and sealed again under the record key, with what was kept beside it; refused where it is not sealed to that key or its form is none this genome holds.",
|
|
135
|
+
objectOf({ taking: objectOf({ key: named, sealed: bytes }, ['key', 'sealed']), handed: bytes }, [
|
|
136
|
+
'taking',
|
|
137
|
+
'handed',
|
|
138
|
+
]),
|
|
139
|
+
objectOf({ standing: record, beside: record }, ['standing', 'beside']),
|
|
140
|
+
),
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export const KEY_BLUEPRINT = {
|
|
144
|
+
name: 'nervur.key',
|
|
145
|
+
version: GENOME_VERSION,
|
|
146
|
+
description:
|
|
147
|
+
"The boot key while the organism runs, and the wards' secrets under it: it seals, opens and signs with them for the ear and the mouth, and never answers one.",
|
|
148
|
+
methods,
|
|
149
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Admitted, OpenedHead, Occupant, Ward } from '#quo';
|
|
2
|
+
import { type Sealing } from './records.js';
|
|
3
|
+
import type { SealedAdmitted, SealedOccupant, SealedOpened, SealedWard } from './shapes.js';
|
|
4
|
+
export declare const sealWard: (sealing: Sealing, name: string, ward: Ward, form?: string | null) => SealedWard;
|
|
5
|
+
export declare const openWard: (sealing: Omit<Sealing, 'draw'>, ward: SealedWard) => Ward;
|
|
6
|
+
export declare const formOfWard: (sealing: Omit<Sealing, 'draw'>, ward: SealedWard) => string | null;
|
|
7
|
+
export declare const sealOpened: (sealing: Sealing, name: string, head: OpenedHead) => SealedOpened;
|
|
8
|
+
export declare const openOpened: (sealing: Omit<Sealing, 'draw'>, name: string, box: Uint8Array, head: SealedOpened) => OpenedHead;
|
|
9
|
+
export declare const sealOccupant: (sealing: Sealing, occupant: Occupant) => SealedOccupant;
|
|
10
|
+
export declare const openOccupant: (sealing: Omit<Sealing, 'draw'>, occupant: SealedOccupant) => Occupant;
|
|
11
|
+
export declare const sealAdmitted: (sealing: Sealing, name: string, admitted: Admitted) => SealedAdmitted;
|
|
12
|
+
export declare const openAdmitted: (sealing: Omit<Sealing, 'draw'>, name: string, admitted: SealedAdmitted) => Admitted;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
|
|
3
|
+
import { hex } from '#standard';
|
|
4
|
+
import { admittedOf, occupantOf, wardOf } from '#cage';
|
|
5
|
+
import { opened, sealRecord, } from './records.js';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
const LID = 32;
|
|
9
|
+
const SEALED_HEAD = 48;
|
|
10
|
+
|
|
11
|
+
export const sealWard = (sealing , name , ward , form = null) => ({
|
|
12
|
+
name,
|
|
13
|
+
sealed: sealRecord(sealing, 'ward', name, {
|
|
14
|
+
seed: ward.seed,
|
|
15
|
+
encapsulation: ward.encapsulation,
|
|
16
|
+
decapsulation: ward.decapsulation,
|
|
17
|
+
...(form === null ? {} : { form }),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const openWard = (sealing , ward ) =>
|
|
22
|
+
wardOf(opened(sealing, 'ward', ward.name, ward.sealed));
|
|
23
|
+
|
|
24
|
+
export const formOfWard = (sealing , ward ) => {
|
|
25
|
+
const form = opened(sealing, 'ward', ward.name, ward.sealed)['form'];
|
|
26
|
+
return typeof form === 'string' ? form : null;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const headBound = (name , lid ) => `${name}:${hex(lid)}`;
|
|
30
|
+
|
|
31
|
+
export const sealOpened = (sealing , name , head ) => ({
|
|
32
|
+
head: head.head,
|
|
33
|
+
sealed: sealRecord(sealing, 'opened', headBound(name, head.lid), {
|
|
34
|
+
agreement: head.agreement,
|
|
35
|
+
head: head.head,
|
|
36
|
+
}),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export const openOpened = (
|
|
40
|
+
sealing ,
|
|
41
|
+
name ,
|
|
42
|
+
box ,
|
|
43
|
+
head ,
|
|
44
|
+
) => {
|
|
45
|
+
const lid = box.slice(0, LID);
|
|
46
|
+
const fields = opened(sealing, 'opened', headBound(name, lid), head.sealed);
|
|
47
|
+
const { agreement, head: named } = fields;
|
|
48
|
+
if (!(agreement instanceof Uint8Array) || !(named instanceof Uint8Array))
|
|
49
|
+
throw new TypeError('the opened head is not as key sealed it');
|
|
50
|
+
return { lid, agreement, head: named, rest: box.subarray(LID + SEALED_HEAD) };
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const sealOccupant = (sealing , occupant ) => {
|
|
54
|
+
const { heir, spent, removed, held, vouched, highest, open, offered } = occupant;
|
|
55
|
+
const sealed = spent ? sealRecord(sealing, 'occupant', heir, { open, offered }) : null;
|
|
56
|
+
return { heir, spent, removed, held, vouched, highest, sealed };
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export const openOccupant = (sealing , occupant ) => {
|
|
60
|
+
const { sealed, ...open } = occupant;
|
|
61
|
+
const edges = sealed === null ? { open: null, offered: null } : opened(sealing, 'occupant', occupant.heir, sealed);
|
|
62
|
+
return occupantOf({ ...open, open: edges['open'] ?? null, offered: edges['offered'] ?? null });
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const admittedBound = (name , heir ) => heir ?? name;
|
|
66
|
+
|
|
67
|
+
export const sealAdmitted = (sealing , name , admitted ) => {
|
|
68
|
+
const { heir, by, seq, method, args, lid, under, ephemeral, next } = admitted;
|
|
69
|
+
return {
|
|
70
|
+
heir,
|
|
71
|
+
by,
|
|
72
|
+
seq,
|
|
73
|
+
method,
|
|
74
|
+
args,
|
|
75
|
+
next: next === null ? null : sealOccupant(sealing, next),
|
|
76
|
+
sealed: sealRecord(sealing, 'admitted', admittedBound(name, heir), { lid, under, ephemeral }),
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const openAdmitted = (sealing , name , admitted ) => {
|
|
81
|
+
const { heir, by, seq, method, args, next } = admitted;
|
|
82
|
+
const keys = opened(sealing, 'admitted', admittedBound(name, heir), admitted.sealed);
|
|
83
|
+
return admittedOf({
|
|
84
|
+
heir,
|
|
85
|
+
by,
|
|
86
|
+
seq,
|
|
87
|
+
method,
|
|
88
|
+
args,
|
|
89
|
+
lid: keys['lid'] ?? null,
|
|
90
|
+
under: keys['under'] ?? null,
|
|
91
|
+
ephemeral: keys['ephemeral'] ?? null,
|
|
92
|
+
next: next === null ? null : openOccupant(sealing, next),
|
|
93
|
+
});
|
|
94
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CryptoSeam, Forms } from '#seams';
|
|
2
|
+
export type Form = {
|
|
3
|
+
readonly name: string | null;
|
|
4
|
+
readonly crypto: CryptoSeam;
|
|
5
|
+
};
|
|
6
|
+
export type KitForms = {
|
|
7
|
+
readonly fresh: Form;
|
|
8
|
+
readonly of: (name: string | null) => Form;
|
|
9
|
+
readonly told: (secret: string, heir: string) => Form;
|
|
10
|
+
};
|
|
11
|
+
export declare const formsOver: (crypto: CryptoSeam, forms?: Forms) => KitForms;
|