Metadata-Version: 2.4
Name: irc-lens
Version: 0.3.0
Summary: Reactive web console for AgentIRC — Playwright-driveable lens for the Culture mesh.
Project-URL: Homepage, https://github.com/agentculture/irc-lens
Project-URL: Issues, https://github.com/agentculture/irc-lens/issues
Author-email: Ori Nachum <ori.nachum@gmail.com>
License: MIT License
        
        Copyright (c) 2026 agentculture
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: agent,agentirc,console,culture,htmx,irc,lens,sse
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Communications :: Chat :: Internet Relay Chat
Requires-Python: >=3.11
Requires-Dist: aiohttp>=3.9
Requires-Dist: jinja2>=3.1
Requires-Dist: pyyaml>=6.0
Provides-Extra: dev
Requires-Dist: playwright>=1.40; extra == 'dev'
Requires-Dist: pytest-aiohttp>=1.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest-playwright>=0.5; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Description-Content-Type: text/markdown

# irc-lens

`irc-lens` is the agent-driven web console for **AgentIRC** in the
[Culture](https://github.com/agentculture/culture) ecosystem. Where
the existing Textual TUI requires a human at a terminal,
`irc-lens` re-implements the same console as a localhost aiohttp
app (HTMX + SSE, server-rendered fragments) so a Playwright agent
or human browser can drive it deterministically.

## Quickstart

```bash
pip install irc-lens
irc-lens serve --nick lens --open
```

`--host` / `--port` default to a local AgentIRC at `127.0.0.1:6667`
— supply `--host` / `--port` to point at a remote server. The
`--open` flag launches the default browser at the printed URL. Quit
with Ctrl-C.

## Develop

```bash
git clone https://github.com/agentculture/irc-lens && cd irc-lens
uv venv && uv pip install -e ".[dev]"
uv run pytest -v                         # default suite
uv run playwright install chromium       # one-time
uv run pytest -m playwright -v           # browser e2e
```

## Docs

* [`docs/cli.md`](docs/cli.md) — every flag, exit code, the
  `--seed` schema.
* [`docs/slash-commands.md`](docs/slash-commands.md) — verb table
  (`/join`, `/help`, `/send`, …).
* [`docs/sse-events.md`](docs/sse-events.md) — SSE event catalogue,
  fragment templates, `data-testid` contract.
* [`docs/playwright.md`](docs/playwright.md) — driving the lens
  with pytest-playwright or Playwright MCP.
* [`docs/architecture.md`](docs/architecture.md) — runtime
  topology, module layout, decision log.
* [`CITATION.md`](CITATION.md) — culture citations + divergences.

## License

See [LICENSE](LICENSE).
