Skip to content

Conversation

@cobycloud
Copy link
Contributor

Motivation

  • The tigrbl Lens UI failed to hydrate when the importmap pointed to a non-published bundle, so the importmap was bumped to a published release to ensure the browser can load the UI bundle.
  • Provide a runnable demo that registers JSON-RPC methods so Lens has real operations to display for manual verification.

Description

  • Updated the Lens importmap in pkgs/standards/tigrbl/tigrbl/system/docs/lens.py to use @tigrbljs/tigrbl-lens@0.0.7.
  • Updated the integration assertion in pkgs/standards/tigrbl_tests/tests/i9n/test_mountable_lens_uvicorn.py to expect the 0.0.7 import URL.
  • Added a demo ASGI app scripts/tigrbl_lens_openrpc_demo.py that defines a Widget model, initializes an in-memory engine, mounts JSON-RPC, mounts /openrpc.json, and mounts /lens wired to the OpenRPC spec.
  • Ran code formatting and lint fixes with ruff format . and ruff check . --fix for the affected pkgs/standards packages.

Testing

  • Verified package availability with curl against https://esm.sh/@tigrbljs/tigrbl-lens@0.0.7, which returned HTTP 200.
  • Ran style/lint checks: uv run --directory pkgs/standards --package tigrbl ruff format . and uv run --directory pkgs/standards --package tigrbl ruff check . --fix, and corresponding tigrbl_tests ruff commands; all succeeded.
  • Started the demo server with 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 8899 and verified /openrpc.json reported openrpc: 1.2.6 and included methods (7 methods present) and /lens returned HTML containing id="root", the importmap pointing to @tigrbljs/tigrbl-lens@0.0.7, and url: "/openrpc.json".
  • Captured Playwright screenshots of /openrpc.json and /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

@cobycloud cobycloud closed this Feb 12, 2026
@cobycloud cobycloud deleted the bbdx/deploy-uvicorn-server-with-openrpc/2026-02-12 branch February 12, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant