Bump tigrbl-lens importmap to v0.0.7 and add Lens OpenRPC demo #4955
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Description
pkgs/standards/tigrbl/tigrbl/system/docs/lens.pyto use@tigrbljs/tigrbl-lens@0.0.7.pkgs/standards/tigrbl_tests/tests/i9n/test_mountable_lens_uvicorn.pyto expect the0.0.7import URL.scripts/tigrbl_lens_openrpc_demo.pythat defines aWidgetmodel, initializes an in-memory engine, mounts JSON-RPC, mounts/openrpc.json, and mounts/lenswired to the OpenRPC spec.ruff format .andruff check . --fixfor the affectedpkgs/standardspackages.Testing
curlagainsthttps://esm.sh/@tigrbljs/tigrbl-lens@0.0.7, which returned HTTP200.uv run --directory pkgs/standards --package tigrbl ruff format .anduv run --directory pkgs/standards --package tigrbl ruff check . --fix, and correspondingtigrbl_testsruffcommands; all succeeded.uv run --package tigrbl --directory pkgs/standards uvicorn --app-dir /workspace/swarmauri-sdk scripts.tigrbl_lens_openrpc_demo:app --host 0.0.0.0 --port 8899and verified/openrpc.jsonreportedopenrpc: 1.2.6and included methods (7 methods present) and/lensreturned HTML containingid="root", the importmap pointing to@tigrbljs/tigrbl-lens@0.0.7, andurl: "/openrpc.json"./openrpc.jsonand/lens; the Chromium run crashed in this environment once (SIGSEGV), but the Firefox run completed successfully and produced screenshots with non-empty root content (ROOT_CONTENT_SIZE 19716).Codex Task