@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,140 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { isCount, isFields, } from '../data/index.js';
|
|
3
|
+
import { compilePattern } from '../pattern/index.js';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export const METHOD_MARK = 'application/vnd.nervur.method';
|
|
8
|
+
|
|
9
|
+
export const SCHEMA_DEPTH = 64;
|
|
10
|
+
|
|
11
|
+
export const KEYWORDS = new Set([
|
|
12
|
+
'type',
|
|
13
|
+
'properties',
|
|
14
|
+
'required',
|
|
15
|
+
'additionalProperties',
|
|
16
|
+
'enum',
|
|
17
|
+
'const',
|
|
18
|
+
'items',
|
|
19
|
+
'minLength',
|
|
20
|
+
'maxLength',
|
|
21
|
+
'minItems',
|
|
22
|
+
'maxItems',
|
|
23
|
+
'minimum',
|
|
24
|
+
'maximum',
|
|
25
|
+
'pattern',
|
|
26
|
+
'anyOf',
|
|
27
|
+
'contentEncoding',
|
|
28
|
+
'contentMediaType',
|
|
29
|
+
]);
|
|
30
|
+
export const ANNOTATIONS = new Set(['description']);
|
|
31
|
+
|
|
32
|
+
const TYPES = new Set(['object', 'array', 'string', 'number', 'integer', 'boolean', 'null']);
|
|
33
|
+
|
|
34
|
+
export const isList = (value ) => Array.isArray(value);
|
|
35
|
+
|
|
36
|
+
export const isPlain = (value ) => {
|
|
37
|
+
if (!isFields(value)) return false;
|
|
38
|
+
const proto = Object.getPrototypeOf(value);
|
|
39
|
+
return proto === Object.prototype || proto === null;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const isScalar = (value ) =>
|
|
43
|
+
value === null ||
|
|
44
|
+
typeof value === 'string' ||
|
|
45
|
+
typeof value === 'boolean' ||
|
|
46
|
+
(typeof value === 'number' && Number.isFinite(value));
|
|
47
|
+
|
|
48
|
+
const named = (schema , at ) => {
|
|
49
|
+
const found = [];
|
|
50
|
+
for (const key of Object.keys(schema)) {
|
|
51
|
+
if (!KEYWORDS.has(key) && !ANNOTATIONS.has(key)) found.push(`${at} names ${key}, outside the subset`);
|
|
52
|
+
}
|
|
53
|
+
if (schema.description !== undefined && typeof schema.description !== 'string')
|
|
54
|
+
found.push(`${at} has a description that is not a string`);
|
|
55
|
+
return found;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const reading = (schema , at ) => {
|
|
59
|
+
const found = [];
|
|
60
|
+
const { type, contentEncoding, contentMediaType } = schema;
|
|
61
|
+
if (type !== undefined && !(typeof type === 'string' && TYPES.has(type)))
|
|
62
|
+
found.push(`${at} has a type the subset does not name`);
|
|
63
|
+
if (contentEncoding !== undefined && contentEncoding !== 'base16')
|
|
64
|
+
found.push(`${at} has a contentEncoding other than base16`);
|
|
65
|
+
if (contentMediaType !== undefined && contentMediaType !== METHOD_MARK)
|
|
66
|
+
found.push(`${at} has a contentMediaType the subset does not name`);
|
|
67
|
+
if (contentMediaType === METHOD_MARK && (type !== 'string' || contentEncoding !== undefined))
|
|
68
|
+
found.push(`${at} marks a method that is not a plain string`);
|
|
69
|
+
return found;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const limits = (schema , at ) => {
|
|
73
|
+
const found = [];
|
|
74
|
+
for (const key of ['minLength', 'maxLength', 'minItems', 'maxItems']) {
|
|
75
|
+
const value = schema[key];
|
|
76
|
+
if (value !== undefined && !(typeof value === 'number' && isCount(value)))
|
|
77
|
+
found.push(`${at} has a ${key} that is not a count`);
|
|
78
|
+
}
|
|
79
|
+
for (const key of ['minimum', 'maximum']) {
|
|
80
|
+
const value = schema[key];
|
|
81
|
+
if (value === undefined) continue;
|
|
82
|
+
if (typeof value !== 'number' || !Number.isFinite(value)) found.push(`${at} has a ${key} that is not a number`);
|
|
83
|
+
else if (schema.type === 'integer' && !Number.isSafeInteger(value))
|
|
84
|
+
found.push(`${at} has a ${key} that is not a safe integer`);
|
|
85
|
+
}
|
|
86
|
+
return found;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
const patternWhy = (schema , at ) => {
|
|
90
|
+
const { pattern } = schema;
|
|
91
|
+
if (pattern === undefined) return [];
|
|
92
|
+
if (typeof pattern !== 'string') return [`${at} has a pattern that is not a string`];
|
|
93
|
+
const compiled = compilePattern(pattern);
|
|
94
|
+
return 'why' in compiled
|
|
95
|
+
? [`${at} has the pattern ${JSON.stringify(pattern)}, no I-Regexp of RFC 9485: ${compiled.why}`]
|
|
96
|
+
: [];
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const scalars = (schema , at ) => {
|
|
100
|
+
const found = [];
|
|
101
|
+
if (schema.enum !== undefined && !(isList(schema.enum) && schema.enum.every(isScalar)))
|
|
102
|
+
found.push(`${at} has an enum that is not a list of scalars`);
|
|
103
|
+
if ('const' in schema && !isScalar(schema.const)) found.push(`${at} has a const that is not a scalar`);
|
|
104
|
+
return found;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
const children = (schema , at , depth ) => {
|
|
108
|
+
const found = [];
|
|
109
|
+
const { properties, required, additionalProperties, items, anyOf } = schema;
|
|
110
|
+
if (properties !== undefined) {
|
|
111
|
+
if (!isPlain(properties)) found.push(`${at} has properties that are not an object`);
|
|
112
|
+
else for (const [key, inner] of Object.entries(properties)) found.push(...within(inner, `${at}.${key}`, depth + 1));
|
|
113
|
+
}
|
|
114
|
+
if (required !== undefined && !(isList(required) && required.every((key) => typeof key === 'string')))
|
|
115
|
+
found.push(`${at} has required that is not a list of names`);
|
|
116
|
+
if (isPlain(additionalProperties)) found.push(...within(additionalProperties, `${at}.*`, depth + 1));
|
|
117
|
+
else if (additionalProperties !== undefined && typeof additionalProperties !== 'boolean')
|
|
118
|
+
found.push(`${at} has additionalProperties that is neither true, false nor a schema`);
|
|
119
|
+
if (items !== undefined) found.push(...within(items, `${at}[]`, depth + 1));
|
|
120
|
+
if (anyOf !== undefined) {
|
|
121
|
+
if (!isList(anyOf) || anyOf.length === 0) found.push(`${at} has an anyOf that is not a list of schemas`);
|
|
122
|
+
else anyOf.forEach((branch, index) => found.push(...within(branch, `${at}|${index}`, depth + 1)));
|
|
123
|
+
}
|
|
124
|
+
return found;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const within = (schema , at , depth ) => {
|
|
128
|
+
if (!isPlain(schema)) return [`${at} is not a schema object`];
|
|
129
|
+
if (depth === SCHEMA_DEPTH) return [`${at} nests deeper than ${SCHEMA_DEPTH} levels`];
|
|
130
|
+
return [
|
|
131
|
+
...named(schema, at),
|
|
132
|
+
...reading(schema, at),
|
|
133
|
+
...limits(schema, at),
|
|
134
|
+
...patternWhy(schema, at),
|
|
135
|
+
...scalars(schema, at),
|
|
136
|
+
...children(schema, at, depth),
|
|
137
|
+
];
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export const outside = (schema , at = 'the schema') => within(schema, at, 0);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type Form = 'classes' | 'input' | 'text' | 'name' | 'number' | 'flag' | 'asset' | 'sound' | 'link' | 'viewbox' | 'numbers' | 'pathdata' | 'transform' | 'color' | 'paint' | 'ref' | 'aspect' | 'instant' | {
|
|
2
|
+
readonly one: readonly string[];
|
|
3
|
+
};
|
|
4
|
+
export declare const FORMS: readonly (Exclude<Form, object> | 'one')[];
|
|
5
|
+
export declare const ASSET_KINDS: ReadonlySet<string>;
|
|
6
|
+
export declare const SOUND_KINDS: ReadonlySet<string>;
|
|
7
|
+
export declare const LIMITS: {
|
|
8
|
+
readonly nodes: 5000;
|
|
9
|
+
readonly depth: 64;
|
|
10
|
+
readonly key: 200;
|
|
11
|
+
readonly text: 20000;
|
|
12
|
+
readonly sounds: 0;
|
|
13
|
+
};
|
|
14
|
+
export declare const INPUTS: ReadonlySet<string>;
|
|
15
|
+
export declare const WORN_INPUTS: ReadonlySet<string>;
|
|
16
|
+
export declare const SVG: ReadonlySet<string>;
|
|
17
|
+
export declare const SVG_TEXTS: ReadonlySet<string>;
|
|
18
|
+
export declare const SVG_HOLDS: ReadonlyMap<string, ReadonlySet<string>>;
|
|
19
|
+
export declare const GLOBAL: ReadonlyMap<string, Form>;
|
|
20
|
+
export declare const ELEMENTS: ReadonlyMap<string, ReadonlyMap<string, Form>>;
|
|
21
|
+
export declare const VOID: ReadonlySet<string>;
|
|
22
|
+
export declare const PRESSABLE: ReadonlySet<string>;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export const FORMS = [
|
|
25
|
+
'classes',
|
|
26
|
+
'input',
|
|
27
|
+
'text',
|
|
28
|
+
'name',
|
|
29
|
+
'number',
|
|
30
|
+
'flag',
|
|
31
|
+
'asset',
|
|
32
|
+
'sound',
|
|
33
|
+
'link',
|
|
34
|
+
'viewbox',
|
|
35
|
+
'numbers',
|
|
36
|
+
'pathdata',
|
|
37
|
+
'transform',
|
|
38
|
+
'color',
|
|
39
|
+
'paint',
|
|
40
|
+
'ref',
|
|
41
|
+
'aspect',
|
|
42
|
+
'instant',
|
|
43
|
+
'one',
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
export const ASSET_KINDS = new Set(['avif', 'gif', 'jpg', 'png', 'webp']);
|
|
47
|
+
export const SOUND_KINDS = new Set(['mp3', 'ogg', 'wav']);
|
|
48
|
+
|
|
49
|
+
export const LIMITS = {
|
|
50
|
+
nodes: 5000,
|
|
51
|
+
depth: 64,
|
|
52
|
+
key: 200,
|
|
53
|
+
text: 20_000,
|
|
54
|
+
sounds: 0,
|
|
55
|
+
} ;
|
|
56
|
+
|
|
57
|
+
export const INPUTS = new Set(
|
|
58
|
+
'text search number range checkbox radio date time email tel color file'.split(' '),
|
|
59
|
+
);
|
|
60
|
+
export const WORN_INPUTS = new Set(['password']);
|
|
61
|
+
|
|
62
|
+
const NUMBER = 'number';
|
|
63
|
+
const FLAG = 'flag';
|
|
64
|
+
const pairs = (names , form ) =>
|
|
65
|
+
names.split(' ').map((name) => [name, form]);
|
|
66
|
+
|
|
67
|
+
const CAPS = { one: ['butt', 'round', 'square'] } ;
|
|
68
|
+
const JOINS = { one: ['miter', 'round', 'bevel'] } ;
|
|
69
|
+
const ANCHORS = { one: ['start', 'middle', 'end'] } ;
|
|
70
|
+
const BASELINES = {
|
|
71
|
+
one: ['auto', 'middle', 'hanging', 'central', 'text-before-edge', 'text-after-edge'],
|
|
72
|
+
} ;
|
|
73
|
+
const UNITS = { one: ['userSpaceOnUse', 'objectBoundingBox'] } ;
|
|
74
|
+
|
|
75
|
+
const PAINT = new Map ([
|
|
76
|
+
['transform', 'transform'],
|
|
77
|
+
['fill', 'paint'],
|
|
78
|
+
['stroke', 'paint'],
|
|
79
|
+
['stroke-width', NUMBER],
|
|
80
|
+
['stroke-linecap', CAPS],
|
|
81
|
+
['stroke-linejoin', JOINS],
|
|
82
|
+
['stroke-dasharray', 'numbers'],
|
|
83
|
+
['opacity', NUMBER],
|
|
84
|
+
['fill-opacity', NUMBER],
|
|
85
|
+
['stroke-opacity', NUMBER],
|
|
86
|
+
['clip-path', 'ref'],
|
|
87
|
+
]);
|
|
88
|
+
const TEXT_LOOK = new Map ([
|
|
89
|
+
['text-anchor', ANCHORS],
|
|
90
|
+
['dominant-baseline', BASELINES],
|
|
91
|
+
['font-size', NUMBER],
|
|
92
|
+
]);
|
|
93
|
+
const drawn = (own , ...more ) =>
|
|
94
|
+
new Map([...own, ...more.flatMap((one) => [...one])]);
|
|
95
|
+
|
|
96
|
+
export const SVG = new Set(
|
|
97
|
+
'svg g path circle ellipse rect line polyline polygon text tspan title desc defs clipPath linearGradient radialGradient stop'.split(
|
|
98
|
+
' ',
|
|
99
|
+
),
|
|
100
|
+
);
|
|
101
|
+
export const SVG_TEXTS = new Set(['text', 'tspan', 'title', 'desc']);
|
|
102
|
+
export const SVG_HOLDS = new Map([
|
|
103
|
+
['title', new Set ()],
|
|
104
|
+
['desc', new Set ()],
|
|
105
|
+
['stop', new Set ()],
|
|
106
|
+
['text', new Set(['tspan'])],
|
|
107
|
+
['tspan', new Set(['tspan'])],
|
|
108
|
+
]);
|
|
109
|
+
|
|
110
|
+
function svgElements() {
|
|
111
|
+
const shape = (names , form = NUMBER) => new Map(pairs(names, form));
|
|
112
|
+
return [
|
|
113
|
+
[
|
|
114
|
+
'svg',
|
|
115
|
+
drawn(
|
|
116
|
+
shape('width height'),
|
|
117
|
+
new Map ([
|
|
118
|
+
['viewBox', 'viewbox'],
|
|
119
|
+
['preserveAspectRatio', 'aspect'],
|
|
120
|
+
]),
|
|
121
|
+
PAINT,
|
|
122
|
+
),
|
|
123
|
+
],
|
|
124
|
+
['g', drawn(PAINT, TEXT_LOOK)],
|
|
125
|
+
['path', drawn(shape('d', 'pathdata'), PAINT)],
|
|
126
|
+
['circle', drawn(shape('cx cy r'), PAINT)],
|
|
127
|
+
['ellipse', drawn(shape('cx cy rx ry'), PAINT)],
|
|
128
|
+
['rect', drawn(shape('x y width height rx ry'), PAINT)],
|
|
129
|
+
['line', drawn(shape('x1 y1 x2 y2'), PAINT)],
|
|
130
|
+
['polyline', drawn(shape('points', 'numbers'), PAINT)],
|
|
131
|
+
['polygon', drawn(shape('points', 'numbers'), PAINT)],
|
|
132
|
+
['text', drawn(shape('x y'), PAINT, TEXT_LOOK)],
|
|
133
|
+
['tspan', drawn(shape('x y'), PAINT, TEXT_LOOK)],
|
|
134
|
+
['title', new Map()],
|
|
135
|
+
['desc', new Map()],
|
|
136
|
+
['defs', new Map()],
|
|
137
|
+
['clipPath', new Map()],
|
|
138
|
+
['linearGradient', drawn(shape('x1 y1 x2 y2'), shape('gradientUnits', UNITS))],
|
|
139
|
+
['radialGradient', drawn(shape('cx cy r'), shape('gradientUnits', UNITS))],
|
|
140
|
+
['stop', drawn(shape('offset'), shape('stop-color', 'color'))],
|
|
141
|
+
];
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export const GLOBAL = new Map ([
|
|
145
|
+
['class', 'classes'],
|
|
146
|
+
['id', 'name'],
|
|
147
|
+
['title', 'text'],
|
|
148
|
+
['lang', 'name'],
|
|
149
|
+
['dir', { one: ['ltr', 'rtl', 'auto'] }],
|
|
150
|
+
['hidden', FLAG],
|
|
151
|
+
['role', 'name'],
|
|
152
|
+
['aria-label', 'text'],
|
|
153
|
+
['aria-hidden', { one: ['true', 'false'] }],
|
|
154
|
+
['aria-current', { one: ['page', 'step', 'true', 'false'] }],
|
|
155
|
+
['aria-live', { one: ['off', 'polite'] }],
|
|
156
|
+
['aria-pressed', { one: ['true', 'false', 'mixed'] }],
|
|
157
|
+
['aria-expanded', { one: ['true', 'false'] }],
|
|
158
|
+
['aria-invalid', { one: ['true', 'false'] }],
|
|
159
|
+
['aria-describedby', 'name'],
|
|
160
|
+
['aria-busy', { one: ['true', 'false'] }],
|
|
161
|
+
...pairs('swipe-left swipe-right swipe-up swipe-down hold drag', 'name'),
|
|
162
|
+
['drop', 'text'],
|
|
163
|
+
['morph', 'name'],
|
|
164
|
+
['opens', FLAG],
|
|
165
|
+
]);
|
|
166
|
+
|
|
167
|
+
const TYPING = [
|
|
168
|
+
['autocorrect', { one: ['on', 'off'] }],
|
|
169
|
+
['autocapitalize', { one: ['off', 'none', 'on', 'sentences', 'words', 'characters'] }],
|
|
170
|
+
['spellcheck', { one: ['true', 'false'] }],
|
|
171
|
+
['inputmode', { one: ['none', 'text', 'decimal', 'numeric', 'tel', 'search', 'email', 'url'] }],
|
|
172
|
+
['enterkeyhint', { one: ['enter', 'done', 'go', 'next', 'previous', 'search', 'send'] }],
|
|
173
|
+
];
|
|
174
|
+
|
|
175
|
+
const PLAIN =
|
|
176
|
+
'div span p h1 h2 h3 h4 header footer main nav aside section article ul dl dt dd strong em small mark s sub sup abbr q blockquote br hr figure figcaption legend table caption thead tbody tfoot tr summary';
|
|
177
|
+
|
|
178
|
+
export const ELEMENTS = new Map ([
|
|
179
|
+
...PLAIN.split(' ').map((name) => [name, new Map()]),
|
|
180
|
+
['ol', new Map(pairs('start', NUMBER))],
|
|
181
|
+
['li', new Map(pairs('value', NUMBER))],
|
|
182
|
+
['img', new Map([['src', 'asset'], ['alt', 'text'], ...pairs('width height', NUMBER)])],
|
|
183
|
+
['audio', new Map([['src', 'sound'], ...pairs('controls', FLAG)])],
|
|
184
|
+
[
|
|
185
|
+
'time',
|
|
186
|
+
new Map ([...pairs('datetime', 'text'), ['deadline', 'instant'], ['shows', { one: ['day', 'time'] }]]),
|
|
187
|
+
],
|
|
188
|
+
['data', new Map([...pairs('value ref', 'text'), ...pairs('field', 'name')])],
|
|
189
|
+
['a', new Map(pairs('href', 'link'))],
|
|
190
|
+
['pre', new Map()],
|
|
191
|
+
['code', new Map()],
|
|
192
|
+
['meter', new Map(pairs('value min max low high', NUMBER))],
|
|
193
|
+
['progress', new Map(pairs('value max', NUMBER))],
|
|
194
|
+
['button', new Map([...pairs('disabled', FLAG), ['copies', 'name']])],
|
|
195
|
+
['label', new Map(pairs('for', 'name'))],
|
|
196
|
+
[
|
|
197
|
+
'input',
|
|
198
|
+
new Map([
|
|
199
|
+
['type', 'input'],
|
|
200
|
+
...pairs('name autocomplete', 'name'),
|
|
201
|
+
...pairs('value placeholder', 'text'),
|
|
202
|
+
...pairs('min max step maxlength minlength', NUMBER),
|
|
203
|
+
...pairs('checked disabled required readonly', FLAG),
|
|
204
|
+
...TYPING,
|
|
205
|
+
['enter', 'name'],
|
|
206
|
+
]),
|
|
207
|
+
],
|
|
208
|
+
[
|
|
209
|
+
'textarea',
|
|
210
|
+
new Map([
|
|
211
|
+
...pairs('name autocomplete', 'name'),
|
|
212
|
+
...pairs('placeholder', 'text'),
|
|
213
|
+
...pairs('rows maxlength minlength', NUMBER),
|
|
214
|
+
...pairs('disabled required readonly', FLAG),
|
|
215
|
+
...TYPING,
|
|
216
|
+
]),
|
|
217
|
+
],
|
|
218
|
+
['select', new Map([...pairs('name', 'name'), ...pairs('disabled', FLAG)])],
|
|
219
|
+
['option', new Map([...pairs('value', 'text'), ...pairs('selected', FLAG)])],
|
|
220
|
+
['fieldset', new Map(pairs('disabled', FLAG))],
|
|
221
|
+
['th', new Map([['scope', { one: ['row', 'col'] }], ...pairs('colspan', NUMBER)])],
|
|
222
|
+
['td', new Map(pairs('colspan', NUMBER))],
|
|
223
|
+
['details', new Map(pairs('open', FLAG))],
|
|
224
|
+
['slot', new Map(pairs('placeholder', 'name'))],
|
|
225
|
+
...svgElements(),
|
|
226
|
+
]);
|
|
227
|
+
|
|
228
|
+
export const VOID = new Set(['br', 'hr', 'img', 'input']);
|
|
229
|
+
export const PRESSABLE = new Set(['button', 'input', 'select', 'textarea', 'summary']);
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
+
import { dataText, isFields, } from '../data/index.js';
|
|
3
|
+
import { ELEMENTS, GLOBAL, LIMITS, PRESSABLE, SVG, SVG_HOLDS, SVG_TEXTS, VOID, } from './allow.js';
|
|
4
|
+
import { isName, isText, refOf, valueOf } from './forms.js';
|
|
5
|
+
import { EMPTY, ENCLOSING, HOLDS, TEXTS, placeWhy } from './model.js';
|
|
6
|
+
import { elementsOf, } from './tree.js';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
const FIELDS = new Set(['t', 'a', 'k', 'press', 'args', 'c']);
|
|
15
|
+
const PRESS = new Set(['method', 'args', 'to']);
|
|
16
|
+
const REF = /^[a-z][a-z0-9-]{0,39}:.{1,200}$/su;
|
|
17
|
+
const NO_WEAR = {
|
|
18
|
+
sheets: [],
|
|
19
|
+
classes: new Set (),
|
|
20
|
+
inputs: new Set (),
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const attrsOf = (t , a , at , allowed ) => {
|
|
24
|
+
if (!isFields(a)) return { why: `${at}'s attributes are no fields` };
|
|
25
|
+
const own = ELEMENTS.get(t) ?? new Map ();
|
|
26
|
+
const read = {};
|
|
27
|
+
for (const name of Object.keys(a).toSorted()) {
|
|
28
|
+
const form = own.get(name) ?? GLOBAL.get(name);
|
|
29
|
+
if (form === undefined) return { why: `${at} may carry no attribute ${JSON.stringify(name)}` };
|
|
30
|
+
const value = valueOf(form, a[name] ?? null, `${at}'s ${name}`, allowed);
|
|
31
|
+
if (typeof value === 'object' && 'why' in value) return value;
|
|
32
|
+
if (value !== false) read[name] = value;
|
|
33
|
+
}
|
|
34
|
+
if (t === 'data' && (read['ref'] === undefined) !== (read['field'] === undefined))
|
|
35
|
+
return { why: `${at} places a fact by its ref and its field together` };
|
|
36
|
+
if (t === 'audio' && (read['controls'] !== true || read['src'] === undefined))
|
|
37
|
+
return { why: `${at} is a sound with no recording or no control the person plays it at` };
|
|
38
|
+
const ref = read['ref'];
|
|
39
|
+
if (typeof ref === 'string' && !REF.test(ref)) return { why: `${at}'s ref is no ref: ${ref}` };
|
|
40
|
+
return { read };
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const pressOf = (t , press , at ) => {
|
|
44
|
+
if (!PRESSABLE.has(t)) return { why: `${at}, a ${t}, takes no press` };
|
|
45
|
+
if (!isFields(press)) return { why: `${at}'s press is no fields` };
|
|
46
|
+
const stray = Object.keys(press).find((name) => !PRESS.has(name));
|
|
47
|
+
if (stray !== undefined) return { why: `${at}'s press holds ${stray}, which no press holds` };
|
|
48
|
+
const { method, args, to } = press;
|
|
49
|
+
if (!isName(method)) return { why: `${at}'s press names no method` };
|
|
50
|
+
if (to !== undefined && !isName(to)) return { why: `${at}'s press names no placeholder` };
|
|
51
|
+
const given = args === undefined ? {} : args;
|
|
52
|
+
return to === undefined ? { method, args: given } : { method, args: given, to };
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const partsOf = (data , at , walk ) => {
|
|
56
|
+
const { allowed } = walk;
|
|
57
|
+
const { t, a, k, press, args } = data;
|
|
58
|
+
const stray = Object.keys(data).find((name) => !FIELDS.has(name));
|
|
59
|
+
if (stray !== undefined) return { why: `${at} holds a field no element holds: ${stray}` };
|
|
60
|
+
if (typeof t !== 'string' || !ELEMENTS.has(t))
|
|
61
|
+
return {
|
|
62
|
+
why: `${at} is no element a lobe draws: ${dataText(t ?? null).slice(0, 80)}`,
|
|
63
|
+
};
|
|
64
|
+
const attrs = attrsOf(t, a ?? {}, at, allowed);
|
|
65
|
+
if ('why' in attrs) return attrs;
|
|
66
|
+
if (k !== undefined && (typeof k !== 'string' || k.length > allowed.caps.key))
|
|
67
|
+
return { why: `${at}'s key is no short text` };
|
|
68
|
+
if (t === 'audio' && (walk.sounds += 1) > allowed.caps.sounds)
|
|
69
|
+
return { why: `the tree holds more than ${allowed.caps.sounds} sounds` };
|
|
70
|
+
if (t === 'slot' && attrs.read['placeholder'] === undefined) return { why: `${at} is a slot naming no placeholder` };
|
|
71
|
+
if (args !== undefined && t !== 'slot') return { why: `${at} carries args, which only a slot does` };
|
|
72
|
+
const pressed = press === undefined ? undefined : pressOf(t, press, at);
|
|
73
|
+
if (pressed !== undefined && 'why' in pressed) return pressed;
|
|
74
|
+
return {
|
|
75
|
+
t,
|
|
76
|
+
a: attrs.read,
|
|
77
|
+
...(k === undefined ? {} : { k }),
|
|
78
|
+
...(pressed === undefined ? {} : { press: pressed }),
|
|
79
|
+
...(args === undefined ? {} : { args }),
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
const joined = (children ) => {
|
|
84
|
+
const out = [];
|
|
85
|
+
for (const child of children) {
|
|
86
|
+
const last = out.at(-1);
|
|
87
|
+
if (child === '') continue;
|
|
88
|
+
if (typeof child === 'string' && typeof last === 'string') out[out.length - 1] = last + child;
|
|
89
|
+
else out.push(child);
|
|
90
|
+
}
|
|
91
|
+
return out;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const togetherWhy = (t , children , at , most ) => {
|
|
95
|
+
const keys = new Set ();
|
|
96
|
+
for (const child of children) {
|
|
97
|
+
if (typeof child === 'string') {
|
|
98
|
+
if (!isText(child, most)) return `${at} holds too long a text`;
|
|
99
|
+
if (HOLDS.has(t) && !TEXTS.has(t)) return `a ${t} holds no text, at ${at}`;
|
|
100
|
+
if (SVG.has(t) && !SVG_TEXTS.has(t)) return `a ${t} holds no text, at ${at}`;
|
|
101
|
+
} else if (child.k !== undefined) {
|
|
102
|
+
if (keys.has(child.k)) return `${at} holds a second key ${child.k}`;
|
|
103
|
+
keys.add(child.k);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return null;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
const childrenOf = (el , c , at , depth , walk , place ) => {
|
|
110
|
+
if (!Array.isArray(c)) return { why: `${at}'s children are no list` };
|
|
111
|
+
if (c.length > 0 && (VOID.has(el.t) || EMPTY.has(el.t))) return { why: `${at}, a ${el.t}, holds no children` };
|
|
112
|
+
const within = ENCLOSING.has(el.t) ? new Set([...place.within, el.t]) : place.within;
|
|
113
|
+
const read = [];
|
|
114
|
+
for (const [index, child] of c.entries()) {
|
|
115
|
+
const one = nodeOf(child, `${at}.${index}`, depth + 1, walk, {
|
|
116
|
+
parent: el.t,
|
|
117
|
+
within,
|
|
118
|
+
});
|
|
119
|
+
if (typeof one === 'object' && 'why' in one) return one;
|
|
120
|
+
read.push(one);
|
|
121
|
+
}
|
|
122
|
+
const children = joined(read);
|
|
123
|
+
const why = togetherWhy(el.t, children, at, walk.allowed.caps.text);
|
|
124
|
+
return why === null ? children : { why };
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const drawnWhy = (t , parent ) => {
|
|
128
|
+
const within = parent !== null && SVG.has(parent);
|
|
129
|
+
if (SVG.has(t) && t !== 'svg' && !within) return `a ${t} stands only in svg`;
|
|
130
|
+
if (!within || parent === null) return null;
|
|
131
|
+
if (!SVG.has(t)) return `a ${parent} holds no ${t}`;
|
|
132
|
+
const holds = SVG_HOLDS.get(parent);
|
|
133
|
+
return holds === undefined || holds.has(t) ? null : `a ${parent} holds no ${t}`;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const REFERRING = ['fill', 'stroke', 'clip-path'];
|
|
137
|
+
|
|
138
|
+
const refsWhy = (root ) => {
|
|
139
|
+
const els = elementsOf(root);
|
|
140
|
+
const ids = new Set(els.map((el) => el.a['id']));
|
|
141
|
+
for (const el of els)
|
|
142
|
+
for (const name of REFERRING) {
|
|
143
|
+
const value = el.a[name];
|
|
144
|
+
const id = typeof value === 'string' ? refOf(value) : null;
|
|
145
|
+
if (id !== null && !ids.has(id)) return `a ${el.t}'s ${name} names no id ${id} of the tree`;
|
|
146
|
+
}
|
|
147
|
+
return null;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
const GESTURES = new Map([
|
|
151
|
+
...['swipe-left', 'swipe-right', 'swipe-up', 'swipe-down', 'hold'].map((name) => [
|
|
152
|
+
name,
|
|
153
|
+
new Set(['button', 'summary']),
|
|
154
|
+
]),
|
|
155
|
+
['drag', new Set(['select'])],
|
|
156
|
+
]);
|
|
157
|
+
|
|
158
|
+
const namedIn = (el , id , denied = false) => {
|
|
159
|
+
if (el.a['id'] === id) return { el, denied };
|
|
160
|
+
for (const child of el.c) {
|
|
161
|
+
if (typeof child === 'string') continue;
|
|
162
|
+
const found = namedIn(child, id, denied || child.a['hidden'] === true || child.a['aria-hidden'] === 'true');
|
|
163
|
+
if (found !== null) return found;
|
|
164
|
+
}
|
|
165
|
+
return null;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
const gesturesWhy = (root ) => {
|
|
169
|
+
for (const el of elementsOf(root))
|
|
170
|
+
for (const [name, controls] of GESTURES) {
|
|
171
|
+
const id = el.a[name];
|
|
172
|
+
if (id === undefined) continue;
|
|
173
|
+
const found = namedIn(el, id);
|
|
174
|
+
if (found === null) return `a ${el.t}'s ${name} names no control within it`;
|
|
175
|
+
if (!controls.has(found.el.t) || found.el.press === undefined)
|
|
176
|
+
return `a ${el.t}'s ${name} names a ${found.el.t} that is no control it may press`;
|
|
177
|
+
if (name === 'drag' && found.el.a['name'] === undefined) return `a ${el.t}'s drag names a select with no name`;
|
|
178
|
+
if (found.denied) return `a ${el.t}'s ${name} names a control hidden from a person`;
|
|
179
|
+
}
|
|
180
|
+
return null;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
const namesWhy = (root ) => {
|
|
184
|
+
for (const el of elementsOf(root))
|
|
185
|
+
for (const name of ['enter', 'copies']) {
|
|
186
|
+
const id = el.a[name];
|
|
187
|
+
if (id === undefined) continue;
|
|
188
|
+
const found = namedIn(root, id, root.a['hidden'] === true || root.a['aria-hidden'] === 'true');
|
|
189
|
+
if (found === null) return `a ${el.t}'s ${name} names no element of the tree`;
|
|
190
|
+
if (name === 'enter' && (found.el.t !== 'button' || found.el.press === undefined))
|
|
191
|
+
return `a ${el.t}'s enter names a ${found.el.t} that is no button with a press`;
|
|
192
|
+
if (found.denied) return `a ${el.t}'s ${name} names an element hidden from a person`;
|
|
193
|
+
}
|
|
194
|
+
return null;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
const nodeOf = (data , at , depth , walk , place ) => {
|
|
198
|
+
const { caps } = walk.allowed;
|
|
199
|
+
walk.nodes += 1;
|
|
200
|
+
if (walk.nodes > caps.nodes) return { why: `the tree holds more than ${caps.nodes} nodes` };
|
|
201
|
+
if (depth > caps.depth) return { why: `${at} stands deeper than ${caps.depth}` };
|
|
202
|
+
if (typeof data === 'string') {
|
|
203
|
+
if (data.includes('\0')) return { why: `${at} holds a null, which no text holds` };
|
|
204
|
+
return data.length <= caps.text ? data : { why: `${at} is too long a text` };
|
|
205
|
+
}
|
|
206
|
+
if (!isFields(data)) return { why: `${at} is no node` };
|
|
207
|
+
const parts = partsOf(data, at, walk);
|
|
208
|
+
if ('why' in parts) return parts;
|
|
209
|
+
const misplaced = drawnWhy(parts.t, place.parent) ?? placeWhy(parts.t, place.parent, place.within);
|
|
210
|
+
if (misplaced !== null) return { why: `${misplaced}, at ${at}` };
|
|
211
|
+
const c = childrenOf(parts, data['c'] ?? [], at, depth, walk, place);
|
|
212
|
+
return 'why' in c ? c : { ...parts, c };
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export const checkTree = (data , given = {}) => {
|
|
216
|
+
const allowed = { wear: given.wear ?? NO_WEAR, caps: given.caps ?? LIMITS };
|
|
217
|
+
try {
|
|
218
|
+
const read = nodeOf(data, 'the root', 0, { nodes: 0, sounds: 0, allowed }, { parent: null, within: new Set() });
|
|
219
|
+
if (typeof read === 'string') return { why: 'the root is a text, not an element' };
|
|
220
|
+
if ('why' in read) return read;
|
|
221
|
+
const dangling = refsWhy(read) ?? gesturesWhy(read) ?? namesWhy(read);
|
|
222
|
+
return dangling === null ? read : { why: dangling };
|
|
223
|
+
} catch (fault) {
|
|
224
|
+
if (fault instanceof RangeError) return { why: 'the tree stands deeper than this host walks' };
|
|
225
|
+
throw fault;
|
|
226
|
+
}
|
|
227
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Data, type Why } from '../data/index.js';
|
|
2
|
+
import { type Form } from './allow.js';
|
|
3
|
+
import type { Allowed, Attr } from './tree.js';
|
|
4
|
+
export declare const isText: (value: string, most: number) => boolean;
|
|
5
|
+
export declare const isWorld: (value: string) => boolean;
|
|
6
|
+
export declare const refOf: (value: string) => string | null;
|
|
7
|
+
export declare const valueOf: (form: Form, value: Data, at: string, allowed: Allowed) => Attr | Why;
|
|
8
|
+
export declare const isName: (value: Data | undefined) => value is string;
|
|
9
|
+
export declare const isClass: (name: string) => boolean;
|