hrns-slim 0.0.21__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hrns_slim-0.0.21/.gitignore +16 -0
- hrns_slim-0.0.21/LICENSE +21 -0
- hrns_slim-0.0.21/PKG-INFO +49 -0
- hrns_slim-0.0.21/README.md +14 -0
- hrns_slim-0.0.21/hrns/__init__.py +11 -0
- hrns_slim-0.0.21/hrns/__main__.py +6 -0
- hrns_slim-0.0.21/hrns/_version.py +5 -0
- hrns_slim-0.0.21/hrns/cli.py +1325 -0
- hrns_slim-0.0.21/hrns/client/__init__.py +8 -0
- hrns_slim-0.0.21/hrns/client/__main__.py +10 -0
- hrns_slim-0.0.21/hrns/client/attachments.py +167 -0
- hrns_slim-0.0.21/hrns/client/bus.py +58 -0
- hrns_slim-0.0.21/hrns/client/client.py +421 -0
- hrns_slim-0.0.21/hrns/client/connection.py +207 -0
- hrns_slim-0.0.21/hrns/client/constants.py +31 -0
- hrns_slim-0.0.21/hrns/client/events.py +145 -0
- hrns_slim-0.0.21/hrns/client/headless.py +331 -0
- hrns_slim-0.0.21/hrns/client/interactions.py +210 -0
- hrns_slim-0.0.21/hrns/client/io.py +395 -0
- hrns_slim-0.0.21/hrns/client/launch.py +141 -0
- hrns_slim-0.0.21/hrns/client/login.py +173 -0
- hrns_slim-0.0.21/hrns/client/mcp_provider.py +441 -0
- hrns_slim-0.0.21/hrns/client/payloads.py +136 -0
- hrns_slim-0.0.21/hrns/client/renderers.py +100 -0
- hrns_slim-0.0.21/hrns/client/runtime.py +221 -0
- hrns_slim-0.0.21/hrns/client/session.py +265 -0
- hrns_slim-0.0.21/hrns/client/skills.py +78 -0
- hrns_slim-0.0.21/hrns/client/transport.py +474 -0
- hrns_slim-0.0.21/hrns/client/tui/__init__.py +1 -0
- hrns_slim-0.0.21/hrns/client/tui/agent_providers.py +304 -0
- hrns_slim-0.0.21/hrns/client/tui/app.py +1044 -0
- hrns_slim-0.0.21/hrns/client/tui/approval.py +268 -0
- hrns_slim-0.0.21/hrns/client/tui/blocks.py +325 -0
- hrns_slim-0.0.21/hrns/client/tui/chat/__init__.py +1 -0
- hrns_slim-0.0.21/hrns/client/tui/chat/actions.py +283 -0
- hrns_slim-0.0.21/hrns/client/tui/chat/chrome.py +198 -0
- hrns_slim-0.0.21/hrns/client/tui/chat/commands.py +232 -0
- hrns_slim-0.0.21/hrns/client/tui/chat/connection.py +94 -0
- hrns_slim-0.0.21/hrns/client/tui/chat/model.py +736 -0
- hrns_slim-0.0.21/hrns/client/tui/chat/prompts.py +614 -0
- hrns_slim-0.0.21/hrns/client/tui/chat/screen.py +866 -0
- hrns_slim-0.0.21/hrns/client/tui/chat/session.py +218 -0
- hrns_slim-0.0.21/hrns/client/tui/choice_keys.py +55 -0
- hrns_slim-0.0.21/hrns/client/tui/commands.py +98 -0
- hrns_slim-0.0.21/hrns/client/tui/completion.py +98 -0
- hrns_slim-0.0.21/hrns/client/tui/composer.py +258 -0
- hrns_slim-0.0.21/hrns/client/tui/connection_screen.py +577 -0
- hrns_slim-0.0.21/hrns/client/tui/dialogs.py +1555 -0
- hrns_slim-0.0.21/hrns/client/tui/extensions.py +138 -0
- hrns_slim-0.0.21/hrns/client/tui/formatting.py +77 -0
- hrns_slim-0.0.21/hrns/client/tui/history.py +217 -0
- hrns_slim-0.0.21/hrns/client/tui/login.py +61 -0
- hrns_slim-0.0.21/hrns/client/tui/messages.py +58 -0
- hrns_slim-0.0.21/hrns/client/tui/model_setup.py +350 -0
- hrns_slim-0.0.21/hrns/client/tui/panels/__init__.py +18 -0
- hrns_slim-0.0.21/hrns/client/tui/panels/activity.py +57 -0
- hrns_slim-0.0.21/hrns/client/tui/panels/mcp.py +92 -0
- hrns_slim-0.0.21/hrns/client/tui/panels/session.py +243 -0
- hrns_slim-0.0.21/hrns/client/tui/panels/side.py +148 -0
- hrns_slim-0.0.21/hrns/client/tui/panels/todo.py +62 -0
- hrns_slim-0.0.21/hrns/client/tui/providers.py +517 -0
- hrns_slim-0.0.21/hrns/client/tui/screen_base.py +23 -0
- hrns_slim-0.0.21/hrns/client/tui/state.py +849 -0
- hrns_slim-0.0.21/hrns/client/tui/status.py +343 -0
- hrns_slim-0.0.21/hrns/client/tui/tool_views.py +405 -0
- hrns_slim-0.0.21/hrns/client/tui/transcript.py +869 -0
- hrns_slim-0.0.21/hrns/client/turn.py +251 -0
- hrns_slim-0.0.21/hrns/client/updates.py +187 -0
- hrns_slim-0.0.21/hrns/py.typed +0 -0
- hrns_slim-0.0.21/hrns/server/__init__.py +28 -0
- hrns_slim-0.0.21/hrns/server/acp/__init__.py +124 -0
- hrns_slim-0.0.21/hrns/server/acp/adapter.py +473 -0
- hrns_slim-0.0.21/hrns/server/acp/content.py +54 -0
- hrns_slim-0.0.21/hrns/server/acp/elicitation.py +144 -0
- hrns_slim-0.0.21/hrns/server/acp/host.py +396 -0
- hrns_slim-0.0.21/hrns/server/acp/interactions.py +59 -0
- hrns_slim-0.0.21/hrns/server/acp/mcp.py +61 -0
- hrns_slim-0.0.21/hrns/server/acp/models.py +208 -0
- hrns_slim-0.0.21/hrns/server/acp/permission.py +28 -0
- hrns_slim-0.0.21/hrns/server/acp/presentation.py +169 -0
- hrns_slim-0.0.21/hrns/server/acp/providers.py +120 -0
- hrns_slim-0.0.21/hrns/server/acp/runtime.py +1344 -0
- hrns_slim-0.0.21/hrns/server/acp/serialize.py +70 -0
- hrns_slim-0.0.21/hrns/server/acp/server.py +46 -0
- hrns_slim-0.0.21/hrns/server/acp/session.py +176 -0
- hrns_slim-0.0.21/hrns/server/acp/store.py +154 -0
- hrns_slim-0.0.21/hrns/server/acp/toolsets.py +217 -0
- hrns_slim-0.0.21/hrns/server/acp/updates.py +94 -0
- hrns_slim-0.0.21/hrns/server/ag_ui.py +233 -0
- hrns_slim-0.0.21/hrns/server/agent.py +65 -0
- hrns_slim-0.0.21/hrns/server/approvals.py +41 -0
- hrns_slim-0.0.21/hrns/server/capabilities/__init__.py +19 -0
- hrns_slim-0.0.21/hrns/server/capabilities/ask_user.py +25 -0
- hrns_slim-0.0.21/hrns/server/capabilities/changes.py +314 -0
- hrns_slim-0.0.21/hrns/server/capabilities/coder.py +26 -0
- hrns_slim-0.0.21/hrns/server/capabilities/skills.py +399 -0
- hrns_slim-0.0.21/hrns/server/capabilities/todo.py +110 -0
- hrns_slim-0.0.21/hrns/server/fastapi.py +124 -0
- hrns_slim-0.0.21/hrns/server/host.py +59 -0
- hrns_slim-0.0.21/hrns/server/runtime.py +387 -0
- hrns_slim-0.0.21/hrns/shared/__init__.py +1 -0
- hrns_slim-0.0.21/hrns/shared/acp_mcp/__init__.py +66 -0
- hrns_slim-0.0.21/hrns/shared/acp_mcp/core.py +641 -0
- hrns_slim-0.0.21/hrns/shared/acp_mcp/router.py +118 -0
- hrns_slim-0.0.21/hrns/shared/acp_mcp/server.py +198 -0
- hrns_slim-0.0.21/hrns/shared/acp_mcp/transport.py +213 -0
- hrns_slim-0.0.21/hrns/shared/clean.py +336 -0
- hrns_slim-0.0.21/hrns/shared/config/__init__.py +82 -0
- hrns_slim-0.0.21/hrns/shared/config/credentials.py +103 -0
- hrns_slim-0.0.21/hrns/shared/config/mcp.py +313 -0
- hrns_slim-0.0.21/hrns/shared/config/settings.py +636 -0
- hrns_slim-0.0.21/hrns/shared/errors.py +99 -0
- hrns_slim-0.0.21/hrns/shared/exit_codes.py +6 -0
- hrns_slim-0.0.21/hrns/shared/urls.py +35 -0
- hrns_slim-0.0.21/pyproject.toml +66 -0
hrns_slim-0.0.21/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 hrns contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: hrns-slim
|
|
3
|
+
Version: 0.0.21
|
|
4
|
+
Summary: Programmable Pydantic AI agents with an ACP adapter, slim package
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: >=3.11
|
|
8
|
+
Requires-Dist: cyclopts<6,>=3
|
|
9
|
+
Requires-Dist: keyring>=25
|
|
10
|
+
Requires-Dist: platformdirs>=4
|
|
11
|
+
Requires-Dist: pydantic-settings<3,>=2.10
|
|
12
|
+
Requires-Dist: pydantic<3,>=2.12
|
|
13
|
+
Requires-Dist: tomli-w<2,>=1.2
|
|
14
|
+
Provides-Extra: ag-ui
|
|
15
|
+
Requires-Dist: pydantic-ai-slim[ag-ui]<3,>=2.57.0; extra == 'ag-ui'
|
|
16
|
+
Provides-Extra: client
|
|
17
|
+
Requires-Dist: agent-client-protocol<2,>=1.0.0rc3; extra == 'client'
|
|
18
|
+
Requires-Dist: fastmcp-slim[client]<5,>=3.3; extra == 'client'
|
|
19
|
+
Requires-Dist: mcp<3,>=2.3; extra == 'client'
|
|
20
|
+
Requires-Dist: pyyaml<7,>=6; extra == 'client'
|
|
21
|
+
Requires-Dist: textual<9,>=8.2; extra == 'client'
|
|
22
|
+
Requires-Dist: websockets<16,>=13; extra == 'client'
|
|
23
|
+
Provides-Extra: server
|
|
24
|
+
Requires-Dist: agent-client-protocol<2,>=1.0.0rc3; extra == 'server'
|
|
25
|
+
Requires-Dist: fastapi<1,>=0.156; extra == 'server'
|
|
26
|
+
Requires-Dist: fastmcp-slim[client]<5,>=3.3; extra == 'server'
|
|
27
|
+
Requires-Dist: mcp<3,>=2.3; extra == 'server'
|
|
28
|
+
Requires-Dist: pydantic-ai-harness[coder]<2,>=0.57.0; extra == 'server'
|
|
29
|
+
Requires-Dist: pydantic-ai-skills<3,>=2.1; extra == 'server'
|
|
30
|
+
Requires-Dist: pydantic-ai-slim[anthropic,mcp,openai]<3,>=2.57.0; extra == 'server'
|
|
31
|
+
Requires-Dist: starlette<2,>=0.47; extra == 'server'
|
|
32
|
+
Requires-Dist: uvicorn>=0.35; extra == 'server'
|
|
33
|
+
Requires-Dist: websockets<16,>=13; extra == 'server'
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
|
|
36
|
+
# hrns-slim
|
|
37
|
+
|
|
38
|
+
Minimal installation of [hrns](https://github.com/xelandernt/hrns).
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
pip install 'hrns-slim[client]' # terminal client
|
|
42
|
+
pip install 'hrns-slim[server]' # agent and HTTP server
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Install `hrns` for both client and server by default. Add the `ag-ui` extra for
|
|
46
|
+
observation support. Python imports and the command are named `hrns` in both packages.
|
|
47
|
+
|
|
48
|
+
Without extras, `hrns-slim` provides the shared configuration, profile, and MCP
|
|
49
|
+
configuration commands.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# hrns-slim
|
|
2
|
+
|
|
3
|
+
Minimal installation of [hrns](https://github.com/xelandernt/hrns).
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
pip install 'hrns-slim[client]' # terminal client
|
|
7
|
+
pip install 'hrns-slim[server]' # agent and HTTP server
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Install `hrns` for both client and server by default. Add the `ag-ui` extra for
|
|
11
|
+
observation support. Python imports and the command are named `hrns` in both packages.
|
|
12
|
+
|
|
13
|
+
Without extras, `hrns-slim` provides the shared configuration, profile, and MCP
|
|
14
|
+
configuration commands.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""hrns: one Pydantic AI agent, exposed over ACP.
|
|
2
|
+
|
|
3
|
+
The distribution exposes three subpackages:
|
|
4
|
+
|
|
5
|
+
- ``hrns.client``: the Textual terminal, standard ACP client, and built-in agent launcher.
|
|
6
|
+
- ``hrns.server``: the agent composition and the ACP/FastAPI adapters.
|
|
7
|
+
- ``hrns.shared``: configuration, credentials, MCP-over-ACP, errors, and URL helpers.
|
|
8
|
+
|
|
9
|
+
``hrns.cli`` is the unified command line. Importing ``hrns`` does not import any
|
|
10
|
+
subpackage.
|
|
11
|
+
"""
|