$ show openclaw/uirouter
@openclaw/uirouter is a standalone TypeScript routing library for OpenClaw applications. It provides a type-safe, context-aware router that matches URL paths to route records, exposes navigation state through `getState()`, and supports load contexts and redirects. The library is explicitly not an application framework or state store; it avoids hidden global state and app-specific rendering, making it a focused routing primitive rather than a full application shell.
The LLM identified 3 files worth highlighting for reuse:
Core router implementation that maintains navigation state, exposes `getState()` with a `matches` array, and coordinates load contexts and redirects. Designed to be framework-agnostic and free of hidden global state, making it extractable into other TypeScript applications.
Pure path-matching logic that maps URL paths to route records. Supports dynamic segments and typed route data, and can be reused in any routing or URL-matching context outside OpenClaw.
Validates the packed tarball by installing it in a temporary project and importing the package, ensuring the published artifact is consumable. Reusable as a CI gate for any pnpm/TypeScript library.