@almadar/std 17.0.3 → 17.1.0
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/behaviors/lolo/auth/atoms/std-dev-personas.lolo +27 -2
- package/behaviors/lolo/cli/atoms/std-orb-goldens.lolo +6 -3
- package/behaviors/lolo/cli/atoms/std-orb-lint-mem-handles.lolo +54 -34
- package/behaviors/lolo/cli/atoms/std-orb-lint-os-grants.lolo +4 -4
- package/behaviors/lolo/cli/atoms/std-orb-mcp.lolo +16 -21
- package/behaviors/lolo/cli/atoms/std-orb-serve.lolo +24 -4
- package/behaviors/lolo/codec/atoms/std-lolo-kotlin.lolo +26 -3
- package/behaviors/lolo/codec/atoms/std-lolo-python.lolo +15 -2
- package/behaviors/lolo/codec/atoms/std-lolo-rust.lolo +27 -2
- package/behaviors/lolo/codec/atoms/std-lolo-source.lolo +251 -60
- package/behaviors/lolo/codec/atoms/std-lolo-swift.lolo +24 -1
- package/behaviors/lolo/codec/atoms/std-lolo-typescript.lolo +24 -3
- package/behaviors/lolo/connect/atoms/std-meta-ads.lolo +4 -4
- package/behaviors/lolo/connect/atoms/std-stdio-lines.lolo +7 -4
- package/behaviors/lolo/connect/atoms/std-youtube.lolo +9 -9
- package/behaviors/lolo/dev/atoms/std-guest-session.lolo +122 -10
- package/behaviors/lolo/dev/atoms/std-mock-seed-marks.lolo +66 -0
- package/behaviors/lolo/dev/organisms/std-behavior-playground.lolo +5 -2
- package/behaviors/lolo/dev/organisms/std-launchpad.lolo +4 -3
- package/behaviors/lolo/gpu/atoms/std-gpu-compute.lolo +329 -0
- package/behaviors/lolo/net/atoms/std-http-client.lolo +4 -4
- package/behaviors/lolo/net/atoms/std-http-fetch.lolo +6 -6
- package/behaviors/lolo/net/atoms/std-npm-lookup.lolo +1 -1
- package/behaviors/lolo/net/atoms/std-npm-registry.lolo +2 -2
- package/behaviors/lolo/spec/auth/dev-personas.replay.goldens.json +263 -2
- package/behaviors/lolo/spec/cli/lint-all.lolo +1 -0
- package/behaviors/lolo/spec/cli/lint-item-action-event.replay.goldens.json +9 -9
- package/behaviors/lolo/spec/cli/lint-mem-handles.replay.goldens.json +3021 -1
- package/behaviors/lolo/spec/cli/lint-os-grants.replay.goldens.json +284 -12
- package/behaviors/lolo/spec/cli/mcp-server.replay.goldens.json +51 -55
- package/behaviors/lolo/spec/cli/orb-compile.replay.goldens.json +10 -4
- package/behaviors/lolo/spec/codec/lolo-kotlin.replay.goldens.json +7496 -7497
- package/behaviors/lolo/spec/codec/lolo-python.replay.goldens.json +341 -3
- package/behaviors/lolo/spec/codec/lolo-rust.replay.goldens.json +18931 -6142
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/compose-pair.lolo +44 -0
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/config-read.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/divide-default.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/divide-plain.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/get-past-end.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/list-call.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/list-plain.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/minus-binary.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/minus-unary.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/nested-let.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/no-machine.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/no-template.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/nth-past-end.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/nth-raw.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/ports-call.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/range-one.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/range-two.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/router-trio.lolo +88 -0
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/store-pair.lolo +62 -0
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/string-literal.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.gen/knobs.py +27 -1
- package/behaviors/lolo/spec/codec/lolo-source.gen/src_assemble.in +54 -2
- package/behaviors/lolo/spec/codec/lolo-source.gen/src_finish.in +1 -1
- package/behaviors/lolo/spec/codec/lolo-source.gen/src_fold.in +24 -4
- package/behaviors/lolo/spec/codec/lolo-source.gen/src_head.in +8 -3
- package/behaviors/lolo/spec/codec/lolo-source.gen/src_prepare.in +6 -2
- package/behaviors/lolo/spec/codec/lolo-source.gen/src_trait.in +12 -2
- package/behaviors/lolo/spec/codec/lolo-source.parity/agent-step.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.parity/agent-step.server.lolo +1 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/chunk.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.parity/chunk.server.lolo +1 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/compose-pair.events.json +36 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/compose-pair.replay.goldens.json +91 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/cosine.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.parity/cosine.server.lolo +1 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/compose-pair.kt +31 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/router-trio.kt +31 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/store-pair.kt +31 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/compose-pair.py +18 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/router-trio.py +18 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/store-pair.py +17 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/compose-pair.rs +37 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/router-trio.rs +37 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/store-pair.rs +36 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/compose-pair.swift +24 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/router-trio.swift +24 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/store-pair.swift +23 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/compose-pair.mts +24 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/router-trio.mts +24 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/store-pair.mts +22 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/recall-at-k.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.parity/recall-at-k.server.lolo +1 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/router-trio.events.json +18 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/router-trio.replay.goldens.json +87 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/store-pair.events.json +58 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/store-pair.replay.goldens.json +238 -0
- package/behaviors/lolo/spec/codec/lolo-swift.replay.goldens.json +15599 -2204
- package/behaviors/lolo/spec/codec/lolo-typescript.replay.goldens.json +28930 -28929
- package/behaviors/lolo/spec/connect/bearer-api.replay.goldens.json +1 -1
- package/behaviors/lolo/spec/connect/esign.replay.goldens.json +3 -3
- package/behaviors/lolo/spec/connect/github.replay.goldens.json +13 -13
- package/behaviors/lolo/spec/connect/google-calendar.replay.goldens.json +2 -2
- package/behaviors/lolo/spec/connect/image.replay.goldens.json +1 -1
- package/behaviors/lolo/spec/connect/meta-ads.replay.goldens.json +2 -2
- package/behaviors/lolo/spec/connect/stdio-lines.replay.goldens.json +90 -0
- package/behaviors/lolo/spec/connect/twilio.replay.goldens.json +2 -2
- package/behaviors/lolo/spec/connect/youtube.replay.goldens.json +1 -1
- package/behaviors/lolo/spec/dev/guest-session.replay.goldens.json +824 -0
- package/behaviors/lolo/spec/dev/mock-seed-marks.replay.goldens.json +365 -0
- package/behaviors/lolo/spec/dev/verify-walk.replay.goldens.json +2 -1
- package/behaviors/lolo/spec/gpu/gpu-compute.replay.goldens.json +784 -0
- package/behaviors/lolo/spec/mem/mem-buffer.replay.goldens.json +97 -1
- package/behaviors/lolo/spec/ml/vector-write.goldens.json +1 -1
- package/behaviors/lolo/spec/ml/vector-write.replay.goldens.json +2 -2
- package/behaviors/lolo/spec/net/http-client-call-host.replay.goldens.json +3 -3
- package/behaviors/lolo/spec/net/http-client-env-host.replay.goldens.json +3 -3
- package/behaviors/lolo/spec/net/http-client.replay.goldens.json +56 -56
- package/behaviors/lolo/spec/net/http-fetch.replay.goldens.json +2 -2
- package/behaviors/lolo/spec/net/npm-lookup.replay.goldens.json +1 -1
- package/behaviors/lolo/spec/net/npm-registry.replay.goldens.json +2 -2
- package/behaviors/lolo/spec/net/server-declared-traits.replay.goldens.json +6 -3
- package/behaviors/lolo/spec/net/server-external-inputs.replay.goldens.json +16 -8
- package/behaviors/lolo/spec/net/server-retargeted-leg.replay.goldens.json +4 -2
- package/behaviors/lolo/spec/net/server-untargeted-discovery.replay.goldens.json +50 -45
- package/behaviors/lolo/spec/ops/llm-spend-board.replay.goldens.json +112 -16
- package/behaviors/lolo/spec/store/firestore-twin.replay.goldens.json +1 -1
- package/behaviors/lolo/spec/store/row-store-postgres.gen/record_real_sql.py +1 -1
- package/behaviors/lolo/spec/ui/game/fx-particles.replay.goldens.json +37 -0
- package/behaviors/lolo/ui/avl/atoms/std-avl-cosmic-zoom.lolo +2 -2
- package/behaviors/lolo/ui/game/atoms/std-fx-particles.lolo +10 -1
- package/behaviors/lolo/ui/game/atoms/ui-draw-fx-layer.lolo +4 -4
- package/behaviors/lolo/ui/game/organisms/std-arcade-board-3d.lolo +9 -9
- package/behaviors/lolo/ui/game/organisms/std-crew-board-2d.lolo +4 -4
- package/behaviors/lolo/ui/game/organisms/std-dungeon-board-2d.lolo +5 -5
- package/behaviors/lolo/ui/game/organisms/std-market-board-3d.lolo +9 -9
- package/behaviors/lolo/ui/game/organisms/std-objective-board-3d.lolo +9 -9
- package/behaviors/lolo/ui/game/organisms/std-platformer-board-2d.lolo +5 -5
- package/behaviors/lolo/ui/game/organisms/std-platformer-puzzle.lolo +4 -4
- package/behaviors/lolo/ui/game/organisms/std-survival-board-3d.lolo +9 -9
- package/behaviors/lolo/ui/game/organisms/std-tactics-board-2d.lolo +5 -5
- package/behaviors/lolo/ui/game/organisms/std-tactics-board-3d.lolo +9 -9
- package/behaviors/registry/auth/atoms/std-dev-personas.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-goldens.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-mem-handles.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-os-grants.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-mcp.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-serve.orb +1 -1
- package/behaviors/registry/codec/atoms/std-lolo-kotlin.orb +1 -1
- package/behaviors/registry/codec/atoms/std-lolo-python.orb +1 -1
- package/behaviors/registry/codec/atoms/std-lolo-rust.orb +1 -1
- package/behaviors/registry/codec/atoms/std-lolo-source.orb +1 -1
- package/behaviors/registry/codec/atoms/std-lolo-swift.orb +1 -1
- package/behaviors/registry/codec/atoms/std-lolo-typescript.orb +1 -1
- package/behaviors/registry/connect/atoms/std-meta-ads.orb +1 -1
- package/behaviors/registry/connect/atoms/std-stdio-lines.orb +1 -1
- package/behaviors/registry/connect/atoms/std-youtube.orb +1 -1
- package/behaviors/registry/dev/atoms/std-guest-session.orb +1 -1
- package/behaviors/registry/dev/atoms/std-mock-seed-marks.orb +1 -0
- package/behaviors/registry/dev/organisms/std-behavior-playground.orb +37 -0
- package/behaviors/registry/dev/organisms/std-launchpad.orb +25 -0
- package/behaviors/registry/gpu/atoms/std-gpu-compute.orb +1 -0
- package/behaviors/registry/net/atoms/std-http-client.orb +1 -1
- package/behaviors/registry/net/atoms/std-http-fetch.orb +1 -1
- package/behaviors/registry/net/atoms/std-npm-lookup.orb +1 -1
- package/behaviors/registry/net/atoms/std-npm-registry.orb +1 -1
- package/behaviors/registry/spec/cli/lint-all.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/compose-pair.orb +1 -0
- package/behaviors/registry/spec/codec/lolo-source.fixtures/config-read.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/divide-default.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/divide-plain.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/get-past-end.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/list-call.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/list-plain.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/minus-binary.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/minus-unary.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/nested-let.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/no-machine.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/no-template.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/nth-past-end.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/nth-raw.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/ports-call.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/range-one.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/range-two.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/router-trio.orb +1 -0
- package/behaviors/registry/spec/codec/lolo-source.fixtures/store-pair.orb +1 -0
- package/behaviors/registry/spec/codec/lolo-source.fixtures/string-literal.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/agent-step.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/agent-step.server.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/chunk.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/chunk.server.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/cosine.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/cosine.server.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/recall-at-k.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/recall-at-k.server.orb +1 -1
- package/behaviors/registry/ui/avl/atoms/std-avl-cosmic-zoom.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-fx-particles.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-fx-layer.orb +1 -1
- package/behaviors/registry/ui/game/organisms/std-arcade-board-3d.orb +20 -13
- package/behaviors/registry/ui/game/organisms/std-crew-board-2d.orb +9 -5
- package/behaviors/registry/ui/game/organisms/std-dungeon-board-2d.orb +17 -7
- package/behaviors/registry/ui/game/organisms/std-market-board-3d.orb +19 -15
- package/behaviors/registry/ui/game/organisms/std-objective-board-3d.orb +15 -12
- package/behaviors/registry/ui/game/organisms/std-platformer-board-2d.orb +17 -7
- package/behaviors/registry/ui/game/organisms/std-platformer-puzzle.orb +4 -0
- package/behaviors/registry/ui/game/organisms/std-survival-board-3d.orb +15 -12
- package/behaviors/registry/ui/game/organisms/std-tactics-board-2d.orb +13 -6
- package/behaviors/registry/ui/game/organisms/std-tactics-board-3d.orb +14 -12
- package/canonical-operators.json +1426 -103
- package/dist/{chunk-EK22WRB6.js → chunk-2UGHBVU2.js} +2 -2
- package/dist/{chunk-GDMH5T4J.js → chunk-3DK7GI2C.js} +2 -2
- package/dist/chunk-3MDASC5C.js +26 -0
- package/dist/{chunk-K5ZI27PB.js → chunk-3PHO4RRF.js} +1 -1
- package/dist/{chunk-7IEMMYM6.js → chunk-4MJCLAZW.js} +1 -1
- package/dist/{chunk-W4IEV4BY.js → chunk-55JPIL7A.js} +2 -2
- package/dist/{chunk-RUGBZTV3.js → chunk-66BLZLFI.js} +1 -1
- package/dist/{chunk-YWFISV7L.js → chunk-66RAJFOD.js} +1 -1
- package/dist/{chunk-JWOWWGNZ.js → chunk-6ED4SUC6.js} +1 -1
- package/dist/{chunk-LL7P6EII.js → chunk-6KFCHNE2.js} +2 -2
- package/dist/{chunk-GFBL2TW6.js → chunk-A4QB3Y6L.js} +1 -1
- package/dist/chunk-BVWMLS32.js +123 -0
- package/dist/{chunk-5KQCGSNC.js → chunk-CRKVDCY7.js} +1 -1
- package/dist/{chunk-WHQDLLC3.js → chunk-EKWEY4OJ.js} +1 -1
- package/dist/{chunk-Y3BRVNYK.js → chunk-EU22GCGV.js} +2 -2
- package/dist/{chunk-XQPYTDZ4.js → chunk-FB6PKNRS.js} +1 -1
- package/dist/{chunk-UX3MDFX6.js → chunk-FSVOJQLP.js} +1 -1
- package/dist/{chunk-LDBD2FBQ.js → chunk-GAKLBWBR.js} +1 -1
- package/dist/{chunk-C3IEMPRZ.js → chunk-GO3FKBV2.js} +2 -2
- package/dist/{chunk-LZSPEHSM.js → chunk-GPDTJHYY.js} +1 -1
- package/dist/{chunk-W5ABMOXU.js → chunk-JQBWLH5V.js} +1 -1
- package/dist/{chunk-63X6RNY6.js → chunk-KKW3JHTC.js} +1 -1
- package/dist/{chunk-5PLJE42Q.js → chunk-LF2EZVAM.js} +1 -1
- package/dist/{chunk-RXWBYWQB.js → chunk-LGCKOZP3.js} +2 -2
- package/dist/{chunk-JJEADYP7.js → chunk-LMZ6XJFB.js} +2 -2
- package/dist/{chunk-CWYSQZJU.js → chunk-M2YQNSAZ.js} +2 -2
- package/dist/{chunk-GNCKJV3P.js → chunk-MKWHYBIS.js} +1 -1
- package/dist/{chunk-ZB2CLGEG.js → chunk-MXBGYTYF.js} +1 -1
- package/dist/{chunk-UN76TRSK.js → chunk-NH6MXHZR.js} +41 -41
- package/dist/{chunk-II2VW7T6.js → chunk-ODBIX4DB.js} +1 -1
- package/dist/{chunk-3F3CNWOG.js → chunk-OYDQR6DT.js} +2 -2
- package/dist/{chunk-FVL6BT6L.js → chunk-PD6POR44.js} +1 -1
- package/dist/{chunk-U6USXZ5M.js → chunk-PHFT3QNS.js} +2 -2
- package/dist/{chunk-RJYKIZMS.js → chunk-PQZ6PVKG.js} +2 -2
- package/dist/{chunk-TQPQXCSZ.js → chunk-Q6NHXIOZ.js} +2 -2
- package/dist/{chunk-KYGWVCTM.js → chunk-QMDVYTB7.js} +1 -1
- package/dist/{chunk-XKTATY45.js → chunk-RW2KMSG5.js} +4 -4
- package/dist/{chunk-UHNSPTFT.js → chunk-SA2ZS24W.js} +1 -1
- package/dist/{chunk-6YPUQK36.js → chunk-SFWP4UMK.js} +2 -2
- package/dist/{chunk-ZZYLFHBU.js → chunk-TLNEQA4D.js} +1 -1
- package/dist/{chunk-RGTBRWWA.js → chunk-TOODE5AD.js} +2 -2
- package/dist/{chunk-QGWAHOFR.js → chunk-U57GY7SM.js} +2 -2
- package/dist/{chunk-FDJZKB7J.js → chunk-UIDQQJSX.js} +1 -1
- package/dist/{chunk-LLH3WXM3.js → chunk-UVFP2B7I.js} +1 -1
- package/dist/{chunk-4OF7727E.js → chunk-VEGZPCTZ.js} +2 -2
- package/dist/{chunk-73YUPNIT.js → chunk-VXN4V7LC.js} +1 -1
- package/dist/{chunk-4D3W6AAE.js → chunk-YHQVZWPG.js} +1 -1
- package/dist/{chunk-XXYBHYLM.js → chunk-YQO3TO66.js} +2 -2
- package/dist/{chunk-YZAYFR5A.js → chunk-ZSJ3GEOJ.js} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +50 -50
- package/dist/modules/anim.js +2 -2
- package/dist/modules/array.js +2 -2
- package/dist/modules/auth.js +3 -3
- package/dist/modules/behavior.js +2 -2
- package/dist/modules/bit.js +2 -2
- package/dist/modules/browser.js +2 -2
- package/dist/modules/bytes.js +2 -2
- package/dist/modules/codec.js +3 -3
- package/dist/modules/composition.js +2 -2
- package/dist/modules/core.js +2 -2
- package/dist/modules/csv.js +2 -2
- package/dist/modules/ffi.js +3 -3
- package/dist/modules/format.js +2 -2
- package/dist/modules/geo.js +2 -2
- package/dist/modules/gpu.d.ts +12 -0
- package/dist/modules/gpu.js +3 -0
- package/dist/modules/grid.js +2 -2
- package/dist/modules/i18n.js +2 -2
- package/dist/modules/index.d.ts +1 -2
- package/dist/modules/index.js +45 -46
- package/dist/modules/json.js +2 -2
- package/dist/modules/kernel.js +3 -3
- package/dist/modules/kv.js +3 -3
- package/dist/modules/llm.js +2 -2
- package/dist/modules/math.js +2 -2
- package/dist/modules/mem.js +3 -3
- package/dist/modules/object.js +2 -2
- package/dist/modules/os-common.d.ts +1 -1
- package/dist/modules/os-common.js +2 -2
- package/dist/modules/os-desktop.js +3 -3
- package/dist/modules/os-dev.js +3 -3
- package/dist/modules/os-dir.js +3 -3
- package/dist/modules/os-env-stdio.js +3 -3
- package/dist/modules/os-fs.js +3 -3
- package/dist/modules/os-net.js +3 -3
- package/dist/modules/os-path.js +3 -3
- package/dist/modules/os-process.js +3 -3
- package/dist/modules/os-sys.js +3 -3
- package/dist/modules/os-time-users.js +3 -3
- package/dist/modules/os.js +13 -13
- package/dist/modules/path.js +2 -2
- package/dist/modules/prob.js +2 -2
- package/dist/modules/program.js +2 -2
- package/dist/modules/session.js +2 -2
- package/dist/modules/str.js +2 -2
- package/dist/modules/time.js +2 -2
- package/dist/modules/validate.js +2 -2
- package/dist/modules/vector.js +2 -2
- package/dist/modules/workspace.js +2 -2
- package/dist/modules/xml.js +2 -2
- package/dist/modules/yaml.js +2 -2
- package/dist/registry.d.ts +2 -2
- package/dist/registry.js +49 -49
- package/dist/{types-BA4LkhNJ.d.ts → types-CgiGhK6t.d.ts} +17 -3
- package/package.json +5 -5
- package/dist/chunk-F5TP25JA.js +0 -26
- package/dist/chunk-NE4WSTN7.js +0 -26
- package/dist/modules/trace.d.ts +0 -15
- package/dist/modules/trace.js +0 -2
- /package/dist/{chunk-SHSBTDDX.js → chunk-QUQ33UXH.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { osEffect, arg, OS_PATH, OS_PERMISSION_BITS, OS_ENTRY } from './chunk-
|
|
2
|
-
import { NUMBER, shape, BOOLEAN, STRING, list } from './chunk-
|
|
1
|
+
import { osEffect, arg, OS_PATH, OS_PERMISSION_BITS, OS_ENTRY } from './chunk-3PHO4RRF.js';
|
|
2
|
+
import { NUMBER, shape, BOOLEAN, STRING, list } from './chunk-OYDQR6DT.js';
|
|
3
3
|
|
|
4
4
|
// modules/os-dir.ts
|
|
5
5
|
var OS_DIR_OPERATORS = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { withKey } from './chunk-
|
|
2
|
-
import { EMIT_ENVELOPE, shape, STRING, BOOLEAN } from './chunk-
|
|
1
|
+
import { withKey } from './chunk-3PHO4RRF.js';
|
|
2
|
+
import { EMIT_ENVELOPE, shape, STRING, BOOLEAN } from './chunk-OYDQR6DT.js';
|
|
3
3
|
|
|
4
4
|
// modules/auth.ts
|
|
5
5
|
var AUTH_OPERATORS = {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OS_TIME_USERS_OPERATORS } from './chunk-PHFT3QNS.js';
|
|
2
|
+
import { OS_DEV_OPERATORS } from './chunk-LGCKOZP3.js';
|
|
3
|
+
import { OS_DIR_OPERATORS } from './chunk-2UGHBVU2.js';
|
|
4
|
+
import { OS_ENV_STDIO_OPERATORS } from './chunk-Q6NHXIOZ.js';
|
|
5
|
+
import { OS_FS_OPERATORS } from './chunk-6KFCHNE2.js';
|
|
6
|
+
import { OS_NET_OPERATORS } from './chunk-LMZ6XJFB.js';
|
|
7
|
+
import { OS_PATH_OPERATORS } from './chunk-SFWP4UMK.js';
|
|
8
|
+
import { OS_PROCESS_OPERATORS } from './chunk-GO3FKBV2.js';
|
|
9
|
+
import { OS_SYS_OPERATORS } from './chunk-TOODE5AD.js';
|
|
10
|
+
import { OS_DESKTOP_OPERATORS } from './chunk-U57GY7SM.js';
|
|
11
|
+
|
|
12
|
+
// modules/os.ts
|
|
13
|
+
var OS_OPERATORS = {
|
|
14
|
+
...OS_FS_OPERATORS,
|
|
15
|
+
...OS_DIR_OPERATORS,
|
|
16
|
+
...OS_PATH_OPERATORS,
|
|
17
|
+
...OS_PROCESS_OPERATORS,
|
|
18
|
+
...OS_ENV_STDIO_OPERATORS,
|
|
19
|
+
...OS_NET_OPERATORS,
|
|
20
|
+
...OS_TIME_USERS_OPERATORS,
|
|
21
|
+
...OS_SYS_OPERATORS,
|
|
22
|
+
...OS_DESKTOP_OPERATORS,
|
|
23
|
+
...OS_DEV_OPERATORS
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { OS_OPERATORS };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { union, lit, shape, STRING, NUMBER, BYTES, list, openShape, BOOLEAN, EMIT_ENVELOPE } from './chunk-
|
|
1
|
+
import { union, lit, shape, STRING, NUMBER, BYTES, list, openShape, BOOLEAN, EMIT_ENVELOPE } from './chunk-OYDQR6DT.js';
|
|
2
2
|
|
|
3
3
|
// modules/os-common.ts
|
|
4
4
|
var OS_ANCHOR = union(lit("cwd"), lit("exe-dir"), shape({ env: STRING }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OS_SEGMENT_ENCODE } from './chunk-
|
|
2
|
-
import { union, lit, nullable, STRING, BYTES, INT, shape, list, BOOLEAN, NUMBER } from './chunk-
|
|
1
|
+
import { OS_SEGMENT_ENCODE } from './chunk-3PHO4RRF.js';
|
|
2
|
+
import { union, lit, nullable, STRING, BYTES, INT, shape, list, BOOLEAN, NUMBER } from './chunk-OYDQR6DT.js';
|
|
3
3
|
|
|
4
4
|
// modules/codec.ts
|
|
5
5
|
var DIGEST_ENCODING = union(lit("hex"), lit("base64"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { union, lit, shape, STRING, BOOLEAN, nullable, NUMBER, list, mapOf, BYTES, openShape } from './chunk-
|
|
1
|
+
import { union, lit, shape, STRING, BOOLEAN, nullable, NUMBER, list, mapOf, BYTES, openShape } from './chunk-OYDQR6DT.js';
|
|
2
2
|
|
|
3
3
|
// modules/browser.ts
|
|
4
4
|
var EVENT_KEY = { kind: "eventKey" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { osEffect, arg, OS_PATH, OS_HANDLE, OS_DATA, OS_PERMISSION_BITS } from './chunk-
|
|
2
|
-
import { union, lit, STRING, shape, NUMBER, BOOLEAN, BYTES } from './chunk-
|
|
1
|
+
import { osEffect, arg, OS_PATH, OS_HANDLE, OS_DATA, OS_PERMISSION_BITS } from './chunk-3PHO4RRF.js';
|
|
2
|
+
import { union, lit, STRING, shape, NUMBER, BOOLEAN, BYTES } from './chunk-OYDQR6DT.js';
|
|
3
3
|
|
|
4
4
|
// modules/os-fs.ts
|
|
5
5
|
var SEEK_WHENCE = union(lit("set"), lit("cur"), lit("end"));
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { arg, osEffect } from './chunk-3PHO4RRF.js';
|
|
2
|
+
import { union, lit, mapOf, STRING, INT, shape, list, NUMBER, BYTES } from './chunk-OYDQR6DT.js';
|
|
3
|
+
|
|
4
|
+
// modules/gpu.ts
|
|
5
|
+
var DEVICE = "GpuDevice";
|
|
6
|
+
var BUFFER = "GpuBuffer";
|
|
7
|
+
var TEXTURE = "GpuTexture";
|
|
8
|
+
var SAMPLER = "GpuSampler";
|
|
9
|
+
var SHADER = "GpuShader";
|
|
10
|
+
var PIPELINE = "GpuPipeline";
|
|
11
|
+
var BIND_GROUP = "GpuBindGroup";
|
|
12
|
+
var QUERY_SET = "GpuQuerySet";
|
|
13
|
+
var BORROW = "Borrow";
|
|
14
|
+
var GPU_FEATURE = union(lit("timestamp-query"), lit("shader-f16"), lit("float32-filterable"));
|
|
15
|
+
var GPU_BUFFER_USAGE = union(lit("map-read"), lit("map-write"), lit("copy-src"), lit("copy-dst"), lit("index"), lit("vertex"), lit("uniform"), lit("storage"), lit("indirect"), lit("query-resolve"));
|
|
16
|
+
var GPU_TEXTURE_USAGE = union(lit("copy-src"), lit("copy-dst"), lit("texture-binding"), lit("storage-binding"), lit("render-attachment"));
|
|
17
|
+
var GPU_FORMAT = union(lit("r8unorm"), lit("rg8unorm"), lit("rgba8unorm"), lit("rgba8unorm-srgb"), lit("bgra8unorm"), lit("bgra8unorm-srgb"), lit("r16float"), lit("rg16float"), lit("rgba16float"), lit("r32float"), lit("rg32float"), lit("rgba32float"), lit("r32uint"), lit("r32sint"), lit("rgba8uint"), lit("rgba8sint"), lit("rgba32uint"), lit("rgba32sint"), lit("depth32float"));
|
|
18
|
+
var GPU_LIMITS = mapOf(STRING, INT);
|
|
19
|
+
var GPU_DEVICE_DESC = shape({ powerPreference: union(lit("low-power"), lit("high-performance")), features: list(GPU_FEATURE) }, ["powerPreference", "features"]);
|
|
20
|
+
var GPU_BUFFER_DESC = shape({ size: INT, usage: list(GPU_BUFFER_USAGE) });
|
|
21
|
+
var GPU_TEXTURE_DESC = shape({ width: INT, height: INT, depth: INT, format: GPU_FORMAT, usage: list(GPU_TEXTURE_USAGE), mips: INT }, ["depth", "mips"]);
|
|
22
|
+
var GPU_SAMPLER_DESC = shape({ filter: union(lit("nearest"), lit("linear")), address: union(lit("clamp"), lit("repeat"), lit("mirror")) }, ["filter", "address"]);
|
|
23
|
+
var GPU_QUERY_DESC = shape({ count: INT });
|
|
24
|
+
var GPU_PIPELINE_DESC = shape({ kind: union(lit("compute"), lit("render")), shader: SHADER, entry: STRING, fragment: STRING, targets: list(GPU_FORMAT) }, ["fragment", "targets"]);
|
|
25
|
+
var GPU_BINDING = shape({ binding: INT, buffer: BUFFER, texture: TEXTURE, sampler: SAMPLER, offset: INT, size: INT }, ["buffer", "texture", "sampler", "offset", "size"]);
|
|
26
|
+
var GPU_RESOURCE = union(BUFFER, TEXTURE);
|
|
27
|
+
var GPU_COMMAND = union(
|
|
28
|
+
shape({ compute: shape({ pipeline: PIPELINE, bindGroups: list(BIND_GROUP), dispatch: list(INT) }) }),
|
|
29
|
+
shape({ render: shape({ pipeline: PIPELINE, bindGroups: list(BIND_GROUP), target: TEXTURE, vertices: INT, instances: INT, clear: list(NUMBER) }, ["instances", "clear"]) }),
|
|
30
|
+
shape({ copy: shape({ from: GPU_RESOURCE, to: GPU_RESOURCE, fromOffset: INT, toOffset: INT, size: INT }, ["fromOffset", "toOffset", "size"]) }),
|
|
31
|
+
shape({ clear: shape({ buffer: BUFFER, offset: INT, size: INT }, ["offset", "size"]) }),
|
|
32
|
+
shape({ write: shape({ buffer: BUFFER, texture: TEXTURE, offset: INT, data: union(BYTES, BORROW) }, ["buffer", "texture", "offset"]) }),
|
|
33
|
+
shape({ read: shape({ buffer: BUFFER, offset: INT, length: INT }, ["offset", "length"]) }),
|
|
34
|
+
shape({ timestamp: shape({ querySet: QUERY_SET, index: INT }) })
|
|
35
|
+
);
|
|
36
|
+
var GPU_HANDLE = union(BUFFER, TEXTURE, SAMPLER, SHADER, PIPELINE, BIND_GROUP, QUERY_SET);
|
|
37
|
+
function gpuEffect(def) {
|
|
38
|
+
return {
|
|
39
|
+
...osEffect({ answer: def.answer, grant: def.grant ?? [], description: def.description, params: def.params, example: def.example }),
|
|
40
|
+
module: "gpu",
|
|
41
|
+
category: "std-gpu",
|
|
42
|
+
runsOn: "any"
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
var DEVICE_ARG = arg("device", DEVICE, "The open GPU device the object belongs to");
|
|
46
|
+
var NO_GRANT = "Needs no grant beyond holding the handle (the grant was checked at gpu/device-open).";
|
|
47
|
+
var FAILS = "Failure kind: closed (the device or a handle is not live), invalid (a malformed descriptor, an unknown usage or format, a size beyond the granted maxBytes), unsupported (a host without a GPU), io (the device failed).";
|
|
48
|
+
var GPU_OPERATORS = {
|
|
49
|
+
"gpu/device-open": gpuEffect({
|
|
50
|
+
answer: shape({ device: DEVICE, features: list(GPU_FEATURE), limits: GPU_LIMITS }),
|
|
51
|
+
grant: [{ kind: "gpu", access: "open" }],
|
|
52
|
+
description: 'Open a GPU device (grant gpu: { "device:<maxBytes>": [open] }). powerPreference is "low-power" or "high-performance"; features lists the optional device features to require. Completion is deferred: the host answers when the adapter is ready. Success payload: { device, features, limits } (a sealed GpuDevice handle, the features granted, and the device limits as a map of limit name to integer). Failure kind: denied (no open grant), invalid (an unknown power preference or feature), unsupported (a host without a GPU: no adapter, wasm without WebGPU), io (the adapter or device request failed).',
|
|
53
|
+
params: [arg("desc", GPU_DEVICE_DESC, "Device request: { powerPreference?, features? }")],
|
|
54
|
+
example: '["gpu/device-open", { "powerPreference": "high-performance" }, { "emit": { "success": "GPU_READY", "failure": "GPU_FAILED" } }]'
|
|
55
|
+
}),
|
|
56
|
+
"gpu/device-close": gpuEffect({
|
|
57
|
+
answer: shape({}),
|
|
58
|
+
description: `Close a GPU device and drop every object created on it; handles of the device are no longer live. ${NO_GRANT} Success payload: {}. Failure kind: closed (the device is not live).`,
|
|
59
|
+
params: [DEVICE_ARG],
|
|
60
|
+
example: '["gpu/device-close", "@entity.device", { "emit": { "failure": "GPU_FAILED" } }]'
|
|
61
|
+
}),
|
|
62
|
+
"gpu/buffer-create": gpuEffect({
|
|
63
|
+
answer: shape({ buffer: BUFFER }),
|
|
64
|
+
description: `Create a buffer of size bytes; usage lists the buffer usages ("map-read", "map-write", "copy-src", "copy-dst", "index", "vertex", "uniform", "storage", "indirect", "query-resolve"). The size counts against the maxBytes of the device grant. ${NO_GRANT} Success payload: { buffer } (a sealed GpuBuffer handle). ${FAILS}`,
|
|
65
|
+
params: [DEVICE_ARG, arg("desc", GPU_BUFFER_DESC, "Buffer descriptor: { size, usage }")],
|
|
66
|
+
example: '["gpu/buffer-create", "@entity.device", { "size": 4096, "usage": ["storage", "copy-src", "copy-dst"] }, { "emit": { "success": "BUFFER_READY", "failure": "GPU_FAILED" } }]'
|
|
67
|
+
}),
|
|
68
|
+
"gpu/texture-create": gpuEffect({
|
|
69
|
+
answer: shape({ texture: TEXTURE }),
|
|
70
|
+
description: `Create a texture of width by height texels (depth defaults to 1, mips to 1) in the given format (for example "rgba8unorm"); usage lists the texture usages ("copy-src", "copy-dst", "texture-binding", "storage-binding", "render-attachment"). ${NO_GRANT} Success payload: { texture } (a sealed GpuTexture handle). ${FAILS}`,
|
|
71
|
+
params: [DEVICE_ARG, arg("desc", GPU_TEXTURE_DESC, "Texture descriptor: { width, height, depth?, format, usage, mips? }")],
|
|
72
|
+
example: '["gpu/texture-create", "@entity.device", { "width": 256, "height": 256, "format": "rgba8unorm", "usage": ["render-attachment", "copy-src"] }, { "emit": { "success": "TEXTURE_READY", "failure": "GPU_FAILED" } }]'
|
|
73
|
+
}),
|
|
74
|
+
"gpu/sampler-create": gpuEffect({
|
|
75
|
+
answer: shape({ sampler: SAMPLER }),
|
|
76
|
+
description: `Create a sampler; filter is "nearest" or "linear", address is "clamp", "repeat" or "mirror". ${NO_GRANT} Success payload: { sampler } (a sealed GpuSampler handle). ${FAILS}`,
|
|
77
|
+
params: [DEVICE_ARG, arg("desc", GPU_SAMPLER_DESC, "Sampler descriptor: { filter?, address? }")],
|
|
78
|
+
example: '["gpu/sampler-create", "@entity.device", { "filter": "linear", "address": "repeat" }, { "emit": { "success": "SAMPLER_READY", "failure": "GPU_FAILED" } }]'
|
|
79
|
+
}),
|
|
80
|
+
"gpu/query-create": gpuEffect({
|
|
81
|
+
answer: shape({ querySet: QUERY_SET }),
|
|
82
|
+
description: `Create a timestamp query set of count slots; a gpu/submit timestamp command writes one slot. ${NO_GRANT} Success payload: { querySet } (a sealed GpuQuerySet handle). ${FAILS}`,
|
|
83
|
+
params: [DEVICE_ARG, arg("desc", GPU_QUERY_DESC, "Query set descriptor: { count }")],
|
|
84
|
+
example: '["gpu/query-create", "@entity.device", { "count": 2 }, { "emit": { "success": "QUERY_READY", "failure": "GPU_FAILED" } }]'
|
|
85
|
+
}),
|
|
86
|
+
"gpu/shader-create": gpuEffect({
|
|
87
|
+
answer: shape({ shader: SHADER }),
|
|
88
|
+
description: `Compile a WGSL shader module from source text. ${NO_GRANT} Success payload: { shader } (a sealed GpuShader handle). Failure kind: closed (the device is not live), invalid (the WGSL does not compile; the error carries the compiler message), unsupported (a host without a GPU), io (the device failed).`,
|
|
89
|
+
params: [DEVICE_ARG, arg("wgsl", STRING, "WGSL source text of the module")],
|
|
90
|
+
example: '["gpu/shader-create", "@entity.device", "@entity.wgsl", { "emit": { "success": "SHADER_READY", "failure": "GPU_FAILED" } }]'
|
|
91
|
+
}),
|
|
92
|
+
"gpu/pipeline-create": gpuEffect({
|
|
93
|
+
answer: shape({ pipeline: PIPELINE }),
|
|
94
|
+
description: `Create a pipeline from a shader module. kind is "compute" or "render"; entry names the entry point (the vertex entry for a render pipeline); fragment names the fragment entry and targets lists the color target formats of a render pipeline. ${NO_GRANT} Success payload: { pipeline } (a sealed GpuPipeline handle whose kind field is the pipeline kind). ${FAILS}`,
|
|
95
|
+
params: [DEVICE_ARG, arg("desc", GPU_PIPELINE_DESC, "Pipeline descriptor: { kind, shader, entry, fragment?, targets? }")],
|
|
96
|
+
example: '["gpu/pipeline-create", "@entity.device", { "kind": "compute", "shader": "@entity.shader", "entry": "main" }, { "emit": { "success": "PIPELINE_READY", "failure": "GPU_FAILED" } }]'
|
|
97
|
+
}),
|
|
98
|
+
"gpu/bind-group-create": gpuEffect({
|
|
99
|
+
answer: shape({ bindGroup: BIND_GROUP }),
|
|
100
|
+
description: `Bind resources to bind group number group of a pipeline. Each entry is { binding, buffer?, texture?, sampler?, offset?, size? } with exactly one of buffer, texture or sampler; offset and size select a range of a buffer. ${NO_GRANT} Success payload: { bindGroup } (a sealed GpuBindGroup handle). ${FAILS}`,
|
|
101
|
+
params: [
|
|
102
|
+
arg("pipeline", PIPELINE, "The pipeline whose layout the group follows"),
|
|
103
|
+
arg("group", INT, "The bind group index in the pipeline layout"),
|
|
104
|
+
arg("entries", list(GPU_BINDING), "The bindings: { binding, buffer?, texture?, sampler?, offset?, size? }")
|
|
105
|
+
],
|
|
106
|
+
example: '["gpu/bind-group-create", "@entity.pipeline", 0, [{ "binding": 0, "buffer": "@entity.buffer" }], { "emit": { "success": "BINDGROUP_READY", "failure": "GPU_FAILED" } }]'
|
|
107
|
+
}),
|
|
108
|
+
"gpu/submit": gpuEffect({
|
|
109
|
+
answer: shape({ reads: list(BYTES) }),
|
|
110
|
+
grant: [{ kind: "gpu", access: "compute", commands: 1 }],
|
|
111
|
+
description: 'Run a command list on the device queue, in list order, as one job (grant gpu: { "device:<maxBytes>": [compute, render, readback] }). commands is a list of GpuCommand records, each with exactly one key: write { buffer, offset?, data } or write { texture, data } uploads bytes or a Borrow (the kernel reads the borrowed block) into a copy-dst buffer at offset (default 0) or into a whole copy-dst texture; compute { pipeline, bindGroups, dispatch } (dispatch is [x, y, z] workgroup counts); render { pipeline, bindGroups, target, vertices, instances?, clear? } (target is a GpuTexture, clear is an rgba list); copy { from, to, fromOffset?, toOffset?, size? } between buffers or textures; clear { buffer, offset?, size? }; timestamp { querySet, index }; read { buffer, offset?, length? } reads length bytes (default the rest of the buffer) at offset (default 0) of a copy-src buffer as they stand at that point of the list, or of a map-read buffer as it stands after the list when no later command writes it. Buffer offsets and lengths of write and read are multiples of 4. The grant is derived from a literal list: each compute entry needs compute, each render entry needs render, each read entry needs readback, other entries need nothing; a list that is not literal is checked at run time. Completion is deferred: the success event fires when the queue work is done. Success payload: { reads } (the bytes of each read entry, in list order; empty without one). Failure kind: denied (a command needs a kind the grant does not list), closed (the device, a handle or a Borrow is not live), invalid (a command with zero or several keys, a handle of another device, a bad dispatch, a write or read past its buffer or off a multiple of 4, a texture write that is not the whole texture, a buffer without the usage its command needs), io (the device failed).',
|
|
112
|
+
params: [DEVICE_ARG, arg("commands", list(GPU_COMMAND), "The commands, each a record with exactly one of write, compute, render, copy, clear, timestamp, read")],
|
|
113
|
+
example: '["gpu/submit", "@entity.device", [{ "write": { "buffer": "@entity.input", "data": "@payload.data" } }, { "compute": { "pipeline": "@entity.pipeline", "bindGroups": ["@entity.bindGroup"], "dispatch": [64, 1, 1] } }, { "read": { "buffer": "@entity.output" } }], { "emit": { "success": "SUBMITTED", "failure": "GPU_FAILED" } }]'
|
|
114
|
+
}),
|
|
115
|
+
"gpu/release": gpuEffect({
|
|
116
|
+
answer: shape({}),
|
|
117
|
+
description: `Release a GPU object (buffer, texture, sampler, shader, pipeline, bind group or query set) so the device frees it; a device is closed with gpu/device-close. ${NO_GRANT} Success payload: {}. Failure kind: closed (the handle is not live or already released).`,
|
|
118
|
+
params: [arg("handle", GPU_HANDLE, "Any GPU handle except a device")],
|
|
119
|
+
example: '["gpu/release", "@entity.buffer", { "emit": { "failure": "GPU_FAILED" } }]'
|
|
120
|
+
})
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
export { GPU_OPERATORS };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { list, shape, STRING, nullable, union, EMIT_ENVELOPE, openShape, BOOLEAN, EVENT_KEY, tv, rec, DESCRIPTION } from './chunk-
|
|
1
|
+
import { list, shape, STRING, nullable, union, EMIT_ENVELOPE, openShape, BOOLEAN, EVENT_KEY, tv, rec, DESCRIPTION } from './chunk-OYDQR6DT.js';
|
|
2
2
|
|
|
3
3
|
// modules/behavior.ts
|
|
4
4
|
var BEHAVIOR_OPERATORS = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shape, mapOf, STRING, list, openShape, BOOLEAN, nullable, NUMBER, SEXPR, union, lit, EMIT_ENVELOPE, EVENT_KEY } from './chunk-
|
|
1
|
+
import { shape, mapOf, STRING, list, openShape, BOOLEAN, nullable, NUMBER, SEXPR, union, lit, EMIT_ENVELOPE, EVENT_KEY } from './chunk-OYDQR6DT.js';
|
|
2
2
|
|
|
3
3
|
// modules/program.ts
|
|
4
4
|
var EMIT_OPTIONS = { name: "options", type: EMIT_ENVELOPE, description: "Emit configuration ({ emit: { success, failure } })", optional: true };
|
|
@@ -199,7 +199,7 @@ var PROGRAM_OPERATORS = {
|
|
|
199
199
|
resultByOption: { option: "report", results: { raw: RAW_STEP_REPORT } },
|
|
200
200
|
params: [
|
|
201
201
|
{ name: "program", type: { kind: "sexpr" }, description: "A quoted program" },
|
|
202
|
-
{ name: "requests", type: { kind: "array", of: { kind: "object", fields: { orbital: "string", trait: "string", from: "string", event: "string" }, open: true } }, description: "The transitions to play: `{ orbital, trait, from, event, payload, entity?, config?, identity?, now?, settleMs? }` each" },
|
|
202
|
+
{ name: "requests", type: { kind: "array", of: { kind: "object", fields: { orbital: "string", trait: "string", from: "string", event: "string" }, open: true } }, description: "The transitions to play: `{ orbital, trait, from, event, payload, entity?, config?, identity?, now?, settleMs?, credentials?, answers? }` each. `answers` (replay only) is a list of `{ operator, ok }` or `{ operator, error: { kind, message } }`, the host's plain answers to the os asks the request's cascade makes: an ask takes the first unused answer naming its operator and the kernel unwraps, mints and routes it as it does live (a deferring op's answer arrives as its completion once the dispatch ends); an answer no ask takes refuses the request" },
|
|
203
203
|
{
|
|
204
204
|
name: "options",
|
|
205
205
|
type: openShape({ key: STRING, render: BOOLEAN, renderProps: BOOLEAN, live: BOOLEAN, report: lit("raw"), emit: openShape({ success: EVENT_KEY, failure: EVENT_KEY, cancelled: EVENT_KEY }) }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv, openShape, BOOLEAN, SHAPE, STRING, fn, childrenOf, nullable, list, shape, mapOf, NUMBER, SEXPR } from './chunk-
|
|
1
|
+
import { tv, openShape, BOOLEAN, SHAPE, STRING, fn, childrenOf, nullable, list, shape, mapOf, NUMBER, SEXPR } from './chunk-OYDQR6DT.js';
|
|
2
2
|
|
|
3
3
|
// modules/json.ts
|
|
4
4
|
var JSON_OPERATORS = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OS_STREAM_MODE, OS_PATH, osEffect, arg, OS_SIGNAL, OS_STRING_LIST, OS_HANDLE, OS_COMMAND } from './chunk-
|
|
2
|
-
import { shape, BOOLEAN, nullable, mapOf, STRING, NUMBER, list } from './chunk-
|
|
1
|
+
import { OS_STREAM_MODE, OS_PATH, osEffect, arg, OS_SIGNAL, OS_STRING_LIST, OS_HANDLE, OS_COMMAND } from './chunk-3PHO4RRF.js';
|
|
2
|
+
import { shape, BOOLEAN, nullable, mapOf, STRING, NUMBER, list } from './chunk-OYDQR6DT.js';
|
|
3
3
|
|
|
4
4
|
// modules/os-process.ts
|
|
5
5
|
var SPAWN_CONFIG = shape({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv, union, STRING, openShape, lit, shape, BOOLEAN, list, mapOf, nullable, rec, SEXPR, bindingOf, sexprOf, fn, each, SHAPE } from './chunk-
|
|
1
|
+
import { tv, union, STRING, openShape, lit, shape, BOOLEAN, list, mapOf, nullable, rec, SEXPR, bindingOf, sexprOf, fn, each, SHAPE } from './chunk-OYDQR6DT.js';
|
|
2
2
|
|
|
3
3
|
// modules/core.ts
|
|
4
4
|
var NUMBER = "number";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { osEffect, arg } from './chunk-
|
|
2
|
-
import { NUMBER, shape } from './chunk-
|
|
1
|
+
import { osEffect, arg } from './chunk-3PHO4RRF.js';
|
|
2
|
+
import { NUMBER, shape } from './chunk-OYDQR6DT.js';
|
|
3
3
|
|
|
4
4
|
// modules/os-dev.ts
|
|
5
5
|
var OS_DEV_OPERATORS = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { osEffect, arg, OS_PORT, OS_HANDLE, OS_DATA, OS_HOST, OS_SEND_DATA } from './chunk-
|
|
2
|
-
import { shape, STRING, list, NUMBER, BOOLEAN, BYTES, union, lit } from './chunk-
|
|
1
|
+
import { osEffect, arg, OS_PORT, OS_HANDLE, OS_DATA, OS_HOST, OS_SEND_DATA } from './chunk-3PHO4RRF.js';
|
|
2
|
+
import { shape, STRING, list, NUMBER, BOOLEAN, BYTES, union, lit } from './chunk-OYDQR6DT.js';
|
|
3
3
|
|
|
4
4
|
// modules/os-net.ts
|
|
5
5
|
var TLS_SPEC = shape({ serverName: STRING, ca: STRING, alpn: list(STRING) }, ["ca", "alpn"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { osEffect, arg } from './chunk-
|
|
2
|
-
import { union, INT, NUMBER, STRING, list, shape, BYTES, lit } from './chunk-
|
|
1
|
+
import { osEffect, arg } from './chunk-3PHO4RRF.js';
|
|
2
|
+
import { union, INT, NUMBER, STRING, list, shape, BYTES, lit } from './chunk-OYDQR6DT.js';
|
|
3
3
|
|
|
4
4
|
// modules/ffi.ts
|
|
5
5
|
var BORROW = "Borrow";
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { PROGRAM_OPERATORS } from './chunk-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
1
|
+
import { PROGRAM_OPERATORS } from './chunk-EU22GCGV.js';
|
|
2
|
+
import { GPU_OPERATORS } from './chunk-BVWMLS32.js';
|
|
3
|
+
import { VALIDATE_OPERATORS } from './chunk-MKWHYBIS.js';
|
|
4
|
+
import { VEC_OPERATORS } from './chunk-FB6PKNRS.js';
|
|
5
|
+
import { WORKSPACE_OPERATORS } from './chunk-66RAJFOD.js';
|
|
6
|
+
import { XML_OPERATORS } from './chunk-LF2EZVAM.js';
|
|
7
|
+
import { YAML_OPERATORS } from './chunk-4MJCLAZW.js';
|
|
8
|
+
import { OS_OPERATORS } from './chunk-3MDASC5C.js';
|
|
9
|
+
import { PATH_OPERATORS } from './chunk-UIDQQJSX.js';
|
|
10
|
+
import { PROB_OPERATORS } from './chunk-JQBWLH5V.js';
|
|
11
|
+
import { SESSION_OPERATORS } from './chunk-PD6POR44.js';
|
|
12
|
+
import { STR_OPERATORS } from './chunk-ODBIX4DB.js';
|
|
13
|
+
import { TIME_OPERATORS } from './chunk-SA2ZS24W.js';
|
|
14
|
+
import { KV_OPERATORS } from './chunk-YQO3TO66.js';
|
|
15
|
+
import { LLM_OPERATORS } from './chunk-EKWEY4OJ.js';
|
|
16
|
+
import { MATH_OPERATORS } from './chunk-6ED4SUC6.js';
|
|
17
|
+
import { MEM_OPERATORS } from './chunk-VEGZPCTZ.js';
|
|
17
18
|
import { NOISE_OPERATORS } from './chunk-G6HXSSQB.js';
|
|
18
|
-
import { OBJECT_OPERATORS } from './chunk-
|
|
19
|
-
import { FORMAT_OPERATORS } from './chunk-
|
|
20
|
-
import { GEO_OPERATORS } from './chunk-
|
|
21
|
-
import { GRID_OPERATORS } from './chunk-
|
|
22
|
-
import { I18N_OPERATORS } from './chunk-
|
|
23
|
-
import { JSON_OPERATORS } from './chunk-
|
|
24
|
-
import { KERNEL_OPERATORS } from './chunk-
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { CSV_OPERATORS } from './chunk-KYGWVCTM.js';
|
|
19
|
+
import { OBJECT_OPERATORS } from './chunk-TLNEQA4D.js';
|
|
20
|
+
import { FORMAT_OPERATORS } from './chunk-YHQVZWPG.js';
|
|
21
|
+
import { GEO_OPERATORS } from './chunk-VXN4V7LC.js';
|
|
22
|
+
import { GRID_OPERATORS } from './chunk-MXBGYTYF.js';
|
|
23
|
+
import { I18N_OPERATORS } from './chunk-GPDTJHYY.js';
|
|
24
|
+
import { JSON_OPERATORS } from './chunk-GAKLBWBR.js';
|
|
25
|
+
import { KERNEL_OPERATORS } from './chunk-PQZ6PVKG.js';
|
|
26
|
+
import { BROWSER_OPERATORS } from './chunk-66BLZLFI.js';
|
|
27
|
+
import { BYTES_OPERATORS } from './chunk-ZSJ3GEOJ.js';
|
|
28
|
+
import { AES_GCM_OPERATORS, ECDH_OPERATORS, JWS_OPERATORS, ECDSA_OPERATORS, RSA_OPERATORS, CREDENTIAL_VALUE_OPERATORS, HMAC_OPERATORS, BROTLI_OPERATORS, TAR_OPERATORS, GZIP_OPERATORS, HASH_OPERATORS, BASE64_OPERATORS } from './chunk-55JPIL7A.js';
|
|
29
|
+
import { COMPOSITION_OPERATORS } from './chunk-A4QB3Y6L.js';
|
|
30
|
+
import { CORE_OPERATORS } from './chunk-KKW3JHTC.js';
|
|
31
|
+
import { CSV_OPERATORS } from './chunk-QMDVYTB7.js';
|
|
32
32
|
import { EASE_OPERATORS } from './chunk-QLWPKMXA.js';
|
|
33
|
-
import { FFI_OPERATORS } from './chunk-
|
|
34
|
-
import { ANIM_OPERATORS } from './chunk-
|
|
35
|
-
import { ARRAY_OPERATORS } from './chunk-
|
|
33
|
+
import { FFI_OPERATORS } from './chunk-M2YQNSAZ.js';
|
|
34
|
+
import { ANIM_OPERATORS } from './chunk-FSVOJQLP.js';
|
|
35
|
+
import { ARRAY_OPERATORS } from './chunk-RW2KMSG5.js';
|
|
36
36
|
import { AUDIO_OPERATORS } from './chunk-YLTAPHNF.js';
|
|
37
|
-
import { AUTH_OPERATORS } from './chunk-
|
|
38
|
-
import { BEHAVIOR_OPERATORS } from './chunk-
|
|
39
|
-
import { BIT_OPERATORS } from './chunk-
|
|
37
|
+
import { AUTH_OPERATORS } from './chunk-3DK7GI2C.js';
|
|
38
|
+
import { BEHAVIOR_OPERATORS } from './chunk-CRKVDCY7.js';
|
|
39
|
+
import { BIT_OPERATORS } from './chunk-UVFP2B7I.js';
|
|
40
40
|
import { isBrowserOnlyService } from '@almadar/core/patterns';
|
|
41
41
|
|
|
42
42
|
// types.ts
|
|
@@ -65,6 +65,7 @@ var OPERATOR_CATEGORIES = [
|
|
|
65
65
|
"std-kernel",
|
|
66
66
|
"std-kernel-read",
|
|
67
67
|
"std-ffi",
|
|
68
|
+
"std-gpu",
|
|
68
69
|
"std-browser",
|
|
69
70
|
"std-composition",
|
|
70
71
|
"std-vec",
|
|
@@ -78,7 +79,6 @@ var OPERATOR_CATEGORIES = [
|
|
|
78
79
|
"std-llm",
|
|
79
80
|
"std-workspace",
|
|
80
81
|
"std-session",
|
|
81
|
-
"std-trace",
|
|
82
82
|
"std-audio",
|
|
83
83
|
"std-auth",
|
|
84
84
|
"std-behavior",
|
|
@@ -104,6 +104,7 @@ var STD_MODULES = [
|
|
|
104
104
|
"mem",
|
|
105
105
|
"kernel",
|
|
106
106
|
"ffi",
|
|
107
|
+
"gpu",
|
|
107
108
|
"browser",
|
|
108
109
|
"composition",
|
|
109
110
|
"vec",
|
|
@@ -117,7 +118,6 @@ var STD_MODULES = [
|
|
|
117
118
|
"llm",
|
|
118
119
|
"workspace",
|
|
119
120
|
"session",
|
|
120
|
-
"trace",
|
|
121
121
|
"audio",
|
|
122
122
|
"auth",
|
|
123
123
|
"behavior",
|
|
@@ -158,6 +158,7 @@ var STD_OPERATOR_CATEGORIES = [
|
|
|
158
158
|
"std-kernel",
|
|
159
159
|
"std-kernel-read",
|
|
160
160
|
"std-ffi",
|
|
161
|
+
"std-gpu",
|
|
161
162
|
"std-browser",
|
|
162
163
|
"std-composition",
|
|
163
164
|
"std-vec",
|
|
@@ -171,7 +172,6 @@ var STD_OPERATOR_CATEGORIES = [
|
|
|
171
172
|
"std-llm",
|
|
172
173
|
"std-workspace",
|
|
173
174
|
"std-session",
|
|
174
|
-
"std-trace",
|
|
175
175
|
"std-audio",
|
|
176
176
|
"std-auth",
|
|
177
177
|
"std-behavior",
|
|
@@ -230,6 +230,7 @@ var STD_OPERATORS = {
|
|
|
230
230
|
...MEM_OPERATORS,
|
|
231
231
|
...KERNEL_OPERATORS,
|
|
232
232
|
...FFI_OPERATORS,
|
|
233
|
+
...GPU_OPERATORS,
|
|
233
234
|
...BROWSER_OPERATORS,
|
|
234
235
|
...COMPOSITION_OPERATORS,
|
|
235
236
|
...VEC_OPERATORS,
|
|
@@ -245,7 +246,6 @@ var STD_OPERATORS = {
|
|
|
245
246
|
...SESSION_OPERATORS,
|
|
246
247
|
...AUDIO_OPERATORS,
|
|
247
248
|
...AUTH_OPERATORS,
|
|
248
|
-
...TRACE_OPERATORS,
|
|
249
249
|
...BEHAVIOR_OPERATORS,
|
|
250
250
|
...PROGRAM_OPERATORS,
|
|
251
251
|
...BYTES_OPERATORS,
|
|
@@ -283,6 +283,7 @@ var STD_OPERATORS_BY_MODULE = {
|
|
|
283
283
|
mem: MEM_OPERATORS,
|
|
284
284
|
kernel: KERNEL_OPERATORS,
|
|
285
285
|
ffi: FFI_OPERATORS,
|
|
286
|
+
gpu: GPU_OPERATORS,
|
|
286
287
|
browser: BROWSER_OPERATORS,
|
|
287
288
|
composition: COMPOSITION_OPERATORS,
|
|
288
289
|
vec: VEC_OPERATORS,
|
|
@@ -296,7 +297,6 @@ var STD_OPERATORS_BY_MODULE = {
|
|
|
296
297
|
llm: LLM_OPERATORS,
|
|
297
298
|
workspace: WORKSPACE_OPERATORS,
|
|
298
299
|
session: SESSION_OPERATORS,
|
|
299
|
-
trace: TRACE_OPERATORS,
|
|
300
300
|
audio: AUDIO_OPERATORS,
|
|
301
301
|
auth: AUTH_OPERATORS,
|
|
302
302
|
behavior: BEHAVIOR_OPERATORS,
|
|
@@ -53,8 +53,8 @@ function shape(fields, optional = []) {
|
|
|
53
53
|
function openShape(fields) {
|
|
54
54
|
return { kind: "object", fields, open: true };
|
|
55
55
|
}
|
|
56
|
-
function keyOf(record) {
|
|
57
|
-
return { kind: "keyOf", of: record };
|
|
56
|
+
function keyOf(record, value) {
|
|
57
|
+
return value === void 0 ? { kind: "keyOf", of: record } : { kind: "keyOf", of: record, value };
|
|
58
58
|
}
|
|
59
59
|
function fieldOf(record) {
|
|
60
60
|
return { kind: "fieldOf", of: record };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { osEffect, arg } from './chunk-
|
|
2
|
-
import { STRING, shape, NUMBER, list } from './chunk-
|
|
1
|
+
import { osEffect, arg } from './chunk-3PHO4RRF.js';
|
|
2
|
+
import { STRING, shape, NUMBER, list } from './chunk-OYDQR6DT.js';
|
|
3
3
|
|
|
4
4
|
// modules/os-time-users.ts
|
|
5
5
|
var OS_TIME_USERS_OPERATORS = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { arg, osEffect } from './chunk-
|
|
2
|
-
import { tv, STRING, list, shape, INT } from './chunk-
|
|
1
|
+
import { arg, osEffect } from './chunk-3PHO4RRF.js';
|
|
2
|
+
import { tv, STRING, list, shape, INT } from './chunk-OYDQR6DT.js';
|
|
3
3
|
|
|
4
4
|
// modules/kernel.ts
|
|
5
5
|
function kernelEffect(def) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { osEffect, arg, OS_HANDLE, OS_DATA } from './chunk-
|
|
2
|
-
import { shape, NUMBER, BOOLEAN, BYTES, STRING, list } from './chunk-
|
|
1
|
+
import { osEffect, arg, OS_HANDLE, OS_DATA } from './chunk-3PHO4RRF.js';
|
|
2
|
+
import { shape, NUMBER, BOOLEAN, BYTES, STRING, list } from './chunk-OYDQR6DT.js';
|
|
3
3
|
|
|
4
4
|
// modules/os-env-stdio.ts
|
|
5
5
|
var OS_ENV_STDIO_OPERATORS = {
|