@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,302 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { error, isFields, readAnswer, result, } from '#standard';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
import { sealedStandingOf } from '../key/index.js';
|
|
6
|
+
import { farNode, mapOf, } from '../map/index.js';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
import { fieldsOf, maybeNumberAt, numberAt, textAt } from './fields.js';
|
|
10
|
+
|
|
11
|
+
import { dropHeld, putHeld, } from './holds.js';
|
|
12
|
+
import { dropGrants, grantedLobes } from './grants.js';
|
|
13
|
+
import { grantBeside, grantTo } from './granting.js';
|
|
14
|
+
import { dropLapse, lapseAt } from './lapses.js';
|
|
15
|
+
import { anchorLost, heardOf, LEAVE } from './silence.js';
|
|
16
|
+
import { noteIn, noteRefusal } from './notes.js';
|
|
17
|
+
import { oweLeft, toldLeft } from './owed.js';
|
|
18
|
+
import { SLACK } from './marks.js';
|
|
19
|
+
import { commit, overdueOn } from './moves.js';
|
|
20
|
+
import { dropWarded, putWarded } from './warded.js';
|
|
21
|
+
import {
|
|
22
|
+
boundAt,
|
|
23
|
+
dropKept,
|
|
24
|
+
endHeld,
|
|
25
|
+
endSent,
|
|
26
|
+
freeFor,
|
|
27
|
+
hold,
|
|
28
|
+
keptAt,
|
|
29
|
+
putBound,
|
|
30
|
+
putKept,
|
|
31
|
+
release,
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
} from './standings.js';
|
|
35
|
+
import { BRAIN, MOUTH } from '../ids/index.js';
|
|
36
|
+
import { askedBy } from './blueprint.js';
|
|
37
|
+
import { ROOM } from '#quo';
|
|
38
|
+
|
|
39
|
+
export { keptAt, standingsOf, } from './standings.js';
|
|
40
|
+
|
|
41
|
+
export const MOUTH_METHODS = askedBy(MOUTH);
|
|
42
|
+
|
|
43
|
+
const QUICK = 200;
|
|
44
|
+
const FIRST_PAUSE = 50;
|
|
45
|
+
const LAST_PAUSE = 1000;
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
const broken = (far , field ) =>
|
|
56
|
+
new Error(`brain: the standing ${far} is not as the brain kept it, in its ${field}.`);
|
|
57
|
+
|
|
58
|
+
export const standingBound = (cells , far ) => {
|
|
59
|
+
const kept = keptAt(cells, far);
|
|
60
|
+
return kept === undefined ? undefined : sealedStandingOf(kept.standing).phase === 'bound';
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
export const standIn = (
|
|
71
|
+
cells ,
|
|
72
|
+
node ,
|
|
73
|
+
placeholder ,
|
|
74
|
+
standed ,
|
|
75
|
+
) => {
|
|
76
|
+
const tooLong = noteRefusal(cells, node, standed.noted.note);
|
|
77
|
+
if (tooLong !== null) return { why: tooLong };
|
|
78
|
+
const holder = mapOf(cells).node(node);
|
|
79
|
+
if (holder === undefined) return { why: `the node ${node} is none` };
|
|
80
|
+
if (holder.kind !== 'lobe') return { why: `the node ${node} is no lobe, and a lobe alone is granted a standing` };
|
|
81
|
+
const far = mapOf(cells).madeUp();
|
|
82
|
+
const added = mapOf(cells).add(farNode(far, 'standing'), {}, {});
|
|
83
|
+
if (added !== null) return { why: added.why };
|
|
84
|
+
putKept(cells, far, standed.kept);
|
|
85
|
+
putWarded(cells, sealedStandingOf(standed.kept.standing).invitation.ward, far);
|
|
86
|
+
putHeld(cells, BRAIN, far, { direction: 'standing', ...standed.held }, standed.noted);
|
|
87
|
+
lapseAt(cells, far, standed.lapses);
|
|
88
|
+
const granted = grantTo(cells, far, { lobe: node, placeholder, note: null });
|
|
89
|
+
if (granted !== null) return { why: granted };
|
|
90
|
+
const shared = grantBeside(cells, far, node, placeholder);
|
|
91
|
+
return shared === null ? { far } : { why: shared };
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const standChange =
|
|
95
|
+
(args , wall ) =>
|
|
96
|
+
(cells) => {
|
|
97
|
+
const standing = args['standing'] ?? null;
|
|
98
|
+
sealedStandingOf(standing);
|
|
99
|
+
const tooLong = noteRefusal(cells, textAt(args, 'node'), noteIn(args));
|
|
100
|
+
if (tooLong !== null) return { answer: error('refused', tooLong) };
|
|
101
|
+
const waits = maybeNumberAt(args, 'waits');
|
|
102
|
+
const lives = maybeNumberAt(args, 'lives');
|
|
103
|
+
const anchor = args['anchor'] === true;
|
|
104
|
+
const stood = standIn(cells, textAt(args, 'node'), textAt(args, 'placeholder'), {
|
|
105
|
+
kept: { standing, at: null },
|
|
106
|
+
held: { lives, anchor },
|
|
107
|
+
noted: { note: noteIn(args), invited: wall },
|
|
108
|
+
lapses: waits === null ? null : wall + waits,
|
|
109
|
+
});
|
|
110
|
+
return { answer: 'why' in stood ? error('refused', stood.why) : result({ far: stood.far }) };
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const STEP = 1000;
|
|
114
|
+
|
|
115
|
+
const keepChange =
|
|
116
|
+
(kit , far , standing ) =>
|
|
117
|
+
(cells) => {
|
|
118
|
+
const { moving, ended, bounds } = kit.standings;
|
|
119
|
+
const waiting = moving.get(far);
|
|
120
|
+
const base = waiting?.record ?? keptAt(cells, far);
|
|
121
|
+
if (base === undefined || ended.has(far))
|
|
122
|
+
return { answer: error('refused', `the far organism ${far} keeps no standing`) };
|
|
123
|
+
const { sent, moved } = sealedStandingOf(standing);
|
|
124
|
+
const kept = sealedStandingOf(base.standing);
|
|
125
|
+
const record = { standing, at: base.at };
|
|
126
|
+
if (kept.phase !== 'bound' || moved !== kept.moved) {
|
|
127
|
+
putKept(cells, far, record);
|
|
128
|
+
if (waiting !== undefined) waiting.record = record;
|
|
129
|
+
}
|
|
130
|
+
if (kept.phase !== 'bound' || sent < (bounds.get(far) ?? 0)) return { answer: result(null) };
|
|
131
|
+
const bound = sent + STEP;
|
|
132
|
+
putBound(cells, far, bound);
|
|
133
|
+
return { answer: result(null), after: () => void bounds.set(far, bound) };
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const below = (kit , far , standing ) => {
|
|
137
|
+
const bound = kit.standings.bounds.get(far);
|
|
138
|
+
const kept = kit.standings.moving.get(far)?.record ?? keptAt(kit.gear.cells(), far);
|
|
139
|
+
if (bound === undefined || kept === undefined) return false;
|
|
140
|
+
const before = sealedStandingOf(kept.standing);
|
|
141
|
+
const next = sealedStandingOf(standing);
|
|
142
|
+
return before.phase === 'bound' && next.moved === before.moved && next.sent < bound;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
const pauseFor = (kit , far , tries , done ) => {
|
|
146
|
+
const { time, timer } = kit.gear;
|
|
147
|
+
const { carrying, ended } = kit.standings;
|
|
148
|
+
const one = carrying.get(far);
|
|
149
|
+
if (one === undefined) return done(error('refused', `the standing ${far} carries no ask`));
|
|
150
|
+
const pause = Math.min(FIRST_PAUSE * 2 ** tries, LAST_PAUSE);
|
|
151
|
+
if (one.deadline - time.steady() - pause <= 0) return done(result({ left: 0 }));
|
|
152
|
+
timer.at(time.steady() + pause, () => {
|
|
153
|
+
if (ended.has(far)) return done(error('unavailable', `the relation of ${far} ended`));
|
|
154
|
+
if (one.ask.sender?.cut === true)
|
|
155
|
+
return done(error('unavailable', `the lobe ${one.ask.from} that sent it was cut off`));
|
|
156
|
+
done(result({ left: one.deadline - time.steady() }));
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export const serveMouth = (kit , method , args , done ) => {
|
|
161
|
+
if (method === 'stand') return kit.change(standChange(args, kit.gear.time.wall()), done);
|
|
162
|
+
const far = textAt(args, 'far');
|
|
163
|
+
if (method === 'pause') return pauseFor(kit, far, numberAt(args, 'tries'), done);
|
|
164
|
+
const standing = args['standing'] ?? null;
|
|
165
|
+
sealedStandingOf(standing);
|
|
166
|
+
if (!kit.standings.flying.has(far)) return done(error('refused', `the standing ${far} carries no ask`));
|
|
167
|
+
const kept = (answer ) => {
|
|
168
|
+
done(answer);
|
|
169
|
+
if ('result' in answer) kit.standings.leaving.get(far)?.();
|
|
170
|
+
};
|
|
171
|
+
if (below(kit, far, standing)) return kept(result(null));
|
|
172
|
+
kit.change(keepChange(kit, far, standing), kept);
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
export const endStanding = (
|
|
176
|
+
kit ,
|
|
177
|
+
cells ,
|
|
178
|
+
map ,
|
|
179
|
+
far ,
|
|
180
|
+
except ,
|
|
181
|
+
) => {
|
|
182
|
+
const lobes = grantedLobes(cells, map, far)
|
|
183
|
+
.filter(({ lobe }) => lobe !== except)
|
|
184
|
+
.map(({ lobe, note }) => ({ lobe, far, note }));
|
|
185
|
+
for (const one of lobes) oweLeft(cells, one);
|
|
186
|
+
const removed = map.remove(far);
|
|
187
|
+
if (removed !== null) throw new Error(`brain: the far organism ${far} is not torn down: ${removed.why}`);
|
|
188
|
+
const kept = keptAt(cells, far);
|
|
189
|
+
if (kept !== undefined) dropWarded(cells, sealedStandingOf(kept.standing).invitation.ward, far);
|
|
190
|
+
dropKept(cells, far);
|
|
191
|
+
dropHeld(cells, BRAIN, far);
|
|
192
|
+
dropGrants(cells, far);
|
|
193
|
+
dropLapse(cells, far);
|
|
194
|
+
const { ended, bounds } = kit.standings;
|
|
195
|
+
ended.add(far);
|
|
196
|
+
bounds.delete(far);
|
|
197
|
+
endHeld(kit, far);
|
|
198
|
+
return () => {
|
|
199
|
+
ended.delete(far);
|
|
200
|
+
for (const one of lobes) toldLeft(kit, one);
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
const floored = (kit , far , standing ) => {
|
|
205
|
+
if (kit.standings.bounds.has(far) || !isFields(standing)) return standing;
|
|
206
|
+
const bound = boundAt(kit.gear.cells(), far);
|
|
207
|
+
return bound > sealedStandingOf(standing).sent ? { ...standing, sent: bound } : standing;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
const carriedOf = (
|
|
211
|
+
far ,
|
|
212
|
+
data ,
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
) => {
|
|
219
|
+
const fields = fieldsOf(data, 'what the mouth carried');
|
|
220
|
+
const kept = fields['standing'] ?? null;
|
|
221
|
+
sealedStandingOf(kept);
|
|
222
|
+
const at = fields['at'] ?? null;
|
|
223
|
+
if (at !== null && !Array.isArray(at)) throw broken(far, 'addresses');
|
|
224
|
+
const read = readAnswer(fields['heard'] ?? null);
|
|
225
|
+
const heard = 'answer' in read ? read.answer : error('unavailable', `the being answered no answer: ${read.why}`);
|
|
226
|
+
return { heard, kept, at, answered: fields['answered'] === true };
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
const carried = (kit , ask ) => {
|
|
230
|
+
const { far, method, args, timeout, done } = ask;
|
|
231
|
+
const { carrying, flying, moving } = kit.standings;
|
|
232
|
+
const kept = moving.get(far)?.record ?? keptAt(kit.gear.cells(), far);
|
|
233
|
+
if (kept === undefined) return done(error('unavailable', `the far organism ${far} keeps no standing`));
|
|
234
|
+
const deadline = kit.gear.time.steady() + timeout;
|
|
235
|
+
const token = flying.set(far, far, deadline + QUICK + SLACK);
|
|
236
|
+
const one = { ask, deadline };
|
|
237
|
+
carrying.set(far, one);
|
|
238
|
+
const handed = { far, standing: floored(kit, far, kept.standing), at: kept.at, method, args, timeout, room: ROOM };
|
|
239
|
+
const next = () => release(kit, far, onward(kit));
|
|
240
|
+
const answered = (answer ) => {
|
|
241
|
+
const read = 'error' in answer ? null : carriedOf(far, answer.result);
|
|
242
|
+
if (carrying.get(far) === one) carrying.delete(far);
|
|
243
|
+
const own = flying.release(far, token);
|
|
244
|
+
if (read === null || !own) done(read === null ? answer : read.heard);
|
|
245
|
+
else {
|
|
246
|
+
const lost = anchorLost(kit.gear.cells(), ask, read.heard);
|
|
247
|
+
const mark = lost ? 'neither' : heardOf(ask, read.heard, read.answered);
|
|
248
|
+
const record = { standing: read.kept, at: read.at };
|
|
249
|
+
commit(kit, { far, record, heard: read.heard, mark }, lost ? endedLost(kit, far, done) : done, onward(kit));
|
|
250
|
+
}
|
|
251
|
+
next();
|
|
252
|
+
};
|
|
253
|
+
kit.gear.carry().ask(BRAIN, MOUTH, 'carry', handed, timeout + QUICK, answered, [], undefined, QUICK);
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
const endedLost =
|
|
257
|
+
(kit , far , done ) =>
|
|
258
|
+
(heard ) => {
|
|
259
|
+
const gone = (cells) =>
|
|
260
|
+
keptAt(cells, far) === undefined
|
|
261
|
+
? { answer: result(null) }
|
|
262
|
+
: {
|
|
263
|
+
answer: result(null),
|
|
264
|
+
after: endStanding(kit, cells, mapOf(cells), far, null),
|
|
265
|
+
};
|
|
266
|
+
kit.change(gone, (answer) => done('error' in answer ? answer : heard));
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
const onward =
|
|
270
|
+
(kit ) =>
|
|
271
|
+
(ask ) =>
|
|
272
|
+
carryStanding(kit, ask);
|
|
273
|
+
|
|
274
|
+
export const carryStanding = (kit , ask ) => {
|
|
275
|
+
if (kit.standings.ended.has(ask.far)) return ask.done(error('unavailable', `the relation of ${ask.far} ended`));
|
|
276
|
+
if (ask.method === LEAVE && ask.from !== BRAIN)
|
|
277
|
+
return ask.done(error('refused', "#leave is the brain's: a standing ends through the mouth's drop"));
|
|
278
|
+
if (overdueOn(kit, ask.far)) release(kit, ask.far, onward(kit));
|
|
279
|
+
if (freeFor(kit.standings, ask.far)) return carried(kit, ask);
|
|
280
|
+
hold(kit, ask);
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
export const holdFree = (kit , far , span ) => {
|
|
284
|
+
if (overdueOn(kit, far)) release(kit, far, onward(kit));
|
|
285
|
+
const { flying } = kit.standings;
|
|
286
|
+
if (!freeFor(kit.standings, far)) return null;
|
|
287
|
+
const token = flying.set(far, far, kit.gear.time.steady() + span);
|
|
288
|
+
return () => {
|
|
289
|
+
if (flying.release(far, token)) release(kit, far, onward(kit));
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
export const sendStanding = (kit , ask ) => {
|
|
294
|
+
const sender = { cut: false };
|
|
295
|
+
carryStanding(kit, { ...ask, sender });
|
|
296
|
+
return {
|
|
297
|
+
end: () => {
|
|
298
|
+
sender.cut = true;
|
|
299
|
+
endSent(kit, ask.far, sender);
|
|
300
|
+
},
|
|
301
|
+
};
|
|
302
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Answer } from '#standard';
|
|
2
|
+
import type { StandingAsk } from '../carry/index.js';
|
|
3
|
+
import type { Kit } from './mouth.js';
|
|
4
|
+
import { type Heard } from './silence.js';
|
|
5
|
+
import { type Kept } from './standings.js';
|
|
6
|
+
export type Onward = (ask: StandingAsk) => void;
|
|
7
|
+
export type Move = {
|
|
8
|
+
readonly far: string;
|
|
9
|
+
readonly record: Kept;
|
|
10
|
+
readonly heard: Answer;
|
|
11
|
+
readonly mark?: Heard;
|
|
12
|
+
};
|
|
13
|
+
export declare const commit: (kit: Kit, move: Move, done: (answer: Answer) => void, onward: Onward) => void;
|
|
14
|
+
export declare const overdueOn: (kit: Kit, far: string) => boolean;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { result, } from '#standard';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
import { markHeard } from './holds.js';
|
|
6
|
+
import { boundIn } from './lapses.js';
|
|
7
|
+
import { countReleased, SLACK } from './marks.js';
|
|
8
|
+
|
|
9
|
+
import { toldSilent, } from './silence.js';
|
|
10
|
+
import { keptAt, putKept, release, } from './standings.js';
|
|
11
|
+
import { BRAIN } from '../ids/index.js';
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
const stands = (kit , cells , far ) =>
|
|
16
|
+
!kit.standings.ended.has(far) && keptAt(cells, far) !== undefined;
|
|
17
|
+
|
|
18
|
+
const movedIn = (cells , far , record , wall , mark ) => {
|
|
19
|
+
putKept(cells, far, record);
|
|
20
|
+
boundIn(cells, far, record, wall);
|
|
21
|
+
return markHeard(cells, BRAIN, far, mark, wall);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const settled = (kit , far , entry , token , onward ) => {
|
|
25
|
+
if (!entry.pending.delete(token) || entry.pending.size > 0 || kit.standings.moving.get(far) !== entry) return;
|
|
26
|
+
kit.standings.moving.delete(far);
|
|
27
|
+
release(kit, far, onward);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const movingSpan = (kit ) => kit.gear.configuration.longestTimeout + SLACK;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
export const commit = (kit , move , done , onward ) => {
|
|
40
|
+
const { far, record, heard, mark = 'neither' } = move;
|
|
41
|
+
const { moving } = kit.standings;
|
|
42
|
+
if (!stands(kit, kit.gear.cells(), far)) return done(heard);
|
|
43
|
+
const wall = kit.gear.time.wall();
|
|
44
|
+
const entry = moving.get(far) ?? { record, pending: new Set (), deadline: 0 };
|
|
45
|
+
const token = {};
|
|
46
|
+
entry.record = record;
|
|
47
|
+
entry.pending.add(token);
|
|
48
|
+
entry.deadline = kit.gear.time.steady() + movingSpan(kit);
|
|
49
|
+
moving.set(far, entry);
|
|
50
|
+
let fell = false;
|
|
51
|
+
kit.change(
|
|
52
|
+
(own) => {
|
|
53
|
+
if (stands(kit, own, far)) fell = movedIn(own, far, record, wall, mark);
|
|
54
|
+
return { answer: result(null) };
|
|
55
|
+
},
|
|
56
|
+
(answer) => {
|
|
57
|
+
settled(kit, far, entry, token, onward);
|
|
58
|
+
kit.rested();
|
|
59
|
+
if (fell && 'result' in answer) toldSilent(kit, far, wall);
|
|
60
|
+
done('error' in answer ? answer : heard);
|
|
61
|
+
},
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const overdueOn = (kit , far ) => {
|
|
66
|
+
const { flying, moving } = kit.standings;
|
|
67
|
+
const now = kit.gear.time.steady();
|
|
68
|
+
let any = false;
|
|
69
|
+
const mark = flying.overdue(far, now);
|
|
70
|
+
if (mark !== undefined && flying.release(far, mark.token)) {
|
|
71
|
+
countReleased(kit.released, far);
|
|
72
|
+
any = true;
|
|
73
|
+
}
|
|
74
|
+
const entry = moving.get(far);
|
|
75
|
+
if (entry !== undefined && entry.deadline <= now) {
|
|
76
|
+
countReleased(kit.released, far);
|
|
77
|
+
moving.delete(far);
|
|
78
|
+
any = true;
|
|
79
|
+
}
|
|
80
|
+
return any;
|
|
81
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Blueprint, type Answer, type Data, type Fields } from '#standard';
|
|
2
|
+
import type { Cells } from '#cage';
|
|
3
|
+
import { type GraphMap, type Order } from '../map/index.js';
|
|
4
|
+
import type { Change } from './changes.js';
|
|
5
|
+
import type { Level } from './reflex.js';
|
|
6
|
+
import { type Counts } from './state.js';
|
|
7
|
+
export declare const NERVES_BLUEPRINT: Blueprint;
|
|
8
|
+
export declare const isNervesMethod: (method: string) => boolean;
|
|
9
|
+
export declare const nervesRefusal: (method: string, args: Data) => string | null;
|
|
10
|
+
export declare const orderOf: (fields: Fields) => Order;
|
|
11
|
+
export declare const readOf: (cells: Cells, map: GraphMap, counts: Counts, lobe: string, method: string, args: Data, level: () => Level) => Answer | undefined;
|
|
12
|
+
export declare const nervesChange: (lobe: string, method: 'order' | 'unwire', args: Fields, asked: string | null) => Change;
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import {
|
|
3
|
+
compileSchema,
|
|
4
|
+
error,
|
|
5
|
+
GENOME_VERSION,
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
result,
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
} from '#standard';
|
|
15
|
+
|
|
16
|
+
import { childrenOf, mapOf, } from '../map/index.js';
|
|
17
|
+
import { CREATE_METHOD } from './assets-method.js';
|
|
18
|
+
import { givenOf } from './given.js';
|
|
19
|
+
import { lobeWordOf } from './limits.js';
|
|
20
|
+
import { anchorOrderRefusal, anchorWireRefusal } from './anchor.js';
|
|
21
|
+
import { count, ORDER, objectOf } from './schemas.js';
|
|
22
|
+
|
|
23
|
+
import { fieldsOf, numberAt, recordAt, textAt } from './fields.js';
|
|
24
|
+
import { everyHeld, heldOf, holdsOf } from './holds.js';
|
|
25
|
+
import { grantedFars, grantNote, mergedNote } from './grants.js';
|
|
26
|
+
import { BRAIN } from '../ids/index.js';
|
|
27
|
+
|
|
28
|
+
import { statusOf, } from './state.js';
|
|
29
|
+
|
|
30
|
+
const compiled = (schema ) => {
|
|
31
|
+
const found = compileSchema(schema);
|
|
32
|
+
if ('why' in found) throw new Error(`brain: the args of nerves: ${found.why}`);
|
|
33
|
+
return found.schema;
|
|
34
|
+
};
|
|
35
|
+
const NERVES_METHODS = {
|
|
36
|
+
read: {
|
|
37
|
+
description:
|
|
38
|
+
'Every placeholder the node holds, with what it expects, its wire, its time to live and the status of the termination it reaches.',
|
|
39
|
+
args: objectOf({}),
|
|
40
|
+
},
|
|
41
|
+
order: {
|
|
42
|
+
description: 'Wires a placeholder of the node to a termination.',
|
|
43
|
+
args: objectOf({ order: ORDER }, ['order']),
|
|
44
|
+
},
|
|
45
|
+
unwire: {
|
|
46
|
+
description: 'Ends the wire of a placeholder of the node.',
|
|
47
|
+
args: objectOf({ placeholder: { type: 'string', minLength: 1 } }, ['placeholder']),
|
|
48
|
+
},
|
|
49
|
+
relations: {
|
|
50
|
+
description:
|
|
51
|
+
"A page of at most 100 of the ends the node gave or is granted, in the order of their far organisms, each with its side (`occupant` or `standing`), the placeholder the node reaches it by (null for one given), the status it reaches and its note: the node's own note merged over the brain's, which only the node itself and the owners read. The cursor is the last far organism of the page, null on the last.",
|
|
52
|
+
args: objectOf({ cursor: { type: 'string', minLength: 1 } }),
|
|
53
|
+
},
|
|
54
|
+
relation: {
|
|
55
|
+
description:
|
|
56
|
+
'Whether an asker is far: the end the node gave or is granted of it, with its side, placeholder, status and merged note, or null.',
|
|
57
|
+
args: objectOf({ far: { type: 'string', minLength: 1 } }, ['far']),
|
|
58
|
+
},
|
|
59
|
+
hand: {
|
|
60
|
+
description:
|
|
61
|
+
'Hands a standing the node is granted addresses its far organism may be reached at, tried first from its next ask. Write-only: no lobe reads where a standing is reached. `busy` while an ask flies on it.',
|
|
62
|
+
args: objectOf(
|
|
63
|
+
{ far: { type: 'string', minLength: 1 }, at: { type: 'array', items: { type: 'string', minLength: 1 } } },
|
|
64
|
+
['far', 'at'],
|
|
65
|
+
),
|
|
66
|
+
},
|
|
67
|
+
note: {
|
|
68
|
+
description:
|
|
69
|
+
"Writes the node's own note on an end it gave or is granted, free data of at most 4 KiB as its canonical text by default, bounded as every note is, and never a secret; null names none. It is committed in the batch of the answer. Refused for a far organism the node holds no standing of.",
|
|
70
|
+
args: objectOf({ far: { type: 'string', minLength: 1 }, note: {} }, ['far', 'note']),
|
|
71
|
+
},
|
|
72
|
+
create: {
|
|
73
|
+
...CREATE_METHOD,
|
|
74
|
+
description:
|
|
75
|
+
"Makes a lobe on a faculty the library keeps, the node's child: its wiring and its own orders reach only the node, the brain's objects and what the node reaches by its other placeholders, and it is no organ's skin lobe.",
|
|
76
|
+
},
|
|
77
|
+
version: {
|
|
78
|
+
description:
|
|
79
|
+
'Moves a child of the node to another version of its faculty, as `brain` moves a lobe, its `migrate` converting its cells; refused for any lobe but its own child.',
|
|
80
|
+
args: objectOf(
|
|
81
|
+
{
|
|
82
|
+
lobe: { type: 'string', minLength: 1 },
|
|
83
|
+
faculty: { type: 'string', minLength: 1 },
|
|
84
|
+
settled: { type: 'boolean' },
|
|
85
|
+
},
|
|
86
|
+
['lobe', 'faculty'],
|
|
87
|
+
),
|
|
88
|
+
},
|
|
89
|
+
settle: {
|
|
90
|
+
irreversible: 'lobe',
|
|
91
|
+
description: "Ends a child's step back, as `brain` settles a lobe; refused for any lobe but its own child.",
|
|
92
|
+
args: objectOf({ lobe: { type: 'string', minLength: 1 } }, ['lobe']),
|
|
93
|
+
},
|
|
94
|
+
tearDown: {
|
|
95
|
+
irreversible: 'lobe',
|
|
96
|
+
description:
|
|
97
|
+
'Tears a child of the node down, as `brain` tears a lobe down; refused for any lobe but its own child.',
|
|
98
|
+
args: objectOf({ lobe: { type: 'string', minLength: 1 } }, ['lobe']),
|
|
99
|
+
},
|
|
100
|
+
children: {
|
|
101
|
+
description: 'The children of the node, in the order of their IDs.',
|
|
102
|
+
args: objectOf({}),
|
|
103
|
+
},
|
|
104
|
+
assets: {
|
|
105
|
+
description:
|
|
106
|
+
'The assets of the faculty the node stands on, read of the library on its behalf, `{digest, source, assets}`: the faculty’s digest and source, and each asset its path and digest and its text, or its bytes as base64 where they are no text. A faculty that carries none answers an empty list.',
|
|
107
|
+
args: objectOf({}),
|
|
108
|
+
},
|
|
109
|
+
given: {
|
|
110
|
+
description:
|
|
111
|
+
"What the port gave the node, a skin lobe, by name: each `{digest, settings}`, the faculty kept in the library on the skin's road and the settings the port named beside it; `{}` where it gave nothing.",
|
|
112
|
+
args: objectOf({}),
|
|
113
|
+
},
|
|
114
|
+
level: {
|
|
115
|
+
description: "The organism's level, as the brain took it from the vitals: `well` or `sick`.",
|
|
116
|
+
args: objectOf({}),
|
|
117
|
+
},
|
|
118
|
+
limit: {
|
|
119
|
+
description:
|
|
120
|
+
"An owner's word over the bound of the node `name` names, its own or every lobe's: the count, the most the host's numbers hold where it is lifted, or null where none stands and the default holds.",
|
|
121
|
+
args: objectOf({ name: { type: 'string', minLength: 1 } }, ['name']),
|
|
122
|
+
},
|
|
123
|
+
wait: {
|
|
124
|
+
description:
|
|
125
|
+
'Answers null once `ms` milliseconds have passed on the steady clock, or `timeout` where the ask’s own timeout passes first. The run waits as on any ask: it keeps its place in its lobe’s queue and spends none of its budget.',
|
|
126
|
+
args: objectOf({ ms: count }, ['ms']),
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export const NERVES_BLUEPRINT = {
|
|
131
|
+
name: 'nervur.nerves',
|
|
132
|
+
version: GENOME_VERSION,
|
|
133
|
+
description:
|
|
134
|
+
"A node's own wiring: its placeholders, their wires and the relations it holds; the organism's level; and a wait of a span.",
|
|
135
|
+
methods: NERVES_METHODS,
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
const NERVES_ARGS = new Map(
|
|
139
|
+
Object.entries(NERVES_METHODS).map(([method, { args }]) => [method, compiled(args ?? {})]),
|
|
140
|
+
);
|
|
141
|
+
|
|
142
|
+
const RELATIONS_PAGE = 100;
|
|
143
|
+
|
|
144
|
+
export const isNervesMethod = (method ) => NERVES_ARGS.has(method);
|
|
145
|
+
|
|
146
|
+
export const nervesRefusal = (method , args ) => {
|
|
147
|
+
const schema = NERVES_ARGS.get(method);
|
|
148
|
+
return schema === undefined ? `nerves answers no ${method}` : schema.admits(args, `the args of nerves.${method}`);
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export const orderOf = (fields ) => ({
|
|
152
|
+
termination: textAt(fields, 'termination'),
|
|
153
|
+
...(fields['placeholder'] === undefined ? {} : { placeholder: textAt(fields, 'placeholder') }),
|
|
154
|
+
until: fields['until'] === undefined ? null : numberAt(fields, 'until'),
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
const readNerves = (map , counts , lobe ) =>
|
|
158
|
+
result(
|
|
159
|
+
map.placeholders(lobe).map((placeholder) => {
|
|
160
|
+
const wire = map.wire(lobe, placeholder.id);
|
|
161
|
+
return {
|
|
162
|
+
placeholder: placeholder.id,
|
|
163
|
+
expects: placeholder.expects,
|
|
164
|
+
termination: wire?.termination ?? null,
|
|
165
|
+
until: wire?.until ?? null,
|
|
166
|
+
status: wire === undefined ? 'unavailable' : statusOf(map, counts, wire.termination),
|
|
167
|
+
};
|
|
168
|
+
}),
|
|
169
|
+
);
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
const brokenStanding = (far ) => new Error(`brain: the standing ${far} has no row.`);
|
|
179
|
+
|
|
180
|
+
const readingOf = (cells , map , lobe , far ) => {
|
|
181
|
+
const given = heldOf(cells, lobe, far);
|
|
182
|
+
if (given !== undefined) return { far, side: 'occupant', placeholder: null, note: given.note };
|
|
183
|
+
const wire = map.reaching(far).find((one) => one.node === lobe);
|
|
184
|
+
if (wire === undefined || map.node(far)?.direction !== 'standing') return undefined;
|
|
185
|
+
const held = heldOf(cells, BRAIN, far);
|
|
186
|
+
if (held === undefined) throw brokenStanding(far);
|
|
187
|
+
return {
|
|
188
|
+
far,
|
|
189
|
+
side: 'standing',
|
|
190
|
+
placeholder: wire.placeholder,
|
|
191
|
+
note: mergedNote(held.note, grantNote(cells, far, lobe) ?? null),
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
const shown = (map , counts , reading ) => ({
|
|
196
|
+
far: reading.far,
|
|
197
|
+
side: reading.side,
|
|
198
|
+
placeholder: reading.placeholder,
|
|
199
|
+
status: statusOf(map, counts, reading.far),
|
|
200
|
+
note: reading.note,
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
const readRelations = (cells , map , counts , lobe , args ) => {
|
|
204
|
+
const cursor = args['cursor'] === undefined ? undefined : textAt(args, 'cursor');
|
|
205
|
+
const fars = [...everyHeld(cells, lobe).map(({ far }) => far), ...grantedFars(map, lobe)].toSorted();
|
|
206
|
+
const after = fars.filter((far) => cursor === undefined || far > cursor);
|
|
207
|
+
const page = after.slice(0, RELATIONS_PAGE);
|
|
208
|
+
const last = page.at(-1);
|
|
209
|
+
return result({
|
|
210
|
+
relations: page.flatMap((far) => {
|
|
211
|
+
const reading = readingOf(cells, map, lobe, far);
|
|
212
|
+
return reading === undefined ? [] : [shown(map, counts, reading)];
|
|
213
|
+
}),
|
|
214
|
+
cursor: after.length > RELATIONS_PAGE && last !== undefined ? last : null,
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
const readRelation = (cells , map , counts , lobe , args ) => {
|
|
219
|
+
const reading = readingOf(cells, map, lobe, textAt(args, 'far'));
|
|
220
|
+
return result(reading === undefined ? null : shown(map, counts, reading));
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
export const readOf = (
|
|
224
|
+
cells ,
|
|
225
|
+
map ,
|
|
226
|
+
counts ,
|
|
227
|
+
lobe ,
|
|
228
|
+
method ,
|
|
229
|
+
args ,
|
|
230
|
+
level ,
|
|
231
|
+
) => {
|
|
232
|
+
if (method === 'read') return readNerves(map, counts, lobe);
|
|
233
|
+
if (method === 'level') return result(level());
|
|
234
|
+
if (method === 'children') return result([...childrenOf(cells, lobe)]);
|
|
235
|
+
if (method === 'given') return result(givenOf(cells, lobe));
|
|
236
|
+
if (method === 'limit') return lobeWordOf(cells, textAt(fieldsOf(args, 'args'), 'name'), lobe);
|
|
237
|
+
if (method !== 'relations' && method !== 'relation') return undefined;
|
|
238
|
+
const read = method === 'relation' ? readRelation : readRelations;
|
|
239
|
+
return read(cells, map, counts, lobe, fieldsOf(args, 'args'));
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
const refused = (why ) => ({
|
|
243
|
+
answer: error('refused', why),
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
export const nervesChange =
|
|
247
|
+
(lobe , method , args , asked ) =>
|
|
248
|
+
(cells) => {
|
|
249
|
+
const map = mapOf(cells, holdsOf(cells));
|
|
250
|
+
if (method === 'order') {
|
|
251
|
+
const order = orderOf(recordAt(args, 'order'));
|
|
252
|
+
const moves = anchorOrderRefusal(cells, map, lobe, order);
|
|
253
|
+
if (moves !== null) return refused(moves);
|
|
254
|
+
const unconnected = map.refusedOwn(lobe, order.termination, asked);
|
|
255
|
+
if (unconnected !== null) return refused(unconnected.why);
|
|
256
|
+
const ordered = map.order(lobe, order, false);
|
|
257
|
+
return 'why' in ordered ? refused(ordered.why) : { answer: result(ordered) };
|
|
258
|
+
}
|
|
259
|
+
const placeholder = textAt(args, 'placeholder');
|
|
260
|
+
const wired = map.wire(lobe, placeholder)?.termination;
|
|
261
|
+
if (wired !== undefined && map.node(wired)?.direction === 'standing')
|
|
262
|
+
return refused(`the wire of ${placeholder} reaches a standing, which the mouth's drop gives up`);
|
|
263
|
+
const leaves = anchorWireRefusal(cells, map, lobe, placeholder);
|
|
264
|
+
if (leaves !== null) return refused(leaves);
|
|
265
|
+
const unwired = map.unwire(lobe, placeholder, false);
|
|
266
|
+
return unwired === null ? { answer: result(null) } : refused(unwired.why);
|
|
267
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Cells } from '#cage';
|
|
2
|
+
export declare const markNextAnchor: (cells: Cells, heir: string, inviter: string) => void;
|
|
3
|
+
export declare const nextInviter: (cells: Cells, heir: string) => string | undefined;
|
|
4
|
+
export declare const isNextAnchor: (cells: Cells, heir: string) => boolean;
|
|
5
|
+
export declare const dropNextAnchor: (cells: Cells, heir: string) => void;
|
|
6
|
+
export declare const nextAnchors: (cells: Cells) => readonly string[];
|