@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.
- 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 +1985 -0
- package/docs/changelog.md +11 -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 +43 -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 +414 -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 +62 -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/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 +37 -0
- package/genome/store/open.js +301 -0
- package/genome/store/outside.d.ts +30 -0
- package/genome/store/outside.js +164 -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 +53 -0
- package/genome/store/store.js +531 -0
- package/genome/store/unwritten.d.ts +2 -0
- package/genome/store/unwritten.js +57 -0
- package/genome/store/witness.d.ts +17 -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,25 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { dropRow, putRow, rowAt, rowsIn } from '../cells/index.js';
|
|
3
|
+
import { } from '#cage';
|
|
4
|
+
|
|
5
|
+
export const markNextAnchor = (cells , heir , inviter ) =>
|
|
6
|
+
putRow(cells, ['nextAnchor', heir], inviter, 'brain');
|
|
7
|
+
|
|
8
|
+
export const nextInviter = (cells , heir ) => {
|
|
9
|
+
const found = rowAt(cells, ['nextAnchor', heir], 'brain');
|
|
10
|
+
if (found === undefined) return undefined;
|
|
11
|
+
if (typeof found !== 'string') throw new Error(`brain: the next anchor ${heir} is not as the brain wrote it.`);
|
|
12
|
+
return found;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const isNextAnchor = (cells , heir ) => nextInviter(cells, heir) !== undefined;
|
|
16
|
+
|
|
17
|
+
export const dropNextAnchor = (cells , heir ) => {
|
|
18
|
+
if (isNextAnchor(cells, heir)) dropRow(cells, ['nextAnchor', heir], 'brain');
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const nextAnchors = (cells ) =>
|
|
22
|
+
rowsIn(cells, { prefix: ['nextAnchor'] }, 'brain').map(({ key }) => {
|
|
23
|
+
if (typeof key[1] !== 'string') throw new Error(`brain: the row ${JSON.stringify(key)} is no next anchor's.`);
|
|
24
|
+
return key[1];
|
|
25
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Data, type Fields } from '#standard';
|
|
2
|
+
import type { Cells } from '#cage';
|
|
3
|
+
import type { Change } from './changes.js';
|
|
4
|
+
export declare const NOTE_LIMIT = 4096;
|
|
5
|
+
export declare const noteIn: (args: Fields) => Data;
|
|
6
|
+
export declare const noteRefusal: (cells: Cells, lobe: string, note: Data) => string | null;
|
|
7
|
+
export declare const saysRefusal: (cells: Cells, lobe: string, says: Data) => string | null;
|
|
8
|
+
export declare const noteChange: (args: Fields) => Change;
|
|
9
|
+
export declare const ownNoteChange: (lobe: string, args: Fields) => Change;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { dataText, error, result, utf8Bytes, } from '#standard';
|
|
3
|
+
|
|
4
|
+
import { mapOf } from '../map/index.js';
|
|
5
|
+
|
|
6
|
+
import { textAt } from './fields.js';
|
|
7
|
+
import { putGrant } from './grants.js';
|
|
8
|
+
import { heldDirection, setNote } from './holds.js';
|
|
9
|
+
import { limitIn } from './limits.js';
|
|
10
|
+
import { BRAIN } from '../ids/index.js';
|
|
11
|
+
|
|
12
|
+
export const NOTE_LIMIT = 4096;
|
|
13
|
+
|
|
14
|
+
export const noteIn = (args ) => args['note'] ?? null;
|
|
15
|
+
|
|
16
|
+
const noteMost = (cells , lobe ) => limitIn(cells, 'note', lobe) ?? NOTE_LIMIT;
|
|
17
|
+
|
|
18
|
+
const sizeOf = (data ) => utf8Bytes(dataText(data)).length;
|
|
19
|
+
|
|
20
|
+
export const noteRefusal = (cells , lobe , note ) => {
|
|
21
|
+
const [size, most] = [sizeOf(note), noteMost(cells, lobe)];
|
|
22
|
+
return size > most ? `the note is ${size} bytes as its canonical text, past ${most}` : null;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const saysRefusal = (cells , lobe , says ) => {
|
|
26
|
+
const [size, note] = [sizeOf(says), noteMost(cells, lobe)];
|
|
27
|
+
const most = Math.floor(note / 4);
|
|
28
|
+
return size > most
|
|
29
|
+
? `what the invitation says is ${size} bytes as its canonical text, past ${most}, a quarter of a note's ${note}`
|
|
30
|
+
: null;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const lobeNoted = (cells , lobe , far , note ) => {
|
|
34
|
+
if (setNote(cells, lobe, far, note)) return true;
|
|
35
|
+
if (
|
|
36
|
+
!mapOf(cells)
|
|
37
|
+
.reaching(far)
|
|
38
|
+
.some((wire) => wire.node === lobe)
|
|
39
|
+
)
|
|
40
|
+
return false;
|
|
41
|
+
putGrant(cells, far, lobe, note);
|
|
42
|
+
return true;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const noteChange =
|
|
46
|
+
(args ) =>
|
|
47
|
+
(cells) => {
|
|
48
|
+
const [far, note] = [textAt(args, 'far'), noteIn(args)];
|
|
49
|
+
const lobe = typeof args['lobe'] === 'string' ? args['lobe'] : null;
|
|
50
|
+
const tooLong = noteRefusal(cells, lobe ?? BRAIN, note);
|
|
51
|
+
if (tooLong !== null) return { answer: error('refused', tooLong) };
|
|
52
|
+
if (lobe === null) {
|
|
53
|
+
if (heldDirection(cells, BRAIN, far) !== 'standing')
|
|
54
|
+
return { answer: error('refused', `the organism holds no standing of the far organism ${far}: name its lobe`) };
|
|
55
|
+
setNote(cells, BRAIN, far, note);
|
|
56
|
+
return { answer: result(null) };
|
|
57
|
+
}
|
|
58
|
+
if (mapOf(cells).node(lobe) === undefined) return { answer: error('refused', `the node ${lobe} is none`) };
|
|
59
|
+
if (!lobeNoted(cells, lobe, far, note))
|
|
60
|
+
return { answer: error('refused', `the node ${lobe} holds no standing of the far organism ${far}`) };
|
|
61
|
+
return { answer: result(null) };
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export const ownNoteChange =
|
|
65
|
+
(lobe , args ) =>
|
|
66
|
+
(cells) => {
|
|
67
|
+
const [far, note] = [textAt(args, 'far'), noteIn(args)];
|
|
68
|
+
const tooLong = noteRefusal(cells, lobe, note);
|
|
69
|
+
if (tooLong !== null) return { answer: error('refused', tooLong) };
|
|
70
|
+
if (!lobeNoted(cells, lobe, far, note))
|
|
71
|
+
return { answer: error('refused', `the node ${lobe} holds no standing of the far organism ${far}`) };
|
|
72
|
+
return { answer: result(null) };
|
|
73
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Answer, type Data, type Fields } from '#standard';
|
|
2
|
+
import type { Cells } from '#cage';
|
|
3
|
+
import type { GraphMap } from '../map/index.js';
|
|
4
|
+
import { type Held } from './holds.js';
|
|
5
|
+
export declare const ENDS_PAGE = 64;
|
|
6
|
+
export declare const occupantOf: (cells: Cells, map: GraphMap, node: string, held: Held) => Data;
|
|
7
|
+
export declare const occupants: (cells: Cells, map: GraphMap, args: Fields) => Answer;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { error, result, } from '#standard';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
import { grantedFars, grantedLobes } from './grants.js';
|
|
6
|
+
import { everyHeld, heirOf, heldOf, heldPage, } from './holds.js';
|
|
7
|
+
import { standingBound } from './mouth.js';
|
|
8
|
+
import { relationAt, ungiven } from './relations.js';
|
|
9
|
+
import { BRAIN } from '../ids/index.js';
|
|
10
|
+
|
|
11
|
+
export const ENDS_PAGE = 64;
|
|
12
|
+
|
|
13
|
+
const stateOf = (
|
|
14
|
+
cells ,
|
|
15
|
+
held ,
|
|
16
|
+
) => {
|
|
17
|
+
if (held.direction === 'standing') {
|
|
18
|
+
const bound = standingBound(cells, held.far) === true ? 'bound' : 'waiting';
|
|
19
|
+
return { status: held.silent === null ? bound : 'silent', lives: held.lives };
|
|
20
|
+
}
|
|
21
|
+
const heir = heirOf(cells, held.far);
|
|
22
|
+
const relation = heir === undefined ? undefined : relationAt(cells, heir);
|
|
23
|
+
const lives = relation?.lives ?? null;
|
|
24
|
+
if (relation !== undefined && ungiven(relation)) return { status: 'ungiven', lives };
|
|
25
|
+
return { status: relation?.occupant.spent === true ? 'bound' : 'waiting', lives };
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const occupantOf = (cells , map , node , held ) => {
|
|
29
|
+
const { status, lives } = stateOf(cells, held);
|
|
30
|
+
const standing = held.direction === 'standing';
|
|
31
|
+
return {
|
|
32
|
+
lobe: standing ? null : node,
|
|
33
|
+
far: held.far,
|
|
34
|
+
side: standing ? 'standing' : 'occupant',
|
|
35
|
+
note: held.note,
|
|
36
|
+
status,
|
|
37
|
+
invited: held.invited,
|
|
38
|
+
bound: held.bound,
|
|
39
|
+
silent: held.silent,
|
|
40
|
+
lives,
|
|
41
|
+
...(standing
|
|
42
|
+
? {
|
|
43
|
+
anchor: held.anchor,
|
|
44
|
+
lobes: grantedLobes(cells, map, held.far).map(({ lobe, placeholder, note }) => ({ lobe, placeholder, note })),
|
|
45
|
+
}
|
|
46
|
+
: {}),
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const lobePage = (cells , map , lobe , cursor ) => {
|
|
51
|
+
const given = everyHeld(cells, lobe).map((held) => [held.far, lobe, held] );
|
|
52
|
+
const granted = grantedFars(map, lobe).map((far) => {
|
|
53
|
+
const held = heldOf(cells, BRAIN, far);
|
|
54
|
+
if (held === undefined) throw new Error(`brain: the end ${far} has no row.`);
|
|
55
|
+
return [far, BRAIN, held] ;
|
|
56
|
+
});
|
|
57
|
+
const after = [...given, ...granted]
|
|
58
|
+
.filter(([far]) => cursor === undefined || far > cursor)
|
|
59
|
+
.toSorted(([one], [other]) => (one < other ? -1 : 1));
|
|
60
|
+
const page = after.slice(0, ENDS_PAGE);
|
|
61
|
+
const last = page.at(-1);
|
|
62
|
+
return result({
|
|
63
|
+
ends: page.map(([, node, held]) => occupantOf(cells, map, node, held)),
|
|
64
|
+
cursor: after.length > ENDS_PAGE && last !== undefined ? last[0] : null,
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export const occupants = (cells , map , args ) => {
|
|
69
|
+
const lobe = typeof args['lobe'] === 'string' ? args['lobe'] : null;
|
|
70
|
+
if (lobe !== null && map.node(lobe) === undefined) return error('refused', `the node ${lobe} is none`);
|
|
71
|
+
const cursor = typeof args['cursor'] === 'string' ? args['cursor'] : undefined;
|
|
72
|
+
if (lobe !== null && lobe !== BRAIN) return lobePage(cells, map, lobe, cursor);
|
|
73
|
+
const page = heldPage(cells, lobe, cursor, ENDS_PAGE);
|
|
74
|
+
if ('why' in page) return error('refused', page.why);
|
|
75
|
+
return result({
|
|
76
|
+
ends: page.held.map(({ node, held }) => occupantOf(cells, map, node, held)),
|
|
77
|
+
cursor: page.cursor,
|
|
78
|
+
});
|
|
79
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { isFields, } from '#standard';
|
|
3
|
+
import { BRAIN, LIBRARY } from '../ids/index.js';
|
|
4
|
+
|
|
5
|
+
import { forwarding, } from './uses.js';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const digestsOf = (answer ) => {
|
|
10
|
+
if (!('result' in answer) || !isFields(answer.result)) return [];
|
|
11
|
+
const { digests } = answer.result;
|
|
12
|
+
return Array.isArray(digests) ? digests.filter((one) => typeof one === 'string') : [];
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const makeSweep = (gear , removals ) => {
|
|
16
|
+
let running = false;
|
|
17
|
+
let again = false;
|
|
18
|
+
const sweep = () => {
|
|
19
|
+
if (running) {
|
|
20
|
+
again = true;
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
running = true;
|
|
24
|
+
again = false;
|
|
25
|
+
const { longestTimeout } = gear.configuration;
|
|
26
|
+
const ended = () => {
|
|
27
|
+
running = false;
|
|
28
|
+
if (again) sweep();
|
|
29
|
+
};
|
|
30
|
+
gear.carry().ask(BRAIN, LIBRARY, 'old', {}, longestTimeout, (answer) => {
|
|
31
|
+
const left = [...digestsOf(answer)];
|
|
32
|
+
const next = () => {
|
|
33
|
+
const digest = left.shift();
|
|
34
|
+
if (digest === undefined) return ended();
|
|
35
|
+
const args = { digest };
|
|
36
|
+
gear
|
|
37
|
+
.carry()
|
|
38
|
+
.ask(BRAIN, LIBRARY, 'remove', args, longestTimeout, forwarding(removals, LIBRARY, 'remove', args, next));
|
|
39
|
+
};
|
|
40
|
+
next();
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
return sweep;
|
|
44
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { UnlockerSeam } from '#seams';
|
|
2
|
+
import { type Answer, type Blueprint, type Fields } from '#standard';
|
|
3
|
+
import { type Carry } from '../carry/index.js';
|
|
4
|
+
import type { Cells, Batch } from '#cage';
|
|
5
|
+
import { type GraphMap } from '../map/index.js';
|
|
6
|
+
import type { Change } from './changes.js';
|
|
7
|
+
import { type Added, type Printing } from './organs.js';
|
|
8
|
+
import { type Removals } from './uses.js';
|
|
9
|
+
type Done = (answer: Answer) => void;
|
|
10
|
+
export type Halves = {
|
|
11
|
+
start(added: Added, failed?: () => void): void;
|
|
12
|
+
stop(id: string): void;
|
|
13
|
+
status(id: string): string | undefined;
|
|
14
|
+
why(id: string): string | null;
|
|
15
|
+
restarts(id: string): number;
|
|
16
|
+
redialed(id: string): number;
|
|
17
|
+
unreplied(id: string): number;
|
|
18
|
+
};
|
|
19
|
+
export type OrganGear = Printing & {
|
|
20
|
+
readonly cells: () => Cells;
|
|
21
|
+
readonly carry: () => Pick<Carry, 'ask' | 'ended'>;
|
|
22
|
+
readonly halves: Halves;
|
|
23
|
+
readonly unlocker: Pick<UnlockerSeam, 'admit'>;
|
|
24
|
+
readonly releasesNetwork?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type Turns = {
|
|
27
|
+
take(job: (next: () => void) => void): void;
|
|
28
|
+
busy(): boolean;
|
|
29
|
+
};
|
|
30
|
+
export declare const turnsOf: () => Turns;
|
|
31
|
+
export type OrganKit = {
|
|
32
|
+
readonly gear: OrganGear;
|
|
33
|
+
readonly removals: Removals;
|
|
34
|
+
readonly turns: Turns;
|
|
35
|
+
map(): GraphMap;
|
|
36
|
+
change(change: Change, done: Done, joined?: Batch): void;
|
|
37
|
+
};
|
|
38
|
+
export declare const placeOrgan: (cells: Cells, added: Added, blueprint: Blueprint, standing?: Added) => string | null;
|
|
39
|
+
export declare const settleOrgan: (kit: OrganKit, args: Fields, settled: Done) => void;
|
|
40
|
+
export declare const addOrgan: (kit: OrganKit, args: Fields, settled: Done, done: Done, joined: Batch) => void;
|
|
41
|
+
export declare const removeOrgan: (kit: OrganKit, args: Fields, settled: Done, done: Done, joined: Batch) => void;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
|
|
3
|
+
import { checkBlueprint, error, result, } from '#standard';
|
|
4
|
+
import { dropDurables, endUnmarked, } from '../carry/index.js';
|
|
5
|
+
|
|
6
|
+
import { mapOf, } from '../map/index.js';
|
|
7
|
+
import { NETWORK } from '../ids/index.js';
|
|
8
|
+
import { NETWORK_BLUEPRINT } from '../network/index.js';
|
|
9
|
+
|
|
10
|
+
import { recordAt, textAt } from './fields.js';
|
|
11
|
+
import {
|
|
12
|
+
dropOrgan,
|
|
13
|
+
everyOrgan,
|
|
14
|
+
fingerprintOf,
|
|
15
|
+
networkConfigured,
|
|
16
|
+
organAt,
|
|
17
|
+
putOrgan,
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
} from './organs.js';
|
|
22
|
+
import { presentOrgan, skinOf } from './presence.js';
|
|
23
|
+
import { whenRemoved, } from './uses.js';
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
export const turnsOf = () => {
|
|
57
|
+
const waiting = [];
|
|
58
|
+
let busy = false;
|
|
59
|
+
const next = () => {
|
|
60
|
+
const job = waiting.shift();
|
|
61
|
+
busy = job !== undefined;
|
|
62
|
+
job?.(next);
|
|
63
|
+
};
|
|
64
|
+
return {
|
|
65
|
+
take: (job) => {
|
|
66
|
+
waiting.push(job);
|
|
67
|
+
if (!busy) next();
|
|
68
|
+
},
|
|
69
|
+
busy: () => busy || waiting.length > 0,
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
const refused = (why ) => error('refused', why);
|
|
82
|
+
|
|
83
|
+
const refusalOver = (map , id , name ) => {
|
|
84
|
+
const node = map.node(id);
|
|
85
|
+
if (node === undefined) return name === null ? `the node ${id} is none` : null;
|
|
86
|
+
if (node.kind !== 'organ') return `the ID ${id} is the ${node.kind} ${id}'s`;
|
|
87
|
+
if (node.core && (id !== NETWORK || name === null)) return `the core organ ${id} is never changed`;
|
|
88
|
+
if (name !== null && node.blueprint !== name)
|
|
89
|
+
return `a release of ${id} keeps its blueprint's name, ${node.blueprint}`;
|
|
90
|
+
return null;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const admitting = (kit , organs , admitted ) => {
|
|
94
|
+
const fingerprint = fingerprintOf(kit.gear, organs);
|
|
95
|
+
void kit.gear.unlocker.admit(fingerprint).then(
|
|
96
|
+
(answer) => admitted(answer === null ? null : `the owners did not admit it: ${answer.why}`),
|
|
97
|
+
() => admitted('the unlocker failed to admit it'),
|
|
98
|
+
);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const organsWith = (kit , id , added ) => {
|
|
102
|
+
const others = everyOrgan(kit.gear.cells()).filter((one) => one.id !== id);
|
|
103
|
+
return added === null ? others : [...others, added];
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export const placeOrgan = (cells , added , blueprint , standing ) => {
|
|
107
|
+
const map = mapOf(cells);
|
|
108
|
+
const why = refusalOver(map, added.id, blueprint.name);
|
|
109
|
+
if (why !== null) return why;
|
|
110
|
+
const placeholders = blueprint.placeholders ?? {};
|
|
111
|
+
const node = {
|
|
112
|
+
id: added.id,
|
|
113
|
+
kind: 'organ',
|
|
114
|
+
blueprint: blueprint.name,
|
|
115
|
+
faculty: null,
|
|
116
|
+
core: false,
|
|
117
|
+
direction: null,
|
|
118
|
+
};
|
|
119
|
+
const written =
|
|
120
|
+
map.node(added.id) === undefined ? map.add(node, placeholders, {}) : map.release(added.id, placeholders);
|
|
121
|
+
if (written !== null) return written.why;
|
|
122
|
+
const last = leftBy(organAt(cells, added.id) ?? standing, added);
|
|
123
|
+
putOrgan(cells, { ...added, blueprint, ...(last === undefined ? {} : { last }) });
|
|
124
|
+
return null;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const leftBy = (was , added ) => {
|
|
128
|
+
if (was === undefined) return undefined;
|
|
129
|
+
if (was.half.digest === added.half.digest) return was.last;
|
|
130
|
+
const { reach, half, blueprint } = was;
|
|
131
|
+
return { reach, half, ...(blueprint === undefined ? {} : { blueprint }) };
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
const backOf = (cells , added ) => {
|
|
135
|
+
const lobe = skinOf(cells, added.id);
|
|
136
|
+
if (lobe === undefined || presentOrgan(cells, lobe) !== added.id) return null;
|
|
137
|
+
const was = everyOrgan(cells).find((one) => one.id === added.id);
|
|
138
|
+
return was === undefined || was.half.digest === added.half.digest ? null : was;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const addChange =
|
|
142
|
+
(kit , added , blueprint , back ) =>
|
|
143
|
+
(cells) => {
|
|
144
|
+
const standing = added.id === NETWORK ? networkConfigured(kit.gear.configuration) : undefined;
|
|
145
|
+
const why = placeOrgan(cells, added, blueprint, standing);
|
|
146
|
+
if (why !== null) return { answer: refused(why) };
|
|
147
|
+
const ended = endUnmarked(cells, added.id, blueprint.methods);
|
|
148
|
+
const after = () => {
|
|
149
|
+
for (const { organ, asker, method } of ended) kit.gear.carry().ended(organ, asker, method);
|
|
150
|
+
kit.gear.halves.start({ ...added, blueprint }, back === null ? undefined : () => goBack(kit, back, blueprint));
|
|
151
|
+
};
|
|
152
|
+
return { answer: result(null), after };
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const goBack = (kit , back , blueprint ) => {
|
|
156
|
+
kit.turns.take((next) => {
|
|
157
|
+
admitting(kit, organsWith(kit, back.id, back), (refusal) => {
|
|
158
|
+
if (refusal !== null) return next();
|
|
159
|
+
kit.change(addChange(kit, back, blueprint, null), () => next());
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
const removeChange =
|
|
165
|
+
(kit , id ) =>
|
|
166
|
+
(cells) => {
|
|
167
|
+
const map = mapOf(cells);
|
|
168
|
+
const why = refusalOver(map, id, null) ?? map.remove(id)?.why ?? null;
|
|
169
|
+
if (why !== null) return { answer: refused(why) };
|
|
170
|
+
dropOrgan(cells, id);
|
|
171
|
+
dropDurables(cells, id);
|
|
172
|
+
return { answer: result(null), after: () => kit.gear.halves.stop(id) };
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
export const settleOrgan = (kit , args , settled ) => {
|
|
176
|
+
const id = textAt(args, 'id');
|
|
177
|
+
kit.change((cells) => {
|
|
178
|
+
const organ = organAt(cells, id);
|
|
179
|
+
if (organ?.last === undefined) return { answer: refused(`the organ ${id} keeps no step back`) };
|
|
180
|
+
const { last: _left, ...kept } = organ;
|
|
181
|
+
dropOrgan(cells, id);
|
|
182
|
+
putOrgan(cells, kept);
|
|
183
|
+
return { answer: result(null) };
|
|
184
|
+
}, settled);
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
const networkBlueprint = (kit , given ) =>
|
|
188
|
+
given !== undefined && kit.gear.codec.text(given) === kit.gear.codec.text(NETWORK_BLUEPRINT)
|
|
189
|
+
? { blueprint: NETWORK_BLUEPRINT }
|
|
190
|
+
: { why: ["a release of network's half keeps the genome's blueprint"] };
|
|
191
|
+
|
|
192
|
+
const addedOf = (args ) => {
|
|
193
|
+
const half = recordAt(args, 'half');
|
|
194
|
+
const form = half['form'] === 'component' ? 'component' : 'native';
|
|
195
|
+
return {
|
|
196
|
+
id: textAt(args, 'id'),
|
|
197
|
+
reach: args['reach'] ?? {},
|
|
198
|
+
half: { form, digest: textAt(half, 'digest') },
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
const endingTurn =
|
|
203
|
+
(next ) =>
|
|
204
|
+
(answer , heard ) => {
|
|
205
|
+
heard(answer);
|
|
206
|
+
next();
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
export const addOrgan = (kit , args , settled , done , joined ) => {
|
|
210
|
+
const checked =
|
|
211
|
+
args['id'] === NETWORK
|
|
212
|
+
? networkBlueprint(kit, args['blueprint'])
|
|
213
|
+
: checkBlueprint(args['blueprint'] ?? null, 'organ', kit.gear.configuration.longestBudget);
|
|
214
|
+
if ('why' in checked) return settled(refused(`the organ's blueprint: ${checked.why.join('; ')}`));
|
|
215
|
+
const { blueprint } = checked;
|
|
216
|
+
const added = addedOf(args);
|
|
217
|
+
if (Object.keys(blueprint.placeholders ?? {}).length > 0)
|
|
218
|
+
return settled(refused(`the organ ${added.id} declares placeholders, and an organ declares no need`));
|
|
219
|
+
kit.turns.take((next) => {
|
|
220
|
+
const ended = endingTurn(next);
|
|
221
|
+
const why =
|
|
222
|
+
refusalOver(kit.map(), added.id, blueprint.name) ??
|
|
223
|
+
(added.id === NETWORK && kit.gear.releasesNetwork !== true
|
|
224
|
+
? "this host's carriers stand in the organism's own process, and have no host half to release"
|
|
225
|
+
: null);
|
|
226
|
+
if (why !== null) return ended(refused(why), settled);
|
|
227
|
+
admitting(kit, organsWith(kit, added.id, added), (refusal) => {
|
|
228
|
+
if (refusal !== null) return ended(refused(refusal), settled);
|
|
229
|
+
whenRemoved(kit.removals, added.half.digest, () => {
|
|
230
|
+
const back = backOf(kit.gear.cells(), added);
|
|
231
|
+
kit.change(addChange(kit, added, blueprint, back), (answer) => ended(answer, done), joined);
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
export const removeOrgan = (kit , args , settled , done , joined ) => {
|
|
238
|
+
const id = textAt(args, 'id');
|
|
239
|
+
kit.turns.take((next) => {
|
|
240
|
+
const ended = endingTurn(next);
|
|
241
|
+
const why = refusalOver(kit.map(), id, null);
|
|
242
|
+
if (why !== null) return ended(refused(why), settled);
|
|
243
|
+
admitting(kit, organsWith(kit, id, null), (refusal) => {
|
|
244
|
+
if (refusal !== null) return ended(refused(refusal), settled);
|
|
245
|
+
kit.change(removeChange(kit, id), (answer) => ended(answer, done), joined);
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { CodecSeam, Configuration, CryptoSeam } from '#seams';
|
|
2
|
+
import { type Data } from '#standard';
|
|
3
|
+
import { type Cells } from '#cage';
|
|
4
|
+
export type HalfNamed = {
|
|
5
|
+
readonly form: 'component' | 'native';
|
|
6
|
+
readonly digest: string;
|
|
7
|
+
};
|
|
8
|
+
export type Added = {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly reach: Data;
|
|
11
|
+
readonly half: HalfNamed;
|
|
12
|
+
readonly blueprint?: Data;
|
|
13
|
+
readonly last?: Left;
|
|
14
|
+
};
|
|
15
|
+
export type Left = Omit<Added, 'id' | 'last'>;
|
|
16
|
+
export declare const organAt: (cells: Cells, id: string) => Added | undefined;
|
|
17
|
+
export declare const dropOrgan: (cells: Cells, id: string) => void;
|
|
18
|
+
export declare const putOrgan: (cells: Cells, added: Added) => void;
|
|
19
|
+
export declare const everyOrgan: (cells: Cells) => readonly Added[];
|
|
20
|
+
export declare const namesHalf: (cells: Cells, digest: string) => boolean;
|
|
21
|
+
export declare const networkConfigured: (configuration: Configuration) => Added | undefined;
|
|
22
|
+
export type Printing = {
|
|
23
|
+
readonly codec: CodecSeam;
|
|
24
|
+
readonly crypto: CryptoSeam;
|
|
25
|
+
readonly configuration: Configuration;
|
|
26
|
+
};
|
|
27
|
+
export declare const fingerprintOf: (printing: Printing, organs: readonly Added[]) => Uint8Array;
|
|
28
|
+
export declare const fingerprintText: (printing: Printing, organs: readonly Added[]) => string;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
|
|
3
|
+
import { hex, isFields, utf8Bytes, } from '#standard';
|
|
4
|
+
import { NETWORK } from '../ids/index.js';
|
|
5
|
+
import { dropRow, putRow, rowAt, rowsIn } from '../cells/index.js';
|
|
6
|
+
import { } from '#cage';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
const broken = (id ) => new Error(`brain: the organ ${id} is not as the brain kept it.`);
|
|
22
|
+
|
|
23
|
+
const leftFrom = (id , value ) => {
|
|
24
|
+
if (!isFields(value) || !isFields(value['half'])) throw broken(id);
|
|
25
|
+
const { form, digest } = value['half'];
|
|
26
|
+
if ((form !== 'component' && form !== 'native') || typeof digest !== 'string') throw broken(id);
|
|
27
|
+
const { blueprint } = value;
|
|
28
|
+
return { reach: value['reach'] ?? null, half: { form, digest }, ...(blueprint === undefined ? {} : { blueprint }) };
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const addedFrom = (id , value ) => {
|
|
32
|
+
const last = isFields(value) ? value['last'] : undefined;
|
|
33
|
+
return { id, ...leftFrom(id, value), ...(last === undefined ? {} : { last: leftFrom(id, last) }) };
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const organAt = (cells , id ) => {
|
|
37
|
+
const found = rowAt(cells, ['organ', id], 'brain');
|
|
38
|
+
return found === undefined ? undefined : addedFrom(id, found);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const dropOrgan = (cells , id ) => {
|
|
42
|
+
const kept = organAt(cells, id);
|
|
43
|
+
if (kept === undefined) return;
|
|
44
|
+
dropRow(cells, ['half', kept.half.digest, id], 'brain');
|
|
45
|
+
if (kept.last !== undefined) dropRow(cells, ['half', kept.last.half.digest, id], 'brain');
|
|
46
|
+
dropRow(cells, ['organ', id], 'brain');
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const rowOf = ({ reach, half, blueprint } ) => ({
|
|
50
|
+
reach,
|
|
51
|
+
half: { form: half.form, digest: half.digest },
|
|
52
|
+
...(blueprint === undefined ? {} : { blueprint }),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export const putOrgan = (cells , added ) => {
|
|
56
|
+
dropOrgan(cells, added.id);
|
|
57
|
+
const { id, reach, half, blueprint, last } = added;
|
|
58
|
+
const kept = {
|
|
59
|
+
...rowOf({ reach, half, ...(blueprint === undefined ? {} : { blueprint }) }),
|
|
60
|
+
...(last === undefined ? {} : { last: rowOf(last) }),
|
|
61
|
+
};
|
|
62
|
+
putRow(cells, ['organ', id], kept, 'brain');
|
|
63
|
+
putRow(cells, ['half', half.digest, id], null, 'brain');
|
|
64
|
+
if (last !== undefined) putRow(cells, ['half', last.half.digest, id], null, 'brain');
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export const everyOrgan = (cells ) =>
|
|
68
|
+
rowsIn(cells, { prefix: ['organ'] }, 'brain').map(({ key, value }) => {
|
|
69
|
+
const id = key[1];
|
|
70
|
+
if (typeof id !== 'string') throw broken(JSON.stringify(key));
|
|
71
|
+
return addedFrom(id, value);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export const namesHalf = (cells , digest ) => {
|
|
75
|
+
const page = cells.range({ prefix: ['half', digest], limit: 1 });
|
|
76
|
+
if ('why' in page) throw new Error(`brain: ${page.why}`);
|
|
77
|
+
return page.cells.length > 0;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const networkConfigured = (configuration ) => {
|
|
81
|
+
const { network } = configuration;
|
|
82
|
+
if (network === undefined) return undefined;
|
|
83
|
+
const { form, digest } = network.half;
|
|
84
|
+
return { id: NETWORK, reach: network.reach, half: { form, digest } };
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
export const fingerprintOf = (printing , organs ) => {
|
|
94
|
+
const halves = Object.fromEntries(organs.map(({ id, half }) => [id, half.digest]));
|
|
95
|
+
const text = printing.codec.text({ configuration: printing.configuration, organs: halves });
|
|
96
|
+
return printing.crypto.sha256(utf8Bytes(text));
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const fingerprintText = (printing , organs ) =>
|
|
100
|
+
hex(fingerprintOf(printing, organs));
|