Router connector for ifuri and urirun — diagnose WHERE each URI action runs (router://), layer by layer, before acting
Project description
urirun-connector-router
AI Cost Tracking
- 🤖 LLM usage: $0.3000 (2 commits)
- 👤 Human dev: ~$178 (1.8h @ $100/h, 30min dedup)
Generated on 2026-07-05 using openrouter/qwen/qwen3-coder-next
urirun-connector-router is the URI-routing kernel for ifURI/urirun.
It answers, before a natural-language plan is executed:
- which machine or node each URI step will run on,
- whether the URI target is known,
- whether a route/capability descriptor matches,
- whether an optional live node probe is reachable,
- whether the route is read-only or mutating, and whether safety denies it.
The pure API is dependency-light:
from urirun_connector_router.routing import accept_plan, diagnose_plan
report = diagnose_plan(
[{"uri": "kvm://host/screen/query/capture"}],
{"nodes": [{"name": "lenovo", "url": "http://192.168.188.201:8765"}],
"routes": [{"uri": "kvm://host/screen/query/capture", "node": "lenovo"}]},
)
verdict = accept_plan(
[{"uri": "kvm://host/screen/query/capture"}],
{"routes": [{"uri": "kvm://host/screen/query/capture", "node": "host",
"meta": {"contract": {"effect": "query"}}}]},
)
When urirun is installed, the package also exposes read-only router:// routes:
router://host/route/query/resolverouter://host/plan/query/diagnoserouter://host/plan/query/acceptrouter://host/mesh/query/targets
diagnose reports what is known about each candidate step. accept is the
deterministic pre-dispatch predicate used by autonomous flows: a plan is accepted
only when all steps route cleanly and contract metadata does not contradict the
URI effect (query vs command).
License
Licensed under Apache-2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file urirun_connector_router-0.2.1.tar.gz.
File metadata
- Download URL: urirun_connector_router-0.2.1.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edc56d82fcd0e3b1c90f7f61ebbeda49b35556be76722e557823c2258a01c56b
|
|
| MD5 |
c01e4443a76e7d4e8e615e0a87f93e3b
|
|
| BLAKE2b-256 |
17d0b9690a6e78f2b8447fab34d58e6ea04884c2e3f6add5480fb5c45759b9b6
|
File details
Details for the file urirun_connector_router-0.2.1-py3-none-any.whl.
File metadata
- Download URL: urirun_connector_router-0.2.1-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc9507988444cae1452c1f407f088d2b9b77171cacfc6ee41a04409af2b17e95
|
|
| MD5 |
87e51438519b3962e3ca8d5cf8ef1829
|
|
| BLAKE2b-256 |
b81e1871771f005ebcfe0fd108da5bf8962878242c700cf131627a9ba42f37e3
|