Metadata-Version: 2.5
Name: promptli-gateway
Version: 0.2.1
Summary: Runtime-agnostic plugin core for Promptli Comms (Agent Link, sessions, setup, doctor)
Project-URL: Homepage, https://comms.promptli.com
Project-URL: Documentation, https://comms.promptli.com/docs
Project-URL: Repository, https://github.com/promptli-dev/promptli-comms
Project-URL: Issues, https://github.com/promptli-dev/promptli-comms/issues
Author: Promptli
License-Expression: MIT
Keywords: ai-agents,email,llm,sms,telephony,voice
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
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
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: httpx>=0.27
Requires-Dist: mcp>=1.20
Requires-Dist: promptli<0.3,>=0.2.0
Description-Content-Type: text/markdown

# promptli-gateway

Runtime-agnostic core that turns any agent runtime into a Promptli-connected agent:

- **Agent Link** consumer (outbound WebSocket; no public URL) with local dedupe + low-watermark acks.
- **One runtime session per person** (`contact_key`) across email and SMS; bursts of texts become one turn.
- **Replies on the same channel** (threaded email reply / SMS, group-aware), skipped if the agent already
  replied via a tool during the turn.
- **Untrusted content framing**: inbound bodies are wrapped as external data (prompt-injection guard).
- **Tools** (`ToolSpec`): send/reply email, send text, conversations, contacts, channel status, exposed to
  runtimes natively or via `python -m promptli_gateway.mcp_stdio --runtime <name>`.
- **Setup**: `bootstrap()` (idempotent; mints an identity-scoped key from an admin key and stores only that),
  `doctor()`, macOS launchd autostart.

Implement `RuntimeAdapter` (see `adapter.py`) for a new runtime; `adapters/echo.py` and
`adapters/generic_http.py` are references. Voice turns (Mode C) and supervisor turns (Mode A) arrive in P3.
