Skip to main content

urirun-service-chat

Standalone urirun chat/operator dashboard service.

This package gives the chat dashboard its own installable service shape, like urirun-connector-* packages do for URI capabilities. The implementation is currently a thin wrapper around urirun.host.host_dashboard, so the existing chat UI, URI invocation, artifacts, widgets, node discovery and scanner controls stay in one place while the service boundary becomes explicit.

The operator-level flow is documented in /home/tom/github/if-uri/urirun/docs/HOST_DASHBOARD_CHAT.md: natural language input, target selection, deterministic URI intents, service control, artifacts, widgets and urifix:// recovery.

Defaults

  • service id: chat
  • default port: 8194
  • default bind: 127.0.0.1
  • env port override: URIRUN_CHAT_PORT
  • env host override: URIRUN_CHAT_HOST

Run

urirun-service-chat serve --project /home/tom/github/if-uri/urirun --db ~/.urirun/host.db

Then open:

http://127.0.0.1:8194/

serve replaces an older urirun-service-chat process that is still listening on the same port, so a stale 8194 holder does not fail with Address already in use. Use --no-replace to disable that behavior, or --force-replace only in a controlled development environment when the port is known to be disposable.

You can also spell the intent explicitly:

urirun-service-chat restart --project /home/tom/github/if-uri/urirun --db ~/.urirun/host.db --port 8194

With a node:

urirun-service-chat serve \
  --project /home/tom/github/if-uri/urirun \
  --db ~/.urirun/host.db \
  --node-url lenovo=http://192.168.188.201:8766

URI surface

The chat service exposes the same dashboard endpoints as the current host dashboard, including:

  • /api/chat/ask
  • /api/chat/history
  • /api/chat/messages/delete
  • /api/artifacts
  • /api/artifacts/delete
  • /api/artifacts/dedupe
  • /api/artifacts/cleanup-orphans
  • /api/services/live
  • /api/uri/invoke

Natural-language commands enter through /api/chat/ask. Common operations such as starting the phone scanner and syncing archived documents to a node are planned deterministically before any LLM planner is used. General prompts use mesh discovery and require URIRUN_LLM_MODEL or LLM_MODEL unless they can be handled by a no-LLM heuristic.

When the browser has stale node query parameters but the user did not explicitly select a node and the prompt does not name one, /api/chat/ask resolves the run to selectedTargets: ["host"]. The mesh is filtered before planning, so a prompt such as opublikuj post na LinkedIn does not accidentally plan against a previously selected remote node.

The system-message roll-up treats a URI step as successful only when both the timeline step and the nested execution envelope are successful. In particular, results[step.id].result.value.ok == false prevents a green ok: N URI step(s) summary even if the transport wrapper itself returned ok: true.

Restart through URI

The chat service can expose a restart action through the dashboard URI invoke API:

dashboard://host/service/chat/command/restart
service://host/chat/command/restart
service://chat/command/restart

Without a configured supervisor, the dashboard schedules urirun-service-chat restart ..., which replaces the old chat process on the same port. For an external supervisor you can still use systemd --user:

For systemd --user:

curl -X POST http://127.0.0.1:8194/api/uri/invoke \
  -H 'Content-Type: application/json' \
  -d '{"uri":"service://host/chat/command/restart","mode":"execute","payload":{"manager":"systemd","unit":"urirun-service-chat.service"}}'

Or configure the restart command outside the prompt:

export URIRUN_CHAT_RESTART_CMD='systemctl --user restart urirun-service-chat.service'

The service manifest is available from Python:

from urirun_service_chat import urirun_service

print(urirun_service())

Metadata

Release files for urirun-service-chat 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for urirun-service-chat 0.1.0
File Size Uploaded Provenance Actions
urirun_service_chat-0.1.0.tar.gz 8.8 kB Without provenance Details for urirun_service_chat-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for urirun-service-chat 0.1.0
File Interpreter ABI Platform Actions
urirun_service_chat-0.1.0-py3-none-any.whl Python 3 none any Details for urirun_service_chat-0.1.0-py3-none-any.whl

Total release size: 15.6 kB

Release files / urirun_service_chat-0.1.0.tar.gz

Download URL urirun_service_chat-0.1.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cff8cd029fc648bc087923ec51941d0cefd38e0d83fc72f24044e2cf80758e05
BLAKE2b-256 checksum
How to use checksums
bd477c6fea8ad32f4d4ccbd0e010e9acd8dcb398a11b020c768b4b99bfdaab2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / urirun_service_chat-0.1.0-py3-none-any.whl

Download URL urirun_service_chat-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4efc375cbde60881c0e9dbd841060e9551d4f26b176d8d37283009c92f8d27c
BLAKE2b-256 checksum
How to use checksums
4dfb3367044145f23bfd422eb7ac58e0c66edd719cd1179a23135d1ebc92cd75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Security for urirun-service-chat 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page