@nervur.org/genome 0.0.0-stage → 0.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +105 -0
- package/README.md +28 -2
- package/SECURITY.md +8 -0
- package/cage/cells/cells.d.ts +25 -0
- package/cage/cells/cells.js +114 -0
- package/cage/cells/index.d.ts +4 -0
- package/cage/cells/index.js +5 -0
- package/cage/cells/over.d.ts +5 -0
- package/cage/cells/over.js +46 -0
- package/cage/cells/range.d.ts +31 -0
- package/cage/cells/range.js +226 -0
- package/cage/cells/reader.d.ts +17 -0
- package/cage/cells/reader.js +20 -0
- package/cage/codec/codec.d.ts +2 -0
- package/cage/codec/codec.js +5 -0
- package/cage/codec/index.d.ts +1 -0
- package/cage/codec/index.js +2 -0
- package/cage/collation/check.d.ts +7 -0
- package/cage/collation/check.js +24 -0
- package/cage/collation/collation.d.ts +9 -0
- package/cage/collation/collation.js +118 -0
- package/cage/collation/index.d.ts +3 -0
- package/cage/collation/index.js +4 -0
- package/cage/collation/order.d.ts +1 -0
- package/cage/collation/order.js +9 -0
- package/cage/fill.d.ts +8 -0
- package/cage/fill.js +30 -0
- package/cage/index.d.ts +6 -0
- package/cage/index.js +78 -0
- package/cage/lobe/apart.d.ts +34 -0
- package/cage/lobe/apart.js +91 -0
- package/cage/lobe/calls.d.ts +8 -0
- package/cage/lobe/calls.js +35 -0
- package/cage/lobe/charges.d.ts +10 -0
- package/cage/lobe/charges.js +42 -0
- package/cage/lobe/decoder.d.ts +15 -0
- package/cage/lobe/decoder.js +159 -0
- package/cage/lobe/host.d.ts +27 -0
- package/cage/lobe/host.js +107 -0
- package/cage/lobe/index.d.ts +7 -0
- package/cage/lobe/index.js +32 -0
- package/cage/lobe/quo.d.ts +3 -0
- package/cage/lobe/quo.js +30 -0
- package/cage/lobe/read.d.ts +11 -0
- package/cage/lobe/read.js +18 -0
- package/cage/lobe/runner.d.ts +45 -0
- package/cage/lobe/runner.js +242 -0
- package/cage/lobe/seams.d.ts +2 -0
- package/cage/lobe/seams.js +124 -0
- package/cage/published.d.ts +1 -0
- package/cage/published.js +27 -0
- package/cage/run/cells.d.ts +9 -0
- package/cage/run/cells.js +80 -0
- package/cage/run/codes.d.ts +19 -0
- package/cage/run/codes.js +101 -0
- package/cage/run/given.d.ts +49 -0
- package/cage/run/given.js +145 -0
- package/cage/run/host.d.ts +13 -0
- package/cage/run/host.js +37 -0
- package/cage/run/index.d.ts +4 -0
- package/cage/run/index.js +5 -0
- package/cage/run/input.d.ts +14 -0
- package/cage/run/input.js +138 -0
- package/cage/run/nest.d.ts +31 -0
- package/cage/run/nest.js +187 -0
- package/cage/run/run.d.ts +12 -0
- package/cage/run/run.js +79 -0
- package/cage/run/suspend.d.ts +14 -0
- package/cage/run/suspend.js +57 -0
- package/contracts/bridge/contract.d.ts +2 -0
- package/contracts/bridge/contract.js +57 -0
- package/contracts/bridge/index.d.ts +1 -0
- package/contracts/bridge/index.js +2 -0
- package/contracts/carriers/contract.d.ts +4 -0
- package/contracts/carriers/contract.js +485 -0
- package/contracts/carriers/index.d.ts +2 -0
- package/contracts/carriers/index.js +3 -0
- package/contracts/carriers/web.d.ts +2 -0
- package/contracts/carriers/web.js +231 -0
- package/contracts/chance/contract.d.ts +2 -0
- package/contracts/chance/contract.js +25 -0
- package/contracts/chance/index.d.ts +1 -0
- package/contracts/chance/index.js +2 -0
- package/contracts/codec/contract.d.ts +2 -0
- package/contracts/codec/contract.js +124 -0
- package/contracts/codec/index.d.ts +1 -0
- package/contracts/codec/index.js +2 -0
- package/contracts/crypto/contract.d.ts +2 -0
- package/contracts/crypto/contract.js +204 -0
- package/contracts/crypto/index.d.ts +1 -0
- package/contracts/crypto/index.js +2 -0
- package/contracts/crypto/mlkem.d.ts +2 -0
- package/contracts/crypto/mlkem.js +21 -0
- package/contracts/crypto/signatures.d.ts +2 -0
- package/contracts/crypto/signatures.js +165 -0
- package/contracts/crypto/vector.d.ts +73 -0
- package/contracts/crypto/vector.js +93 -0
- package/contracts/crypto/vectors.d.ts +2 -0
- package/contracts/crypto/vectors.js +107 -0
- package/contracts/door/contract.d.ts +13 -0
- package/contracts/door/contract.js +94 -0
- package/contracts/door/index.d.ts +1 -0
- package/contracts/door/index.js +2 -0
- package/contracts/engine/contract.d.ts +2 -0
- package/contracts/engine/contract.js +251 -0
- package/contracts/engine/held.d.ts +3 -0
- package/contracts/engine/held.js +52 -0
- package/contracts/engine/index.d.ts +1 -0
- package/contracts/engine/index.js +2 -0
- package/contracts/engine/judge.d.ts +5 -0
- package/contracts/engine/judge.js +28 -0
- package/contracts/engine/sources.d.ts +17 -0
- package/contracts/engine/sources.js +67 -0
- package/contracts/index.d.ts +14 -0
- package/contracts/index.js +15 -0
- package/contracts/lobes/contract.d.ts +8 -0
- package/contracts/lobes/contract.js +186 -0
- package/contracts/lobes/index.d.ts +1 -0
- package/contracts/lobes/index.js +2 -0
- package/contracts/page-layer/contract.d.ts +2 -0
- package/contracts/page-layer/contract.js +218 -0
- package/contracts/page-layer/index.d.ts +1 -0
- package/contracts/page-layer/index.js +2 -0
- package/contracts/queues/contract.d.ts +2 -0
- package/contracts/queues/contract.js +281 -0
- package/contracts/queues/index.d.ts +1 -0
- package/contracts/queues/index.js +2 -0
- package/contracts/queues/steps.d.ts +11 -0
- package/contracts/queues/steps.js +68 -0
- package/contracts/run/contract.d.ts +2 -0
- package/contracts/run/contract.js +151 -0
- package/contracts/run/index.d.ts +1 -0
- package/contracts/run/index.js +2 -0
- package/contracts/run/sources.d.ts +6 -0
- package/contracts/run/sources.js +45 -0
- package/contracts/time/contract.d.ts +2 -0
- package/contracts/time/contract.js +113 -0
- package/contracts/time/index.d.ts +1 -0
- package/contracts/time/index.js +2 -0
- package/contracts/unlocker/contract.d.ts +2 -0
- package/contracts/unlocker/contract.js +25 -0
- package/contracts/unlocker/index.d.ts +1 -0
- package/contracts/unlocker/index.js +2 -0
- package/contracts/vitals/contract.d.ts +2 -0
- package/contracts/vitals/contract.js +50 -0
- package/contracts/vitals/index.d.ts +1 -0
- package/contracts/vitals/index.js +2 -0
- package/docs/authoring.md +1986 -0
- package/docs/changelog.md +17 -0
- package/docs/guide.md +429 -0
- package/engine/bytecode.d.ts +17 -0
- package/engine/bytecode.js +170 -0
- package/engine/context.d.ts +3 -0
- package/engine/context.js +271 -0
- package/engine/decoder.d.ts +10 -0
- package/engine/decoder.js +286 -0
- package/engine/engine.d.ts +21 -0
- package/engine/engine.js +271 -0
- package/engine/heap.d.ts +5 -0
- package/engine/heap.js +47 -0
- package/engine/held.d.ts +8 -0
- package/engine/held.js +32 -0
- package/engine/helpers.d.ts +27 -0
- package/engine/helpers.js +177 -0
- package/engine/host.d.ts +3 -0
- package/engine/host.js +78 -0
- package/engine/index.d.ts +1 -0
- package/engine/index.js +2 -0
- package/engine/loader.d.ts +6 -0
- package/engine/loader.js +72 -0
- package/engine/lock.d.ts +2 -0
- package/engine/lock.js +17 -0
- package/engine/state.d.ts +55 -0
- package/engine/state.js +107 -0
- package/engine/vendor/LICENSE +24 -0
- package/engine/vendor/emscripten-module.d.mts +5 -0
- package/engine/vendor/emscripten-module.mjs +2 -0
- package/engine/vendor/emscripten-module.wasm +0 -0
- package/engine/vendor/index.d.ts +1 -0
- package/engine/vendor/index.js +2 -0
- package/engine/watcher.d.ts +2 -0
- package/engine/watcher.js +4 -0
- package/engine/writer.d.ts +4 -0
- package/engine/writer.js +84 -0
- package/engine/written.d.ts +3 -0
- package/engine/written.js +86 -0
- package/evidence/index.d.ts +2 -0
- package/evidence/index.js +3 -0
- package/evidence/read.d.ts +42 -0
- package/evidence/read.js +210 -0
- package/evidence/replay.d.ts +17 -0
- package/evidence/replay.js +184 -0
- package/faculty/base/faculty.d.ts +24 -0
- package/faculty/base/faculty.js +300 -0
- package/faculty/base/host.d.ts +140 -0
- package/faculty/base/host.js +82 -0
- package/faculty/base/index.d.ts +6 -0
- package/faculty/base/index.js +29 -0
- package/faculty/base/objects.d.ts +82 -0
- package/faculty/base/objects.js +79 -0
- package/faculty/base/run.d.ts +63 -0
- package/faculty/base/run.js +52 -0
- package/faculty/base/source.d.ts +18 -0
- package/faculty/base/source.js +55 -0
- package/faculty/base/text.d.ts +1 -0
- package/faculty/base/text.js +3 -0
- package/faculty/index.d.ts +2 -0
- package/faculty/index.js +52 -0
- package/faculty/nervur-faculty.d.ts +28 -0
- package/faculty/published.d.ts +1 -0
- package/faculty/published.js +34 -0
- package/faculty/read/index.d.ts +1 -0
- package/faculty/read/index.js +15 -0
- package/faculty/read/read.d.ts +32 -0
- package/faculty/read/read.js +109 -0
- package/genome/backup/backup.d.ts +35 -0
- package/genome/backup/backup.js +278 -0
- package/genome/backup/file.d.ts +19 -0
- package/genome/backup/file.js +66 -0
- package/genome/backup/form.d.ts +11 -0
- package/genome/backup/form.js +339 -0
- package/genome/backup/held.d.ts +14 -0
- package/genome/backup/held.js +123 -0
- package/genome/backup/index.d.ts +6 -0
- package/genome/backup/index.js +29 -0
- package/genome/backup/kept.d.ts +117 -0
- package/genome/backup/kept.js +386 -0
- package/genome/backup/named.d.ts +6 -0
- package/genome/backup/named.js +70 -0
- package/genome/boot/anchor.d.ts +4 -0
- package/genome/boot/anchor.js +35 -0
- package/genome/boot/boot.d.ts +33 -0
- package/genome/boot/boot.js +223 -0
- package/genome/boot/channel.d.ts +11 -0
- package/genome/boot/channel.js +32 -0
- package/genome/boot/core.d.ts +17 -0
- package/genome/boot/core.js +80 -0
- package/genome/boot/given.d.ts +15 -0
- package/genome/boot/given.js +59 -0
- package/genome/boot/index.d.ts +5 -0
- package/genome/boot/index.js +6 -0
- package/genome/boot/invitation.d.ts +9 -0
- package/genome/boot/invitation.js +40 -0
- package/genome/boot/moved.d.ts +17 -0
- package/genome/boot/moved.js +133 -0
- package/genome/boot/organs.d.ts +8 -0
- package/genome/boot/organs.js +62 -0
- package/genome/boot/present.d.ts +34 -0
- package/genome/boot/present.js +136 -0
- package/genome/boot/renew.d.ts +13 -0
- package/genome/boot/renew.js +24 -0
- package/genome/boot/shelf.d.ts +16 -0
- package/genome/boot/shelf.js +60 -0
- package/genome/boot/skin.d.ts +14 -0
- package/genome/boot/skin.js +66 -0
- package/genome/brain/accept.d.ts +12 -0
- package/genome/brain/accept.js +120 -0
- package/genome/brain/addresses.d.ts +4 -0
- package/genome/brain/addresses.js +32 -0
- package/genome/brain/anchor.d.ts +22 -0
- package/genome/brain/anchor.js +155 -0
- package/genome/brain/askers.d.ts +5 -0
- package/genome/brain/askers.js +25 -0
- package/genome/brain/assets-method.d.ts +3 -0
- package/genome/brain/assets-method.js +28 -0
- package/genome/brain/assets.d.ts +4 -0
- package/genome/brain/assets.js +61 -0
- package/genome/brain/blueprint.d.ts +5 -0
- package/genome/brain/blueprint.js +528 -0
- package/genome/brain/brain.d.ts +19 -0
- package/genome/brain/brain.js +291 -0
- package/genome/brain/cede.d.ts +7 -0
- package/genome/brain/cede.js +179 -0
- package/genome/brain/changes.d.ts +23 -0
- package/genome/brain/changes.js +91 -0
- package/genome/brain/character.d.ts +8 -0
- package/genome/brain/character.js +55 -0
- package/genome/brain/children.d.ts +7 -0
- package/genome/brain/children.js +37 -0
- package/genome/brain/clock.d.ts +18 -0
- package/genome/brain/clock.js +91 -0
- package/genome/brain/ended.d.ts +3 -0
- package/genome/brain/ended.js +21 -0
- package/genome/brain/ends.d.ts +9 -0
- package/genome/brain/ends.js +109 -0
- package/genome/brain/expiry.d.ts +21 -0
- package/genome/brain/expiry.js +87 -0
- package/genome/brain/faculties.d.ts +16 -0
- package/genome/brain/faculties.js +88 -0
- package/genome/brain/far.d.ts +53 -0
- package/genome/brain/far.js +330 -0
- package/genome/brain/fields.d.ts +1 -0
- package/genome/brain/fields.js +5 -0
- package/genome/brain/genome.d.ts +8 -0
- package/genome/brain/genome.js +46 -0
- package/genome/brain/given.d.ts +4 -0
- package/genome/brain/given.js +15 -0
- package/genome/brain/granting.d.ts +23 -0
- package/genome/brain/granting.js +98 -0
- package/genome/brain/grants.d.ts +20 -0
- package/genome/brain/grants.js +70 -0
- package/genome/brain/guide.d.ts +2 -0
- package/genome/brain/guide.js +5 -0
- package/genome/brain/holds.d.ts +48 -0
- package/genome/brain/holds.js +197 -0
- package/genome/brain/index.d.ts +34 -0
- package/genome/brain/index.js +35 -0
- package/genome/brain/invitations.d.ts +6 -0
- package/genome/brain/invitations.js +80 -0
- package/genome/brain/kept.d.ts +32 -0
- package/genome/brain/kept.js +189 -0
- package/genome/brain/kit.d.ts +85 -0
- package/genome/brain/kit.js +101 -0
- package/genome/brain/landing.d.ts +6 -0
- package/genome/brain/landing.js +45 -0
- package/genome/brain/lapses.d.ts +8 -0
- package/genome/brain/lapses.js +53 -0
- package/genome/brain/letters.d.ts +8 -0
- package/genome/brain/letters.js +67 -0
- package/genome/brain/life.d.ts +24 -0
- package/genome/brain/life.js +205 -0
- package/genome/brain/limits.d.ts +14 -0
- package/genome/brain/limits.js +159 -0
- package/genome/brain/lined.d.ts +23 -0
- package/genome/brain/lined.js +90 -0
- package/genome/brain/marks.d.ts +22 -0
- package/genome/brain/marks.js +47 -0
- package/genome/brain/methods.d.ts +7 -0
- package/genome/brain/methods.js +243 -0
- package/genome/brain/mouth.d.ts +38 -0
- package/genome/brain/mouth.js +302 -0
- package/genome/brain/moves.d.ts +14 -0
- package/genome/brain/moves.js +81 -0
- package/genome/brain/nerves.d.ts +12 -0
- package/genome/brain/nerves.js +267 -0
- package/genome/brain/next.d.ts +6 -0
- package/genome/brain/next.js +25 -0
- package/genome/brain/notes.d.ts +9 -0
- package/genome/brain/notes.js +73 -0
- package/genome/brain/occupants.d.ts +7 -0
- package/genome/brain/occupants.js +79 -0
- package/genome/brain/old.d.ts +4 -0
- package/genome/brain/old.js +44 -0
- package/genome/brain/organ.d.ts +42 -0
- package/genome/brain/organ.js +248 -0
- package/genome/brain/organs.d.ts +28 -0
- package/genome/brain/organs.js +100 -0
- package/genome/brain/owed.d.ts +30 -0
- package/genome/brain/owed.js +58 -0
- package/genome/brain/owners.d.ts +15 -0
- package/genome/brain/owners.js +112 -0
- package/genome/brain/paged.d.ts +10 -0
- package/genome/brain/paged.js +26 -0
- package/genome/brain/pieces.d.ts +15 -0
- package/genome/brain/pieces.js +74 -0
- package/genome/brain/presence.d.ts +14 -0
- package/genome/brain/presence.js +111 -0
- package/genome/brain/reclaim.d.ts +7 -0
- package/genome/brain/reclaim.js +28 -0
- package/genome/brain/recovery.d.ts +34 -0
- package/genome/brain/recovery.js +165 -0
- package/genome/brain/reference-methods.d.ts +4 -0
- package/genome/brain/reference-methods.js +62 -0
- package/genome/brain/references.d.ts +22 -0
- package/genome/brain/references.js +128 -0
- package/genome/brain/reflex.d.ts +19 -0
- package/genome/brain/reflex.js +64 -0
- package/genome/brain/relations.d.ts +61 -0
- package/genome/brain/relations.js +320 -0
- package/genome/brain/road.d.ts +3 -0
- package/genome/brain/road.js +30 -0
- package/genome/brain/roll.d.ts +27 -0
- package/genome/brain/roll.js +144 -0
- package/genome/brain/schemas.d.ts +23 -0
- package/genome/brain/schemas.js +296 -0
- package/genome/brain/silence.d.ts +9 -0
- package/genome/brain/silence.js +30 -0
- package/genome/brain/space.d.ts +17 -0
- package/genome/brain/space.js +70 -0
- package/genome/brain/standing-methods.d.ts +4 -0
- package/genome/brain/standing-methods.js +78 -0
- package/genome/brain/standings.d.ts +57 -0
- package/genome/brain/standings.js +161 -0
- package/genome/brain/state.d.ts +66 -0
- package/genome/brain/state.js +322 -0
- package/genome/brain/still.d.ts +33 -0
- package/genome/brain/still.js +84 -0
- package/genome/brain/switch.d.ts +6 -0
- package/genome/brain/switch.js +24 -0
- package/genome/brain/tear.d.ts +14 -0
- package/genome/brain/tear.js +114 -0
- package/genome/brain/toward.d.ts +3 -0
- package/genome/brain/toward.js +21 -0
- package/genome/brain/upgrade.d.ts +3 -0
- package/genome/brain/upgrade.js +18 -0
- package/genome/brain/uses.d.ts +12 -0
- package/genome/brain/uses.js +62 -0
- package/genome/brain/version.d.ts +33 -0
- package/genome/brain/version.js +405 -0
- package/genome/brain/waiting.d.ts +3 -0
- package/genome/brain/waiting.js +27 -0
- package/genome/brain/wake.d.ts +26 -0
- package/genome/brain/wake.js +112 -0
- package/genome/brain/warded.d.ts +7 -0
- package/genome/brain/warded.js +67 -0
- package/genome/brain/wards.d.ts +14 -0
- package/genome/brain/wards.js +52 -0
- package/genome/brain/whole.d.ts +3 -0
- package/genome/brain/whole.js +136 -0
- package/genome/bridge/again.d.ts +9 -0
- package/genome/bridge/again.js +111 -0
- package/genome/bridge/carried.d.ts +10 -0
- package/genome/bridge/carried.js +165 -0
- package/genome/bridge/frames.d.ts +3 -0
- package/genome/bridge/frames.js +7 -0
- package/genome/bridge/gear.d.ts +19 -0
- package/genome/bridge/gear.js +26 -0
- package/genome/bridge/half.d.ts +12 -0
- package/genome/bridge/half.js +144 -0
- package/genome/bridge/index.d.ts +4 -0
- package/genome/bridge/index.js +5 -0
- package/genome/cache/cache.d.ts +20 -0
- package/genome/cache/cache.js +213 -0
- package/genome/cache/index.d.ts +3 -0
- package/genome/cache/index.js +4 -0
- package/genome/cache/snapshot.d.ts +17 -0
- package/genome/cache/snapshot.js +164 -0
- package/genome/cache/spaces.d.ts +14 -0
- package/genome/cache/spaces.js +91 -0
- package/genome/cage/index.d.ts +2 -0
- package/genome/cage/index.js +3 -0
- package/genome/cage/output.d.ts +3 -0
- package/genome/cage/output.js +75 -0
- package/genome/cage/reader.d.ts +10 -0
- package/genome/cage/reader.js +65 -0
- package/genome/cage/runner.d.ts +5 -0
- package/genome/cage/runner.js +157 -0
- package/genome/carry/apart.d.ts +24 -0
- package/genome/carry/apart.js +170 -0
- package/genome/carry/before.d.ts +22 -0
- package/genome/carry/before.js +86 -0
- package/genome/carry/carry.d.ts +6 -0
- package/genome/carry/carry.js +447 -0
- package/genome/carry/count.d.ts +72 -0
- package/genome/carry/count.js +142 -0
- package/genome/carry/dead.d.ts +17 -0
- package/genome/carry/dead.js +53 -0
- package/genome/carry/disconnect.d.ts +3 -0
- package/genome/carry/disconnect.js +21 -0
- package/genome/carry/durable.d.ts +36 -0
- package/genome/carry/durable.js +148 -0
- package/genome/carry/flight.d.ts +50 -0
- package/genome/carry/flight.js +338 -0
- package/genome/carry/flush.d.ts +12 -0
- package/genome/carry/flush.js +37 -0
- package/genome/carry/gear.d.ts +91 -0
- package/genome/carry/gear.js +164 -0
- package/genome/carry/held.d.ts +66 -0
- package/genome/carry/held.js +174 -0
- package/genome/carry/index.d.ts +15 -0
- package/genome/carry/index.js +38 -0
- package/genome/carry/letters.d.ts +31 -0
- package/genome/carry/letters.js +222 -0
- package/genome/carry/moving.d.ts +21 -0
- package/genome/carry/moving.js +179 -0
- package/genome/carry/organ.d.ts +25 -0
- package/genome/carry/organ.js +97 -0
- package/genome/carry/read.d.ts +4 -0
- package/genome/carry/read.js +24 -0
- package/genome/carry/ready.d.ts +26 -0
- package/genome/carry/ready.js +78 -0
- package/genome/carry/run.d.ts +22 -0
- package/genome/carry/run.js +146 -0
- package/genome/carry/shown.d.ts +4 -0
- package/genome/carry/shown.js +66 -0
- package/genome/carry/sick.d.ts +5 -0
- package/genome/carry/sick.js +37 -0
- package/genome/carry/span.d.ts +1 -0
- package/genome/carry/span.js +3 -0
- package/genome/carry/stamp.d.ts +3 -0
- package/genome/carry/stamp.js +19 -0
- package/genome/carry/standing.d.ts +7 -0
- package/genome/carry/standing.js +37 -0
- package/genome/carry/status.d.ts +12 -0
- package/genome/carry/status.js +36 -0
- package/genome/carry/still.d.ts +29 -0
- package/genome/carry/still.js +76 -0
- package/genome/carry/trace.d.ts +8 -0
- package/genome/carry/trace.js +24 -0
- package/genome/carry/waits.d.ts +20 -0
- package/genome/carry/waits.js +138 -0
- package/genome/carry/wire.d.ts +23 -0
- package/genome/carry/wire.js +47 -0
- package/genome/carry/words.d.ts +1 -0
- package/genome/carry/words.js +3 -0
- package/genome/carry/zero.d.ts +6 -0
- package/genome/carry/zero.js +27 -0
- package/genome/cells/digest.d.ts +8 -0
- package/genome/cells/digest.js +86 -0
- package/genome/cells/index.d.ts +2 -0
- package/genome/cells/index.js +15 -0
- package/genome/cells/rows.d.ts +18 -0
- package/genome/cells/rows.js +63 -0
- package/genome/cells/sum.d.ts +6 -0
- package/genome/cells/sum.js +35 -0
- package/genome/commits/commits.d.ts +20 -0
- package/genome/commits/commits.js +77 -0
- package/genome/commits/index.d.ts +1 -0
- package/genome/commits/index.js +2 -0
- package/genome/configuration/configuration.d.ts +2 -0
- package/genome/configuration/configuration.js +98 -0
- package/genome/configuration/index.d.ts +1 -0
- package/genome/configuration/index.js +2 -0
- package/genome/defaults/index.d.ts +4 -0
- package/genome/defaults/index.js +12 -0
- package/genome/entry/entry.d.ts +4 -0
- package/genome/entry/entry.js +27 -0
- package/genome/entry/halves.d.ts +6 -0
- package/genome/entry/halves.js +52 -0
- package/genome/entry/index.d.ts +2 -0
- package/genome/entry/index.js +3 -0
- package/genome/faculties/defaults/index.d.ts +5 -0
- package/genome/faculties/defaults/index.js +11 -0
- package/genome/faculties/ear/blueprint.d.ts +2 -0
- package/genome/faculties/ear/blueprint.js +254 -0
- package/genome/faculties/ear/ear.d.ts +18 -0
- package/genome/faculties/ear/ear.js +775 -0
- package/genome/faculties/ear/index.d.ts +2 -0
- package/genome/faculties/ear/index.js +3 -0
- package/genome/faculties/ear/source.d.ts +1 -0
- package/genome/faculties/ear/source.js +5 -0
- package/genome/faculties/ear/text.d.ts +1 -0
- package/genome/faculties/ear/text.js +3 -0
- package/genome/faculties/library/blueprint.d.ts +2 -0
- package/genome/faculties/library/blueprint.js +271 -0
- package/genome/faculties/library/index.d.ts +4 -0
- package/genome/faculties/library/index.js +5 -0
- package/genome/faculties/library/library.d.ts +26 -0
- package/genome/faculties/library/library.js +1227 -0
- package/genome/faculties/library/shelf.d.ts +15 -0
- package/genome/faculties/library/shelf.js +20 -0
- package/genome/faculties/library/source.d.ts +1 -0
- package/genome/faculties/library/source.js +5 -0
- package/genome/faculties/library/text.d.ts +1 -0
- package/genome/faculties/library/text.js +3 -0
- package/genome/faculties/mouth/blueprint.d.ts +2 -0
- package/genome/faculties/mouth/blueprint.js +171 -0
- package/genome/faculties/mouth/index.d.ts +2 -0
- package/genome/faculties/mouth/index.js +3 -0
- package/genome/faculties/mouth/mouth.d.ts +16 -0
- package/genome/faculties/mouth/mouth.js +543 -0
- package/genome/faculties/mouth/source.d.ts +1 -0
- package/genome/faculties/mouth/source.js +5 -0
- package/genome/faculties/mouth/text.d.ts +1 -0
- package/genome/faculties/mouth/text.js +3 -0
- package/genome/faculties/scheduler/blueprint.d.ts +2 -0
- package/genome/faculties/scheduler/blueprint.js +92 -0
- package/genome/faculties/scheduler/index.d.ts +2 -0
- package/genome/faculties/scheduler/index.js +3 -0
- package/genome/faculties/scheduler/scheduler.d.ts +13 -0
- package/genome/faculties/scheduler/scheduler.js +253 -0
- package/genome/faculties/scheduler/source.d.ts +1 -0
- package/genome/faculties/scheduler/source.js +5 -0
- package/genome/faculties/scheduler/text.d.ts +1 -0
- package/genome/faculties/scheduler/text.js +3 -0
- package/genome/header/file.d.ts +33 -0
- package/genome/header/file.js +121 -0
- package/genome/header/header.d.ts +11 -0
- package/genome/header/header.js +86 -0
- package/genome/header/index.d.ts +2 -0
- package/genome/header/index.js +19 -0
- package/genome/ids/ids.d.ts +11 -0
- package/genome/ids/ids.js +23 -0
- package/genome/ids/index.d.ts +1 -0
- package/genome/ids/index.js +2 -0
- package/genome/index.d.ts +11 -0
- package/genome/index.js +32 -0
- package/genome/key/arrivals.d.ts +7 -0
- package/genome/key/arrivals.js +148 -0
- package/genome/key/asks.d.ts +7 -0
- package/genome/key/asks.js +92 -0
- package/genome/key/blueprint.d.ts +3 -0
- package/genome/key/blueprint.js +149 -0
- package/genome/key/door.d.ts +12 -0
- package/genome/key/door.js +94 -0
- package/genome/key/forms.d.ts +11 -0
- package/genome/key/forms.js +45 -0
- package/genome/key/handed.d.ts +7 -0
- package/genome/key/handed.js +81 -0
- package/genome/key/index.d.ts +9 -0
- package/genome/key/index.js +18 -0
- package/genome/key/key.d.ts +9 -0
- package/genome/key/key.js +34 -0
- package/genome/key/kit.d.ts +27 -0
- package/genome/key/kit.js +85 -0
- package/genome/key/records.d.ts +12 -0
- package/genome/key/records.js +70 -0
- package/genome/key/row.d.ts +4 -0
- package/genome/key/row.js +22 -0
- package/genome/key/shapes.d.ts +54 -0
- package/genome/key/shapes.js +160 -0
- package/genome/key/standing.d.ts +19 -0
- package/genome/key/standing.js +108 -0
- package/genome/log/frame.d.ts +11 -0
- package/genome/log/frame.js +40 -0
- package/genome/log/index.d.ts +3 -0
- package/genome/log/index.js +12 -0
- package/genome/log/open.d.ts +31 -0
- package/genome/log/open.js +243 -0
- package/genome/log/pairs.d.ts +8 -0
- package/genome/log/pairs.js +187 -0
- package/genome/log/record.d.ts +8 -0
- package/genome/log/record.js +72 -0
- package/genome/log/store.d.ts +31 -0
- package/genome/log/store.js +291 -0
- package/genome/map/declare.d.ts +4 -0
- package/genome/map/declare.js +52 -0
- package/genome/map/handler.d.ts +4 -0
- package/genome/map/handler.js +37 -0
- package/genome/map/index.d.ts +8 -0
- package/genome/map/index.js +9 -0
- package/genome/map/kin.d.ts +12 -0
- package/genome/map/kin.js +63 -0
- package/genome/map/map.d.ts +40 -0
- package/genome/map/map.js +217 -0
- package/genome/map/nodes.d.ts +9 -0
- package/genome/map/nodes.js +35 -0
- package/genome/map/off.d.ts +3 -0
- package/genome/map/off.js +10 -0
- package/genome/map/order.d.ts +9 -0
- package/genome/map/order.js +105 -0
- package/genome/map/read.d.ts +4 -0
- package/genome/map/read.js +32 -0
- package/genome/map/remove.d.ts +3 -0
- package/genome/map/remove.js +30 -0
- package/genome/map/rows.d.ts +48 -0
- package/genome/map/rows.js +146 -0
- package/genome/map/skin.d.ts +10 -0
- package/genome/map/skin.js +35 -0
- package/genome/map/stands.d.ts +5 -0
- package/genome/map/stands.js +17 -0
- package/genome/map/unwired.d.ts +7 -0
- package/genome/map/unwired.js +36 -0
- package/genome/map/wires.d.ts +9 -0
- package/genome/map/wires.js +103 -0
- package/genome/network/blueprint.d.ts +4 -0
- package/genome/network/blueprint.js +111 -0
- package/genome/network/index.d.ts +3 -0
- package/genome/network/index.js +4 -0
- package/genome/network/network.d.ts +18 -0
- package/genome/network/network.js +248 -0
- package/genome/network/sent.d.ts +4 -0
- package/genome/network/sent.js +225 -0
- package/genome/network/served.d.ts +4 -0
- package/genome/network/served.js +162 -0
- package/genome/network/still.d.ts +26 -0
- package/genome/network/still.js +46 -0
- package/genome/network/web.d.ts +59 -0
- package/genome/network/web.js +74 -0
- package/genome/organism/body.d.ts +53 -0
- package/genome/organism/body.js +256 -0
- package/genome/organism/halves.d.ts +22 -0
- package/genome/organism/halves.js +181 -0
- package/genome/organism/index.d.ts +5 -0
- package/genome/organism/index.js +6 -0
- package/genome/organism/made.d.ts +73 -0
- package/genome/organism/made.js +416 -0
- package/genome/organism/organism.d.ts +9 -0
- package/genome/organism/organism.js +203 -0
- package/genome/organism/reclaim.d.ts +10 -0
- package/genome/organism/reclaim.js +41 -0
- package/genome/organism/still.d.ts +12 -0
- package/genome/organism/still.js +38 -0
- package/genome/organism/thaw.d.ts +10 -0
- package/genome/organism/thaw.js +23 -0
- package/genome/organism/told.d.ts +10 -0
- package/genome/organism/told.js +140 -0
- package/genome/pages/codes.d.ts +13 -0
- package/genome/pages/codes.js +16 -0
- package/genome/pages/file.d.ts +23 -0
- package/genome/pages/file.js +174 -0
- package/genome/pages/index.d.ts +2 -0
- package/genome/pages/index.js +3 -0
- package/genome/pages/vfs.d.ts +13 -0
- package/genome/pages/vfs.js +186 -0
- package/genome/presence/index.d.ts +1 -0
- package/genome/presence/index.js +2 -0
- package/genome/presence/organs.d.ts +8 -0
- package/genome/presence/organs.js +13 -0
- package/genome/pure/entry.d.ts +16 -0
- package/genome/pure/entry.js +76 -0
- package/genome/pure/frozen.d.ts +9 -0
- package/genome/pure/frozen.js +273 -0
- package/genome/pure/halves.d.ts +8 -0
- package/genome/pure/halves.js +63 -0
- package/genome/pure/index.d.ts +7 -0
- package/genome/pure/index.js +8 -0
- package/genome/queues/index.d.ts +1 -0
- package/genome/queues/index.js +2 -0
- package/genome/queues/queues.d.ts +2 -0
- package/genome/queues/queues.js +210 -0
- package/genome/self/blueprint.d.ts +5 -0
- package/genome/self/blueprint.js +36 -0
- package/genome/self/index.d.ts +2 -0
- package/genome/self/index.js +3 -0
- package/genome/self/self.d.ts +9 -0
- package/genome/self/self.js +49 -0
- package/genome/sqlite/database.d.ts +24 -0
- package/genome/sqlite/database.js +243 -0
- package/genome/sqlite/decoder.d.ts +10 -0
- package/genome/sqlite/decoder.js +92 -0
- package/genome/sqlite/imports.d.ts +9 -0
- package/genome/sqlite/imports.js +93 -0
- package/genome/sqlite/index.d.ts +6 -0
- package/genome/sqlite/index.js +7 -0
- package/genome/sqlite/memory.d.ts +14 -0
- package/genome/sqlite/memory.js +79 -0
- package/genome/sqlite/sqlite.d.ts +30 -0
- package/genome/sqlite/sqlite.js +77 -0
- package/genome/sqlite/table.d.ts +8 -0
- package/genome/sqlite/table.js +66 -0
- package/genome/sqlite/vendor/LICENSE +21 -0
- package/genome/sqlite/vendor/sqlite3.wasm +0 -0
- package/genome/store/held.d.ts +2 -0
- package/genome/store/held.js +41 -0
- package/genome/store/index.d.ts +6 -0
- package/genome/store/index.js +16 -0
- package/genome/store/landing.d.ts +6 -0
- package/genome/store/landing.js +50 -0
- package/genome/store/open.d.ts +38 -0
- package/genome/store/open.js +308 -0
- package/genome/store/outside.d.ts +30 -0
- package/genome/store/outside.js +165 -0
- package/genome/store/reading.d.ts +2 -0
- package/genome/store/reading.js +121 -0
- package/genome/store/rescue.d.ts +15 -0
- package/genome/store/rescue.js +168 -0
- package/genome/store/salvage.d.ts +18 -0
- package/genome/store/salvage.js +158 -0
- package/genome/store/schema.d.ts +17 -0
- package/genome/store/schema.js +77 -0
- package/genome/store/store.d.ts +54 -0
- package/genome/store/store.js +534 -0
- package/genome/store/unwritten.d.ts +2 -0
- package/genome/store/unwritten.js +57 -0
- package/genome/store/witness.d.ts +18 -0
- package/genome/store/witness.js +87 -0
- package/genome/timer/index.d.ts +1 -0
- package/genome/timer/index.js +2 -0
- package/genome/timer/timer.d.ts +10 -0
- package/genome/timer/timer.js +167 -0
- package/kit/brain/organs.d.ts +6 -0
- package/kit/brain/organs.js +33 -0
- package/kit/brain/rig.d.ts +58 -0
- package/kit/brain/rig.js +259 -0
- package/kit/brain/shelf.d.ts +3 -0
- package/kit/brain/shelf.js +42 -0
- package/kit/core/answers.d.ts +7 -0
- package/kit/core/answers.js +23 -0
- package/kit/core/chance.d.ts +4 -0
- package/kit/core/chance.js +18 -0
- package/kit/core/clock.d.ts +8 -0
- package/kit/core/clock.js +39 -0
- package/kit/core/configuration.d.ts +2 -0
- package/kit/core/configuration.js +17 -0
- package/kit/core/data.d.ts +3 -0
- package/kit/core/data.js +41 -0
- package/kit/core/foundation.d.ts +30 -0
- package/kit/core/foundation.js +139 -0
- package/kit/core/held.d.ts +11 -0
- package/kit/core/held.js +82 -0
- package/kit/core/index.d.ts +10 -0
- package/kit/core/index.js +26 -0
- package/kit/core/puppets.d.ts +8 -0
- package/kit/core/puppets.js +17 -0
- package/kit/core/stamp.d.ts +2 -0
- package/kit/core/stamp.js +10 -0
- package/kit/core/wasm.d.ts +3 -0
- package/kit/core/wasm.js +11 -0
- package/kit/faculty/base/rig.d.ts +22 -0
- package/kit/faculty/base/rig.js +97 -0
- package/kit/index.d.ts +11 -0
- package/kit/index.js +22 -0
- package/kit/organism/bakery.d.ts +31 -0
- package/kit/organism/bakery.js +223 -0
- package/kit/organism/carriers.d.ts +25 -0
- package/kit/organism/carriers.js +93 -0
- package/kit/organism/forms.d.ts +10 -0
- package/kit/organism/forms.js +31 -0
- package/kit/organism/heard.d.ts +4 -0
- package/kit/organism/heard.js +42 -0
- package/kit/organism/laid.d.ts +8 -0
- package/kit/organism/laid.js +32 -0
- package/kit/organism/link.d.ts +14 -0
- package/kit/organism/link.js +130 -0
- package/kit/organism/notes.d.ts +2 -0
- package/kit/organism/notes.js +45 -0
- package/kit/organism/peer.d.ts +7 -0
- package/kit/organism/peer.js +34 -0
- package/kit/organism/rig.d.ts +59 -0
- package/kit/organism/rig.js +252 -0
- package/kit/organism/vitals.d.ts +9 -0
- package/kit/organism/vitals.js +44 -0
- package/kit/pages/index.d.ts +1 -0
- package/kit/pages/index.js +2 -0
- package/kit/pages/memory.d.ts +23 -0
- package/kit/pages/memory.js +264 -0
- package/kit/presence/console-half.d.ts +6 -0
- package/kit/presence/console-half.js +27 -0
- package/kit/presence/home.d.ts +33 -0
- package/kit/presence/home.js +192 -0
- package/kit/presence/pipe.d.ts +15 -0
- package/kit/presence/pipe.js +66 -0
- package/kit/presence/screen-half.d.ts +16 -0
- package/kit/presence/screen-half.js +180 -0
- package/kit/presence/skins.d.ts +17 -0
- package/kit/presence/skins.js +99 -0
- package/kit/puppet/boundary.d.ts +11 -0
- package/kit/puppet/boundary.js +103 -0
- package/kit/puppet/class.d.ts +3 -0
- package/kit/puppet/class.js +56 -0
- package/kit/puppet/defaults.d.ts +2 -0
- package/kit/puppet/defaults.js +14 -0
- package/kit/puppet/engine.d.ts +3 -0
- package/kit/puppet/engine.js +50 -0
- package/kit/puppet/index.d.ts +3 -0
- package/kit/puppet/index.js +4 -0
- package/kit/puppet/puppet.d.ts +41 -0
- package/kit/puppet/puppet.js +229 -0
- package/package.json +114 -4
- package/quo/box/box.d.ts +34 -0
- package/quo/box/box.js +137 -0
- package/quo/box/index.d.ts +4 -0
- package/quo/box/index.js +5 -0
- package/quo/box/reply.d.ts +12 -0
- package/quo/box/reply.js +64 -0
- package/quo/box/room.d.ts +3 -0
- package/quo/box/room.js +27 -0
- package/quo/box/sizes.d.ts +7 -0
- package/quo/box/sizes.js +10 -0
- package/quo/crypto/ed25519.d.ts +1 -0
- package/quo/crypto/ed25519.js +44 -0
- package/quo/crypto/index.d.ts +1 -0
- package/quo/crypto/index.js +2 -0
- package/quo/crypto/noble.d.ts +2 -0
- package/quo/crypto/noble.js +46 -0
- package/quo/door/door.d.ts +36 -0
- package/quo/door/door.js +207 -0
- package/quo/door/index.d.ts +2 -0
- package/quo/door/index.js +3 -0
- package/quo/door/occupant.d.ts +17 -0
- package/quo/door/occupant.js +55 -0
- package/quo/door/payload.d.ts +9 -0
- package/quo/door/payload.js +67 -0
- package/quo/frame/frame.d.ts +23 -0
- package/quo/frame/frame.js +160 -0
- package/quo/frame/index.d.ts +1 -0
- package/quo/frame/index.js +2 -0
- package/quo/index.d.ts +7 -0
- package/quo/index.js +55 -0
- package/quo/published.d.ts +1 -0
- package/quo/published.js +51 -0
- package/quo/standing/index.d.ts +3 -0
- package/quo/standing/index.js +4 -0
- package/quo/standing/once.d.ts +14 -0
- package/quo/standing/once.js +66 -0
- package/quo/standing/reading.d.ts +28 -0
- package/quo/standing/reading.js +99 -0
- package/quo/standing/standing.d.ts +44 -0
- package/quo/standing/standing.js +235 -0
- package/quo/value/address.d.ts +2 -0
- package/quo/value/address.js +89 -0
- package/quo/value/fields.d.ts +2 -0
- package/quo/value/fields.js +14 -0
- package/quo/value/index.d.ts +3 -0
- package/quo/value/index.js +4 -0
- package/quo/value/json.d.ts +16 -0
- package/quo/value/json.js +194 -0
- package/quo/ward/index.d.ts +6 -0
- package/quo/ward/index.js +19 -0
- package/quo/ward/invitation.d.ts +16 -0
- package/quo/ward/invitation.js +100 -0
- package/quo/ward/link.d.ts +38 -0
- package/quo/ward/link.js +94 -0
- package/quo/ward/lock.d.ts +1 -0
- package/quo/ward/lock.js +17 -0
- package/quo/ward/qr.d.ts +5 -0
- package/quo/ward/qr.js +279 -0
- package/quo/ward/vouch.d.ts +5 -0
- package/quo/ward/vouch.js +33 -0
- package/quo/ward/ward.d.ts +19 -0
- package/quo/ward/ward.js +63 -0
- package/screen/access.d.ts +32 -0
- package/screen/access.js +40 -0
- package/screen/compose.d.ts +14 -0
- package/screen/compose.js +137 -0
- package/screen/diff.d.ts +19 -0
- package/screen/diff.js +152 -0
- package/screen/digest.d.ts +1 -0
- package/screen/digest.js +60 -0
- package/screen/drawn.d.ts +35 -0
- package/screen/drawn.js +89 -0
- package/screen/fill.d.ts +12 -0
- package/screen/fill.js +91 -0
- package/screen/hydrate.d.ts +14 -0
- package/screen/hydrate.js +67 -0
- package/screen/index.d.ts +15 -0
- package/screen/index.js +26 -0
- package/screen/laid.d.ts +29 -0
- package/screen/laid.js +157 -0
- package/screen/match.d.ts +13 -0
- package/screen/match.js +63 -0
- package/screen/motion.d.ts +18 -0
- package/screen/motion.js +65 -0
- package/screen/press.d.ts +12 -0
- package/screen/press.js +63 -0
- package/screen/region.d.ts +6 -0
- package/screen/region.js +23 -0
- package/screen/route.d.ts +13 -0
- package/screen/route.js +74 -0
- package/screen/screen.d.ts +15 -0
- package/screen/screen.js +55 -0
- package/screen/sheet.d.ts +20 -0
- package/screen/sheet.js +145 -0
- package/screen/told.d.ts +14 -0
- package/screen/told.js +38 -0
- package/seams/bridge/bridge.d.ts +26 -0
- package/seams/bridge/bridge.js +31 -0
- package/seams/bridge/in-process.d.ts +13 -0
- package/seams/bridge/in-process.js +112 -0
- package/seams/bridge/index.d.ts +2 -0
- package/seams/bridge/index.js +3 -0
- package/seams/carriers/carriers.d.ts +112 -0
- package/seams/carriers/carriers.js +315 -0
- package/seams/carriers/index.d.ts +2 -0
- package/seams/carriers/index.js +29 -0
- package/seams/carriers/proof.d.ts +13 -0
- package/seams/carriers/proof.js +45 -0
- package/seams/chance/chance.d.ts +6 -0
- package/seams/chance/chance.js +8 -0
- package/seams/chance/index.d.ts +1 -0
- package/seams/chance/index.js +2 -0
- package/seams/codec/codec.d.ts +12 -0
- package/seams/codec/codec.js +9 -0
- package/seams/codec/index.d.ts +1 -0
- package/seams/codec/index.js +2 -0
- package/seams/contract/bytes.d.ts +1 -0
- package/seams/contract/bytes.js +4 -0
- package/seams/contract/contract.d.ts +10 -0
- package/seams/contract/contract.js +26 -0
- package/seams/contract/index.d.ts +2 -0
- package/seams/contract/index.js +3 -0
- package/seams/crypto/crypto.d.ts +29 -0
- package/seams/crypto/crypto.js +30 -0
- package/seams/crypto/index.d.ts +1 -0
- package/seams/crypto/index.js +2 -0
- package/seams/engine/engine.d.ts +44 -0
- package/seams/engine/engine.js +55 -0
- package/seams/engine/index.d.ts +1 -0
- package/seams/engine/index.js +2 -0
- package/seams/entry/configuration.d.ts +74 -0
- package/seams/entry/configuration.js +81 -0
- package/seams/entry/entry.d.ts +124 -0
- package/seams/entry/entry.js +144 -0
- package/seams/entry/index.d.ts +2 -0
- package/seams/entry/index.js +24 -0
- package/seams/index.d.ts +16 -0
- package/seams/index.js +86 -0
- package/seams/page-layer/index.d.ts +1 -0
- package/seams/page-layer/index.js +2 -0
- package/seams/page-layer/page-layer.d.ts +32 -0
- package/seams/page-layer/page-layer.js +29 -0
- package/seams/published.d.ts +1 -0
- package/seams/published.js +85 -0
- package/seams/queues/index.d.ts +2 -0
- package/seams/queues/index.js +3 -0
- package/seams/queues/queues.d.ts +36 -0
- package/seams/queues/queues.js +50 -0
- package/seams/run/index.d.ts +1 -0
- package/seams/run/index.js +2 -0
- package/seams/run/run.d.ts +7 -0
- package/seams/run/run.js +8 -0
- package/seams/time/index.d.ts +1 -0
- package/seams/time/index.js +2 -0
- package/seams/time/time.d.ts +10 -0
- package/seams/time/time.js +14 -0
- package/seams/unlocker/index.d.ts +1 -0
- package/seams/unlocker/index.js +2 -0
- package/seams/unlocker/unlocker.d.ts +17 -0
- package/seams/unlocker/unlocker.js +15 -0
- package/seams/vitals/index.d.ts +1 -0
- package/seams/vitals/index.js +2 -0
- package/seams/vitals/vitals.d.ts +24 -0
- package/seams/vitals/vitals.js +19 -0
- package/seams/webassembly.d.ts +36 -0
- package/standard/answer/answer.d.ts +16 -0
- package/standard/answer/answer.js +38 -0
- package/standard/answer/index.d.ts +1 -0
- package/standard/answer/index.js +2 -0
- package/standard/blueprint/blueprint.d.ts +21 -0
- package/standard/blueprint/blueprint.js +123 -0
- package/standard/blueprint/index.d.ts +2 -0
- package/standard/blueprint/index.js +3 -0
- package/standard/blueprint/method.d.ts +21 -0
- package/standard/blueprint/method.js +208 -0
- package/standard/data/base64.d.ts +1 -0
- package/standard/data/base64.js +39 -0
- package/standard/data/data.d.ts +10 -0
- package/standard/data/data.js +147 -0
- package/standard/data/fields.d.ts +16 -0
- package/standard/data/fields.js +68 -0
- package/standard/data/guards.d.ts +9 -0
- package/standard/data/guards.js +12 -0
- package/standard/data/hex.d.ts +12 -0
- package/standard/data/hex.js +74 -0
- package/standard/data/index.d.ts +7 -0
- package/standard/data/index.js +8 -0
- package/standard/data/text.d.ts +19 -0
- package/standard/data/text.js +222 -0
- package/standard/data/utf8.d.ts +2 -0
- package/standard/data/utf8.js +85 -0
- package/standard/half/frames.d.ts +10 -0
- package/standard/half/frames.js +115 -0
- package/standard/half/half.d.ts +23 -0
- package/standard/half/half.js +89 -0
- package/standard/half/index.d.ts +2 -0
- package/standard/half/index.js +14 -0
- package/standard/index.d.ts +9 -0
- package/standard/index.js +93 -0
- package/standard/names/blueprint.d.ts +2 -0
- package/standard/names/blueprint.js +18 -0
- package/standard/names/code.d.ts +5 -0
- package/standard/names/code.js +21 -0
- package/standard/names/id.d.ts +3 -0
- package/standard/names/id.js +11 -0
- package/standard/names/index.d.ts +5 -0
- package/standard/names/index.js +6 -0
- package/standard/names/method.d.ts +2 -0
- package/standard/names/method.js +19 -0
- package/standard/names/version.d.ts +1 -0
- package/standard/names/version.js +5 -0
- package/standard/pattern/compile.d.ts +25 -0
- package/standard/pattern/compile.js +153 -0
- package/standard/pattern/index.d.ts +3 -0
- package/standard/pattern/index.js +4 -0
- package/standard/pattern/match.d.ts +2 -0
- package/standard/pattern/match.js +75 -0
- package/standard/pattern/parse.d.ts +39 -0
- package/standard/pattern/parse.js +259 -0
- package/standard/presence.d.ts +5 -0
- package/standard/presence.js +69 -0
- package/standard/published.d.ts +1 -0
- package/standard/published.js +57 -0
- package/standard/schema/admits.d.ts +10 -0
- package/standard/schema/admits.js +189 -0
- package/standard/schema/index.d.ts +3 -0
- package/standard/schema/index.js +4 -0
- package/standard/schema/known.d.ts +2 -0
- package/standard/schema/known.js +23 -0
- package/standard/schema/subset.d.ts +11 -0
- package/standard/schema/subset.js +140 -0
- package/standard/tree/allow.d.ts +22 -0
- package/standard/tree/allow.js +229 -0
- package/standard/tree/check.d.ts +3 -0
- package/standard/tree/check.js +227 -0
- package/standard/tree/forms.d.ts +9 -0
- package/standard/tree/forms.js +121 -0
- package/standard/tree/html.d.ts +11 -0
- package/standard/tree/html.js +59 -0
- package/standard/tree/index.d.ts +6 -0
- package/standard/tree/index.js +46 -0
- package/standard/tree/model.d.ts +7 -0
- package/standard/tree/model.js +58 -0
- package/standard/tree/tree.d.ts +44 -0
- package/standard/tree/tree.js +58 -0
- package/standard/version.d.ts +1 -0
- package/standard/version.js +2 -0
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { dataText } from '#standard';
|
|
3
|
+
|
|
4
|
+
import { heldToALimit, tellsHeld } from './held.js';
|
|
5
|
+
import { answeredWith, compiled, sentence } from './judge.js';
|
|
6
|
+
import {
|
|
7
|
+
CHARGE,
|
|
8
|
+
FILLED,
|
|
9
|
+
GROW,
|
|
10
|
+
HOST,
|
|
11
|
+
METERED,
|
|
12
|
+
NO_HOST,
|
|
13
|
+
NOT_HELD,
|
|
14
|
+
OVER,
|
|
15
|
+
ROOM,
|
|
16
|
+
SHORT,
|
|
17
|
+
SOURCES,
|
|
18
|
+
SPIN,
|
|
19
|
+
TIGHT,
|
|
20
|
+
WAIT,
|
|
21
|
+
WORK,
|
|
22
|
+
} from './sources.js';
|
|
23
|
+
|
|
24
|
+
const inContext = (
|
|
25
|
+
{ engine } ,
|
|
26
|
+
memory ,
|
|
27
|
+
names ,
|
|
28
|
+
host ,
|
|
29
|
+
check ,
|
|
30
|
+
) => {
|
|
31
|
+
const runtime = engine.runtime(memory);
|
|
32
|
+
try {
|
|
33
|
+
const modules = compiled(runtime, names);
|
|
34
|
+
if (typeof modules === 'string') return Promise.resolve(modules);
|
|
35
|
+
const context = runtime.context(modules, host);
|
|
36
|
+
try {
|
|
37
|
+
return Promise.resolve(
|
|
38
|
+
check(
|
|
39
|
+
context,
|
|
40
|
+
() => runtime.context(modules, host),
|
|
41
|
+
(held) => runtime.context(modules, host, held),
|
|
42
|
+
),
|
|
43
|
+
);
|
|
44
|
+
} finally {
|
|
45
|
+
context.dispose();
|
|
46
|
+
}
|
|
47
|
+
} finally {
|
|
48
|
+
runtime.dispose();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const answers = (rig ) =>
|
|
53
|
+
inContext(rig, ROOM, ['answers'], NO_HOST, (context) =>
|
|
54
|
+
answeredWith(context.call('answers', 'sum', { a: 2, b: 3 }, WORK), { total: 5 }),
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
const compileFails = ({ engine } ) => {
|
|
58
|
+
const runtime = engine.runtime(ROOM);
|
|
59
|
+
try {
|
|
60
|
+
const made = runtime.compile('broken', SOURCES['broken'] ?? '');
|
|
61
|
+
if (!('why' in made)) return Promise.resolve('a source that does not compile was compiled');
|
|
62
|
+
return Promise.resolve(made.why === '' ? 'the why of a source that does not compile is empty' : null);
|
|
63
|
+
} finally {
|
|
64
|
+
runtime.dispose();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const imports = (rig ) =>
|
|
69
|
+
inContext(rig, ROOM, ['importer', 'stranger', 'leaf'], NO_HOST, (context) => {
|
|
70
|
+
const given = answeredWith(context.call('importer', 'say', null, WORK), 'leaf');
|
|
71
|
+
if (given !== null) return `an import of a module given: ${given}`;
|
|
72
|
+
const absent = context.call('stranger', 'say', null, WORK);
|
|
73
|
+
return 'threw' in absent ? null : `an import of a name not given ${sentence(absent)}`;
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const holdsNothing = (rig ) =>
|
|
77
|
+
inContext(rig, ROOM, ['bare'], NO_HOST, (context) =>
|
|
78
|
+
answeredWith(context.call('bare', 'reach', null, WORK), NOT_HELD),
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
const sharesNothing = (rig ) =>
|
|
82
|
+
inContext(rig, ROOM, ['globals'], NO_HOST, (first, again) => {
|
|
83
|
+
const set = first.call('globals', 'set', null, WORK);
|
|
84
|
+
if (!('answered' in set)) return `setting a global ${sentence(set)}`;
|
|
85
|
+
const seen = answeredWith(first.call('globals', 'read', null, WORK), 'string');
|
|
86
|
+
if (seen !== null) return `a global set was not read in its own context: ${seen}`;
|
|
87
|
+
const second = again();
|
|
88
|
+
if (typeof second === 'string') return second;
|
|
89
|
+
try {
|
|
90
|
+
const left = answeredWith(second.call('globals', 'read', null, WORK), 'undefined');
|
|
91
|
+
return left === null ? null : `in the next context, ${left}`;
|
|
92
|
+
} finally {
|
|
93
|
+
second.dispose();
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
const hostAnswers = (rig ) =>
|
|
98
|
+
inContext(rig, ROOM, ['hosted'], HOST, (context) => answeredWith(context.call('hosted', 'double', 21, WORK), 42));
|
|
99
|
+
|
|
100
|
+
const hostWaits = (rig ) =>
|
|
101
|
+
inContext(rig, ROOM, ['hosted'], HOST, (context) => {
|
|
102
|
+
const run = context.call('hosted', 'later', 'x', WORK);
|
|
103
|
+
if (!('waiting' in run)) return `a host function answering a wait: the run ${sentence(run)}`;
|
|
104
|
+
if (run.waiting.length !== 1 || run.waiting[0] !== WAIT)
|
|
105
|
+
return `the run ${sentence(run)}, where it was to wait on ${WAIT}`;
|
|
106
|
+
const settled = answeredWith(context.settle(WAIT, 'done', WORK), { got: 'done' });
|
|
107
|
+
return settled === null ? null : `settling the wait: ${settled}`;
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
const interrupts = (rig ) =>
|
|
111
|
+
inContext(rig, ROOM, ['spinner'], NO_HOST, (context) => {
|
|
112
|
+
const run = context.call('spinner', 'spin', null, SPIN);
|
|
113
|
+
if (!('interrupted' in run)) return `a loop with no end ${sentence(run)}`;
|
|
114
|
+
return run.spent >= SPIN ? null : `it was interrupted having spent ${run.spent}, of ${SPIN}`;
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
const bounded = (rig ) =>
|
|
118
|
+
inContext(rig, TIGHT, ['grower', 'answers'], NO_HOST, (grown, again) => {
|
|
119
|
+
const run = grown.call('grower', 'grow', null, GROW);
|
|
120
|
+
if (!('threw' in run)) return `an ask that grew past the memory ${sentence(run)}, where it was to throw`;
|
|
121
|
+
const next = again();
|
|
122
|
+
if (typeof next === 'string') return next;
|
|
123
|
+
try {
|
|
124
|
+
const after = answeredWith(next.call('answers', 'sum', { a: 1, b: 1 }, WORK), { total: 2 });
|
|
125
|
+
return after === null ? null : `the next context of the runtime: ${after}`;
|
|
126
|
+
} finally {
|
|
127
|
+
next.dispose();
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
const throwsMessage = (rig ) =>
|
|
132
|
+
inContext(rig, ROOM, ['thrower'], NO_HOST, (context) => {
|
|
133
|
+
const run = context.call('thrower', 'boom', null, WORK);
|
|
134
|
+
if (!('threw' in run)) return `a throw ${sentence(run)}`;
|
|
135
|
+
return run.threw === 'the message' ? null : `a throw of 'the message' answered '${run.threw}'`;
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
const noDataThrows = (rig ) =>
|
|
139
|
+
inContext(rig, ROOM, ['maker'], NO_HOST, (context) => {
|
|
140
|
+
const run = context.call('maker', 'make', null, WORK);
|
|
141
|
+
return 'threw' in run ? null : `an answer that is a function ${sentence(run)}, where it was to throw`;
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
const charged = (rig ) =>
|
|
145
|
+
inContext(rig, ROOM, ['metered'], METERED, (context) => {
|
|
146
|
+
const run = context.call('metered', 'charged', CHARGE, WORK);
|
|
147
|
+
if (!('answered' in run)) return `a run charged ${CHARGE} ${sentence(run)}`;
|
|
148
|
+
const left = run.answered;
|
|
149
|
+
if (typeof left !== 'number') return `the meter told ${dataText(left)} left`;
|
|
150
|
+
if (run.spent < CHARGE) return `a run charged ${CHARGE} spent ${run.spent}`;
|
|
151
|
+
if (left > WORK - CHARGE || left < WORK - run.spent)
|
|
152
|
+
return `a run of ${WORK} that spent ${run.spent} was told ${left} left`;
|
|
153
|
+
return null;
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
const chargedOver = (rig ) =>
|
|
157
|
+
inContext(rig, ROOM, ['metered'], METERED, (context) => {
|
|
158
|
+
const run = context.call('metered', 'over', OVER, SHORT);
|
|
159
|
+
if (!('interrupted' in run)) return `a run of ${SHORT} charged ${OVER} ${sentence(run)}`;
|
|
160
|
+
return run.spent >= OVER ? null : `it was interrupted having spent ${run.spent}, of ${OVER}`;
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
const heldToItsOwn = (rig ) =>
|
|
164
|
+
inContext(rig, ROOM, ['filler'], NO_HOST, (_, again, own) => {
|
|
165
|
+
const tight = own(TIGHT);
|
|
166
|
+
if (typeof tight === 'string') return tight;
|
|
167
|
+
try {
|
|
168
|
+
const run = tight.call('filler', 'fill', null, GROW);
|
|
169
|
+
if (!('threw' in run)) return `a context of ${TIGHT} bytes filling ${FILLED} arrays ${sentence(run)}`;
|
|
170
|
+
} finally {
|
|
171
|
+
tight.dispose();
|
|
172
|
+
}
|
|
173
|
+
const next = again();
|
|
174
|
+
if (typeof next === 'string') return next;
|
|
175
|
+
try {
|
|
176
|
+
const after = answeredWith(next.call('filler', 'fill', null, GROW), FILLED);
|
|
177
|
+
return after === null ? null : `the next context of the runtime: ${after}`;
|
|
178
|
+
} finally {
|
|
179
|
+
next.dispose();
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
const spendsFinite = (rig ) =>
|
|
184
|
+
inContext(rig, ROOM, ['answers', 'thrower', 'hosted', 'spinner'], HOST, (context) => {
|
|
185
|
+
const runs = [
|
|
186
|
+
['an answer', context.call('answers', 'sum', { a: 1, b: 2 }, WORK)],
|
|
187
|
+
['a throw', context.call('thrower', 'boom', null, WORK)],
|
|
188
|
+
['a wait', context.call('hosted', 'later', 'x', WORK)],
|
|
189
|
+
['a settled wait', context.settle(WAIT, 'done', WORK)],
|
|
190
|
+
['an interrupt', context.call('spinner', 'spin', null, SPIN)],
|
|
191
|
+
];
|
|
192
|
+
for (const [kind, run] of runs)
|
|
193
|
+
if (!Number.isFinite(run.spent) || run.spent < 0) return `${kind} spent ${run.spent} milliseconds`;
|
|
194
|
+
return null;
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
const apartAlike = ({ engine } ) =>
|
|
198
|
+
inContext({ engine: engine.apart() }, ROOM, ['answers'], HOST, (context) =>
|
|
199
|
+
answeredWith(context.call('answers', 'sum', { a: 2, b: 3 }, WORK), { total: 5 }),
|
|
200
|
+
);
|
|
201
|
+
|
|
202
|
+
export const engineContract = [
|
|
203
|
+
{ name: "A module's exported function answers data.", run: answers },
|
|
204
|
+
{ name: 'A source that does not compile answers why.', run: compileFails },
|
|
205
|
+
{
|
|
206
|
+
name: 'A module imports another given module by its name, and an import of a name not given fails.',
|
|
207
|
+
run: imports,
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
name: 'The context holds no `Date`, `Math.random`, `Intl`, `setTimeout`, `setInterval`, `fetch` or `process`.',
|
|
211
|
+
run: holdsNothing,
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'Nothing survives between two contexts: a global set in one is absent in the next.',
|
|
215
|
+
run: sharesNothing,
|
|
216
|
+
},
|
|
217
|
+
{ name: 'A host function answering data is answered at once.', run: hostAnswers },
|
|
218
|
+
{
|
|
219
|
+
name: 'A host function answering a wait leaves the run waiting on it, and settling it runs on to the answer.',
|
|
220
|
+
run: hostWaits,
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: 'A function that loops forever is interrupted, having spent at least its work.',
|
|
224
|
+
run: interrupts,
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
name: "A function that grows past the runtime's memory throws, and the runtime takes the next context.",
|
|
228
|
+
run: bounded,
|
|
229
|
+
},
|
|
230
|
+
{ name: 'A throw answers its message.', run: throwsMessage },
|
|
231
|
+
{ name: 'An answer that is no data, such as a function, is a throw.', run: noDataThrows },
|
|
232
|
+
{ name: 'Every run spends a finite number of milliseconds from 0.', run: spendsFinite },
|
|
233
|
+
{
|
|
234
|
+
name: "What a host function charges is counted in the run's spent, and its meter tells the work left.",
|
|
235
|
+
run: charged,
|
|
236
|
+
},
|
|
237
|
+
{ name: 'A run whose charges reach its work is interrupted.', run: chargedOver },
|
|
238
|
+
{
|
|
239
|
+
name: "A context given a memory is held to it, and the next context of its runtime to the runtime's own.",
|
|
240
|
+
run: heldToItsOwn,
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: 'A runtime tells the bytes it holds, a whole number from 0, more while a context holds more.',
|
|
244
|
+
run: tellsHeld,
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
name: 'A runtime held to a memory throws past it, and held to its own again takes what it took.',
|
|
248
|
+
run: heldToALimit,
|
|
249
|
+
},
|
|
250
|
+
{ name: 'An engine apart runs what the engine runs, alike.', run: apartAlike },
|
|
251
|
+
];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
|
|
3
|
+
import { answeredWith, compiled, sentence } from './judge.js';
|
|
4
|
+
import { FILLED, GROW, KEPT, NO_HOST, ROOM, TIGHT } from './sources.js';
|
|
5
|
+
|
|
6
|
+
export const tellsHeld = ({ engine } ) => {
|
|
7
|
+
const runtime = engine.runtime(ROOM);
|
|
8
|
+
try {
|
|
9
|
+
const before = runtime.held();
|
|
10
|
+
if (!Number.isSafeInteger(before) || before < 0) return Promise.resolve(`it held ${before} bytes`);
|
|
11
|
+
const modules = compiled(runtime, ['keeper']);
|
|
12
|
+
if (typeof modules === 'string') return Promise.resolve(modules);
|
|
13
|
+
const context = runtime.context(modules, NO_HOST);
|
|
14
|
+
try {
|
|
15
|
+
const kept = answeredWith(context.call('keeper', 'keep', null, GROW), FILLED);
|
|
16
|
+
if (kept !== null) return Promise.resolve(kept);
|
|
17
|
+
const during = runtime.held();
|
|
18
|
+
return Promise.resolve(
|
|
19
|
+
Number.isSafeInteger(during) && during >= before + KEPT
|
|
20
|
+
? null
|
|
21
|
+
: `holding arrays it held ${during}, from ${before}`,
|
|
22
|
+
);
|
|
23
|
+
} finally {
|
|
24
|
+
context.dispose();
|
|
25
|
+
}
|
|
26
|
+
} finally {
|
|
27
|
+
runtime.dispose();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const heldToALimit = (rig ) => {
|
|
32
|
+
const { engine } = rig;
|
|
33
|
+
const runtime = engine.runtime(ROOM);
|
|
34
|
+
try {
|
|
35
|
+
const modules = compiled(runtime, ['filler']);
|
|
36
|
+
if (typeof modules === 'string') return Promise.resolve(modules);
|
|
37
|
+
const context = runtime.context(modules, NO_HOST);
|
|
38
|
+
try {
|
|
39
|
+
runtime.limit(TIGHT);
|
|
40
|
+
const tight = context.call('filler', 'fill', null, GROW);
|
|
41
|
+
if (!('threw' in tight))
|
|
42
|
+
return Promise.resolve(`held to ${TIGHT} bytes, filling ${FILLED} arrays ${sentence(tight)}`);
|
|
43
|
+
runtime.limit(ROOM);
|
|
44
|
+
const room = answeredWith(context.call('filler', 'fill', null, GROW), FILLED);
|
|
45
|
+
return Promise.resolve(room === null ? null : `held to ${ROOM} bytes again, ${room}`);
|
|
46
|
+
} finally {
|
|
47
|
+
context.dispose();
|
|
48
|
+
}
|
|
49
|
+
} finally {
|
|
50
|
+
runtime.dispose();
|
|
51
|
+
}
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { engineContract } from './contract.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Data } from '#standard';
|
|
2
|
+
import type { Run, Runtime } from '#seams';
|
|
3
|
+
export declare const sentence: (run: Run) => string;
|
|
4
|
+
export declare const answeredWith: (run: Run, expected: Data) => string | null;
|
|
5
|
+
export declare const compiled: (runtime: Runtime, names: readonly string[]) => ReadonlyMap<string, Uint8Array> | string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { dataText, } from '#standard';
|
|
3
|
+
|
|
4
|
+
import { SOURCES } from './sources.js';
|
|
5
|
+
|
|
6
|
+
export const sentence = (run ) => {
|
|
7
|
+
if ('answered' in run) return `answered ${dataText(run.answered)}`;
|
|
8
|
+
if ('threw' in run) return `threw '${run.threw}'`;
|
|
9
|
+
if ('waiting' in run) return `waited on ${run.waiting.join(', ')}`;
|
|
10
|
+
return 'was interrupted';
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const answeredWith = (run , expected ) => {
|
|
14
|
+
if (!('answered' in run)) return `it ${sentence(run)}, where it was to answer`;
|
|
15
|
+
return dataText(run.answered) === dataText(expected)
|
|
16
|
+
? null
|
|
17
|
+
: `it ${sentence(run)}, where it was to answer ${dataText(expected)}`;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const compiled = (runtime , names ) => {
|
|
21
|
+
const modules = new Map ();
|
|
22
|
+
for (const name of names) {
|
|
23
|
+
const made = runtime.compile(name, SOURCES[name] ?? '');
|
|
24
|
+
if ('why' in made) return `${name} did not compile: ${made.why}`;
|
|
25
|
+
modules.set(name, made.bytecode);
|
|
26
|
+
}
|
|
27
|
+
return modules;
|
|
28
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type Host } from '#seams';
|
|
2
|
+
export declare const ROOM: number;
|
|
3
|
+
export declare const TIGHT: number;
|
|
4
|
+
export declare const WORK = 1000;
|
|
5
|
+
export declare const SPIN = 20;
|
|
6
|
+
export declare const GROW = 10000;
|
|
7
|
+
export declare const WAIT = 7;
|
|
8
|
+
export declare const CHARGE = 300;
|
|
9
|
+
export declare const OVER = 60;
|
|
10
|
+
export declare const SHORT = 50;
|
|
11
|
+
export declare const FILLED = 12;
|
|
12
|
+
export declare const SOURCES: Readonly<Record<string, string>>;
|
|
13
|
+
export declare const KEPT: number;
|
|
14
|
+
export declare const NO_HOST: Host;
|
|
15
|
+
export declare const HOST: Host;
|
|
16
|
+
export declare const METERED: Host;
|
|
17
|
+
export declare const NOT_HELD: string[];
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { LOBE_MEMORY, } from '#seams';
|
|
3
|
+
|
|
4
|
+
export const ROOM = LOBE_MEMORY;
|
|
5
|
+
export const TIGHT = 4 * 1024 * 1024;
|
|
6
|
+
export const WORK = 1000;
|
|
7
|
+
export const SPIN = 20;
|
|
8
|
+
export const GROW = 10_000;
|
|
9
|
+
export const WAIT = 7;
|
|
10
|
+
export const CHARGE = 300;
|
|
11
|
+
export const OVER = 60;
|
|
12
|
+
export const SHORT = 50;
|
|
13
|
+
export const FILLED = 12;
|
|
14
|
+
|
|
15
|
+
const saying = (other ) =>
|
|
16
|
+
`import { word } from ${JSON.stringify(other)}; export const say = () => word();`;
|
|
17
|
+
|
|
18
|
+
export const SOURCES = {
|
|
19
|
+
answers: 'export const sum = (args) => ({ total: args.a + args.b });',
|
|
20
|
+
leaf: "export const word = () => 'leaf';",
|
|
21
|
+
importer: saying('leaf'),
|
|
22
|
+
stranger: saying('absent'),
|
|
23
|
+
bare: `export const reach = () => [typeof Date, typeof Math.random, typeof Intl,
|
|
24
|
+
typeof setTimeout, typeof setInterval, typeof fetch, typeof process];`,
|
|
25
|
+
globals: `export const set = () => { globalThis.mark = 'set'; return null; };
|
|
26
|
+
export const read = () => typeof globalThis.mark;`,
|
|
27
|
+
hosted: `export const double = (args) => host.double(args);
|
|
28
|
+
export const later = async (args) => ({ got: await host.slow(args) });`,
|
|
29
|
+
spinner: 'export const spin = () => { for (;;) {} };',
|
|
30
|
+
grower: `export const grow = () => {
|
|
31
|
+
const kept = [];
|
|
32
|
+
for (;;) kept.push(new Array(65536));
|
|
33
|
+
};`,
|
|
34
|
+
thrower: "export const boom = () => { throw new Error('the message'); };",
|
|
35
|
+
maker: 'export const make = () => () => 1;',
|
|
36
|
+
metered: `export const charged = (n) => { host.charge(n); return host.left(); };
|
|
37
|
+
export const over = (n) => { host.charge(n); return 'done'; };`,
|
|
38
|
+
filler: `export const fill = () => {
|
|
39
|
+
const held = [];
|
|
40
|
+
for (let i = 0; i < ${FILLED}; i++) held.push(new Array(65536).fill(0));
|
|
41
|
+
return held.length;
|
|
42
|
+
};`,
|
|
43
|
+
keeper: `export const keep = () => {
|
|
44
|
+
globalThis.kept = [];
|
|
45
|
+
for (let i = 0; i < ${FILLED}; i++) globalThis.kept.push(new Array(65536).fill(0));
|
|
46
|
+
return kept.length;
|
|
47
|
+
};`,
|
|
48
|
+
broken: 'export const = ;',
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const KEPT = 3 * 1024 * 1024;
|
|
52
|
+
|
|
53
|
+
export const NO_HOST = {};
|
|
54
|
+
export const HOST = {
|
|
55
|
+
double: (args) => (typeof args === 'number' ? args * 2 : null),
|
|
56
|
+
slow: () => ({ wait: WAIT }),
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export const METERED = {
|
|
60
|
+
charge: (args, meter) => {
|
|
61
|
+
meter?.charge(typeof args === 'number' ? args : 0);
|
|
62
|
+
return null;
|
|
63
|
+
},
|
|
64
|
+
left: (_, meter) => meter?.left() ?? -1,
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export const NOT_HELD = Array.from({ length: 7 }, () => 'undefined');
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { bridgeContract } from './bridge/index.js';
|
|
2
|
+
export { carriersContract, carriersDialerContract, carriersListenerContract, webContract } from './carriers/index.js';
|
|
3
|
+
export { chanceContract } from './chance/index.js';
|
|
4
|
+
export { codecContract } from './codec/index.js';
|
|
5
|
+
export { cryptoContract } from './crypto/index.js';
|
|
6
|
+
export { doorContract, type DoorOpened, type DoorRig } from './door/index.js';
|
|
7
|
+
export { engineContract } from './engine/index.js';
|
|
8
|
+
export { LOBES_DIGEST, LOBES_SOURCE, lobesContract, type LobesRig } from './lobes/index.js';
|
|
9
|
+
export { pageLayerContract } from './page-layer/index.js';
|
|
10
|
+
export { queuesContract } from './queues/index.js';
|
|
11
|
+
export { runContract } from './run/index.js';
|
|
12
|
+
export { timeContract } from './time/index.js';
|
|
13
|
+
export { unlockerContract } from './unlocker/index.js';
|
|
14
|
+
export { vitalsContract } from './vitals/index.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
export { bridgeContract } from './bridge/index.js';
|
|
3
|
+
export { carriersContract, carriersDialerContract, carriersListenerContract, webContract } from './carriers/index.js';
|
|
4
|
+
export { chanceContract } from './chance/index.js';
|
|
5
|
+
export { codecContract } from './codec/index.js';
|
|
6
|
+
export { cryptoContract } from './crypto/index.js';
|
|
7
|
+
export { doorContract, } from './door/index.js';
|
|
8
|
+
export { engineContract } from './engine/index.js';
|
|
9
|
+
export { LOBES_DIGEST, LOBES_SOURCE, lobesContract, } from './lobes/index.js';
|
|
10
|
+
export { pageLayerContract } from './page-layer/index.js';
|
|
11
|
+
export { queuesContract } from './queues/index.js';
|
|
12
|
+
export { runContract } from './run/index.js';
|
|
13
|
+
export { timeContract } from './time/index.js';
|
|
14
|
+
export { unlockerContract } from './unlocker/index.js';
|
|
15
|
+
export { vitalsContract } from './vitals/index.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ContractSuite } from '#seams';
|
|
2
|
+
import type { AskGear, Fill } from '#cage';
|
|
3
|
+
export type LobesRig = {
|
|
4
|
+
readonly fill: Fill;
|
|
5
|
+
} & Pick<AskGear, 'codec' | 'crypto'>;
|
|
6
|
+
export declare const LOBES_DIGEST = "lobe";
|
|
7
|
+
export declare const LOBES_SOURCE = "import { Faculty } from 'nervur:faculty';\nexport default class Lobe extends Faculty {\n static blueprint = {\n name: 'com.acme.lobe',\n version: '1.0.0',\n methods: { ping: { kind: 'reading' }, keep: { kind: 'writing' }, gate: { kind: 'reading' }, loop: { kind: 'reading' }, boom: { kind: 'reading' } },\n placeholders: { gate: {} },\n };\n ping() { return 'pong'; }\n keep({ key, value }) { this.cells.set(key, value); return this.cells.get(key); }\n async gate() { return await this.ask('gate', 'open', null, 1000); }\n loop() { for (;;); }\n boom() { throw new Error('the message'); }\n}";
|
|
8
|
+
export declare const lobesContract: ContractSuite<LobesRig>;
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
|
|
3
|
+
import { dataText, } from '#standard';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export const LOBES_DIGEST = 'lobe';
|
|
10
|
+
|
|
11
|
+
export const LOBES_SOURCE = `import { Faculty } from 'nervur:faculty';
|
|
12
|
+
export default class Lobe extends Faculty {
|
|
13
|
+
static blueprint = {
|
|
14
|
+
name: 'com.acme.lobe',
|
|
15
|
+
version: '1.0.0',
|
|
16
|
+
methods: { ping: { kind: 'reading' }, keep: { kind: 'writing' }, gate: { kind: 'reading' }, loop: { kind: 'reading' }, boom: { kind: 'reading' } },
|
|
17
|
+
placeholders: { gate: {} },
|
|
18
|
+
};
|
|
19
|
+
ping() { return 'pong'; }
|
|
20
|
+
keep({ key, value }) { this.cells.set(key, value); return this.cells.get(key); }
|
|
21
|
+
async gate() { return await this.ask('gate', 'open', null, 1000); }
|
|
22
|
+
loop() { for (;;); }
|
|
23
|
+
boom() { throw new Error('the message'); }
|
|
24
|
+
}`;
|
|
25
|
+
|
|
26
|
+
const ROOMY = 3000;
|
|
27
|
+
const SHORT = 50;
|
|
28
|
+
const MEMORY = 32 * 1024 * 1024;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
const inputOf = (method , args ) => ({
|
|
43
|
+
method,
|
|
44
|
+
args,
|
|
45
|
+
stamp: { asker: 'brain', time: 0, seed: new Uint8Array(32), occupant: null, memory: MEMORY },
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const flown = (rig , method , args = null, digest = LOBES_DIGEST) => {
|
|
49
|
+
const cells = new Map ();
|
|
50
|
+
const asks = [];
|
|
51
|
+
const heard = [];
|
|
52
|
+
const gear = {
|
|
53
|
+
kind: 'writing',
|
|
54
|
+
codec: rig.codec,
|
|
55
|
+
crypto: rig.crypto,
|
|
56
|
+
cells: {
|
|
57
|
+
get: (key) => {
|
|
58
|
+
const value = cells.get(dataText(key));
|
|
59
|
+
return value === undefined ? null : { value };
|
|
60
|
+
},
|
|
61
|
+
set: (key, value) => {
|
|
62
|
+
cells.set(dataText(key), value);
|
|
63
|
+
return null;
|
|
64
|
+
},
|
|
65
|
+
delete: () => null,
|
|
66
|
+
range: () => ({ cells: [], cursor: null }),
|
|
67
|
+
},
|
|
68
|
+
ask: (ask) => asks.push(ask.placeholder),
|
|
69
|
+
run: () => null,
|
|
70
|
+
};
|
|
71
|
+
const run = rig.fill.open(LOBES_DIGEST, digest, inputOf(method, args), gear, () => undefined);
|
|
72
|
+
const next = (call) =>
|
|
73
|
+
new Promise((done) => {
|
|
74
|
+
call((told, worked) => {
|
|
75
|
+
const one = { told, worked };
|
|
76
|
+
heard.push(one);
|
|
77
|
+
done(one);
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
return { run, heard, cells, asks, next };
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
const started = async (
|
|
84
|
+
rig ,
|
|
85
|
+
method ,
|
|
86
|
+
args = null,
|
|
87
|
+
work = ROOMY,
|
|
88
|
+
) => {
|
|
89
|
+
const one = flown(rig, method, args);
|
|
90
|
+
return { ...one, first: await one.next((told) => one.run.start(work, told)) };
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const said = ({ told } ) => JSON.stringify(told);
|
|
94
|
+
|
|
95
|
+
const resultOf = ({ told } ) =>
|
|
96
|
+
'answered' in told && 'result' in told.answered ? told.answered.result : undefined;
|
|
97
|
+
|
|
98
|
+
const alive = async (rig ) => {
|
|
99
|
+
const { first } = await started(rig, 'ping');
|
|
100
|
+
return resultOf(first) === 'pong' ? null : `the next run told ${said(first)}`;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
const answersOnce = async (rig ) => {
|
|
104
|
+
const { first, heard } = await started(rig, 'ping');
|
|
105
|
+
if (resultOf(first) !== 'pong') return `a run told ${said(first)}`;
|
|
106
|
+
return (await alive(rig)) ?? (heard.length === 1 ? null : `a start told ${heard.length} times`);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
const reachesCells = async (rig ) => {
|
|
110
|
+
const { first, cells } = await started(rig, 'keep', { key: ['word'], value: 'kept' });
|
|
111
|
+
if (resultOf(first) !== 'kept') return `what it wrote it read back as ${said(first)}`;
|
|
112
|
+
return cells.get(dataText(['word'])) === 'kept' ? null : 'its write reached no cell of the carry';
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const waitsAndSettles = async (rig ) => {
|
|
116
|
+
const { first, run, asks, next } = await started(rig, 'gate');
|
|
117
|
+
if (!('waiting' in first.told)) return `an ask told ${said(first)}`;
|
|
118
|
+
if (asks.length !== 1 || asks[0] !== 'gate') return `the gear was asked ${dataText(asks)}`;
|
|
119
|
+
const [wait] = first.told.waiting;
|
|
120
|
+
if (wait !== 1) return `it waits on ${dataText([...first.told.waiting])}, and the gear gave 1`;
|
|
121
|
+
const ended = await next((told) => run.settle(wait, { result: 'open' }, ROOMY, told));
|
|
122
|
+
return dataText(resultOf(ended) ?? null) === dataText({ result: 'open' }) ? null : `settled, it told ${said(ended)}`;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
const faults = async (rig ) => {
|
|
126
|
+
const { first } = await started(rig, 'boom');
|
|
127
|
+
return 'fault' in first.told || ('answered' in first.told && 'error' in first.told.answered)
|
|
128
|
+
? await alive(rig)
|
|
129
|
+
: `a method that throws told ${said(first)}`;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
const breaks = async (rig ) => {
|
|
133
|
+
const one = flown(rig, 'ping', null, 'none');
|
|
134
|
+
const heard = await one.next((told) => one.run.start(ROOMY, told));
|
|
135
|
+
return 'broken' in heard.told ? await alive(rig) : `a faculty not kept told ${said(heard)}`;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
const isCut = (fill , { told } ) => (fill.counted ? 'interrupted' in told : 'cut' in told);
|
|
139
|
+
|
|
140
|
+
const cuts = async (rig ) => {
|
|
141
|
+
const { first } = await started(rig, 'loop', null, SHORT);
|
|
142
|
+
return isCut(rig.fill, first) ? await alive(rig) : `a run past its work told ${said(first)}`;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
const tellsWorked = async (rig ) => {
|
|
146
|
+
const { first } = await started(rig, 'ping');
|
|
147
|
+
if (rig.fill.counted) return first.worked === undefined ? null : `a fill that counts told ${first.worked} ms`;
|
|
148
|
+
return typeof first.worked === 'number' && first.worked >= 0 ? null : `a fill that watches told ${first.worked} ms`;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
const endsSilent = async (rig ) => {
|
|
152
|
+
const { run, heard } = await started(rig, 'gate');
|
|
153
|
+
run.end();
|
|
154
|
+
const after = await alive(rig);
|
|
155
|
+
if (after !== null) return after;
|
|
156
|
+
if (heard.length !== 1) return `a run ended, waiting, told ${heard.length} times`;
|
|
157
|
+
if (rig.fill.counted) return null;
|
|
158
|
+
const out = flown(rig, 'loop');
|
|
159
|
+
out.run.start(ROOMY, (told) => out.heard.push({ told, worked: undefined }));
|
|
160
|
+
out.run.end();
|
|
161
|
+
const next = await alive(rig);
|
|
162
|
+
return next ?? (out.heard.length === 0 ? null : `a run ended with a call out told ${JSON.stringify(out.heard)}`);
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
export const lobesContract = [
|
|
166
|
+
{
|
|
167
|
+
name: "A start tells once what its run came to, and a run's answer is what its method returned.",
|
|
168
|
+
run: answersOnce,
|
|
169
|
+
},
|
|
170
|
+
{ name: 'A run reaches the cells of the carry by its gear alone, each answered on the spot.', run: reachesCells },
|
|
171
|
+
{
|
|
172
|
+
name: 'A run that asks tells the wait its gear gave it, and a settle runs it on with that answer.',
|
|
173
|
+
run: waitsAndSettles,
|
|
174
|
+
},
|
|
175
|
+
{ name: "A method that throws is the run's own end, and the lobe answers next.", run: faults },
|
|
176
|
+
{ name: 'A faculty the host keeps not is told broken, and the lobe answers next.', run: breaks },
|
|
177
|
+
{
|
|
178
|
+
name: 'A run past its work is cut, told as its fill counts or watches, and no cut reaches the next run.',
|
|
179
|
+
run: cuts,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'A fill that watches real time tells what a call worked, and a fill that counts tells none.',
|
|
183
|
+
run: tellsWorked,
|
|
184
|
+
},
|
|
185
|
+
{ name: 'A run ended, a call out or none, tells nothing after, and the lobe answers next.', run: endsSilent },
|
|
186
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LOBES_DIGEST, LOBES_SOURCE, lobesContract, type LobesRig } from './contract.js';
|