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.
Files changed (115) hide show
  1. hrns_slim-0.0.21/.gitignore +16 -0
  2. hrns_slim-0.0.21/LICENSE +21 -0
  3. hrns_slim-0.0.21/PKG-INFO +49 -0
  4. hrns_slim-0.0.21/README.md +14 -0
  5. hrns_slim-0.0.21/hrns/__init__.py +11 -0
  6. hrns_slim-0.0.21/hrns/__main__.py +6 -0
  7. hrns_slim-0.0.21/hrns/_version.py +5 -0
  8. hrns_slim-0.0.21/hrns/cli.py +1325 -0
  9. hrns_slim-0.0.21/hrns/client/__init__.py +8 -0
  10. hrns_slim-0.0.21/hrns/client/__main__.py +10 -0
  11. hrns_slim-0.0.21/hrns/client/attachments.py +167 -0
  12. hrns_slim-0.0.21/hrns/client/bus.py +58 -0
  13. hrns_slim-0.0.21/hrns/client/client.py +421 -0
  14. hrns_slim-0.0.21/hrns/client/connection.py +207 -0
  15. hrns_slim-0.0.21/hrns/client/constants.py +31 -0
  16. hrns_slim-0.0.21/hrns/client/events.py +145 -0
  17. hrns_slim-0.0.21/hrns/client/headless.py +331 -0
  18. hrns_slim-0.0.21/hrns/client/interactions.py +210 -0
  19. hrns_slim-0.0.21/hrns/client/io.py +395 -0
  20. hrns_slim-0.0.21/hrns/client/launch.py +141 -0
  21. hrns_slim-0.0.21/hrns/client/login.py +173 -0
  22. hrns_slim-0.0.21/hrns/client/mcp_provider.py +441 -0
  23. hrns_slim-0.0.21/hrns/client/payloads.py +136 -0
  24. hrns_slim-0.0.21/hrns/client/renderers.py +100 -0
  25. hrns_slim-0.0.21/hrns/client/runtime.py +221 -0
  26. hrns_slim-0.0.21/hrns/client/session.py +265 -0
  27. hrns_slim-0.0.21/hrns/client/skills.py +78 -0
  28. hrns_slim-0.0.21/hrns/client/transport.py +474 -0
  29. hrns_slim-0.0.21/hrns/client/tui/__init__.py +1 -0
  30. hrns_slim-0.0.21/hrns/client/tui/agent_providers.py +304 -0
  31. hrns_slim-0.0.21/hrns/client/tui/app.py +1044 -0
  32. hrns_slim-0.0.21/hrns/client/tui/approval.py +268 -0
  33. hrns_slim-0.0.21/hrns/client/tui/blocks.py +325 -0
  34. hrns_slim-0.0.21/hrns/client/tui/chat/__init__.py +1 -0
  35. hrns_slim-0.0.21/hrns/client/tui/chat/actions.py +283 -0
  36. hrns_slim-0.0.21/hrns/client/tui/chat/chrome.py +198 -0
  37. hrns_slim-0.0.21/hrns/client/tui/chat/commands.py +232 -0
  38. hrns_slim-0.0.21/hrns/client/tui/chat/connection.py +94 -0
  39. hrns_slim-0.0.21/hrns/client/tui/chat/model.py +736 -0
  40. hrns_slim-0.0.21/hrns/client/tui/chat/prompts.py +614 -0
  41. hrns_slim-0.0.21/hrns/client/tui/chat/screen.py +866 -0
  42. hrns_slim-0.0.21/hrns/client/tui/chat/session.py +218 -0
  43. hrns_slim-0.0.21/hrns/client/tui/choice_keys.py +55 -0
  44. hrns_slim-0.0.21/hrns/client/tui/commands.py +98 -0
  45. hrns_slim-0.0.21/hrns/client/tui/completion.py +98 -0
  46. hrns_slim-0.0.21/hrns/client/tui/composer.py +258 -0
  47. hrns_slim-0.0.21/hrns/client/tui/connection_screen.py +577 -0
  48. hrns_slim-0.0.21/hrns/client/tui/dialogs.py +1555 -0
  49. hrns_slim-0.0.21/hrns/client/tui/extensions.py +138 -0
  50. hrns_slim-0.0.21/hrns/client/tui/formatting.py +77 -0
  51. hrns_slim-0.0.21/hrns/client/tui/history.py +217 -0
  52. hrns_slim-0.0.21/hrns/client/tui/login.py +61 -0
  53. hrns_slim-0.0.21/hrns/client/tui/messages.py +58 -0
  54. hrns_slim-0.0.21/hrns/client/tui/model_setup.py +350 -0
  55. hrns_slim-0.0.21/hrns/client/tui/panels/__init__.py +18 -0
  56. hrns_slim-0.0.21/hrns/client/tui/panels/activity.py +57 -0
  57. hrns_slim-0.0.21/hrns/client/tui/panels/mcp.py +92 -0
  58. hrns_slim-0.0.21/hrns/client/tui/panels/session.py +243 -0
  59. hrns_slim-0.0.21/hrns/client/tui/panels/side.py +148 -0
  60. hrns_slim-0.0.21/hrns/client/tui/panels/todo.py +62 -0
  61. hrns_slim-0.0.21/hrns/client/tui/providers.py +517 -0
  62. hrns_slim-0.0.21/hrns/client/tui/screen_base.py +23 -0
  63. hrns_slim-0.0.21/hrns/client/tui/state.py +849 -0
  64. hrns_slim-0.0.21/hrns/client/tui/status.py +343 -0
  65. hrns_slim-0.0.21/hrns/client/tui/tool_views.py +405 -0
  66. hrns_slim-0.0.21/hrns/client/tui/transcript.py +869 -0
  67. hrns_slim-0.0.21/hrns/client/turn.py +251 -0
  68. hrns_slim-0.0.21/hrns/client/updates.py +187 -0
  69. hrns_slim-0.0.21/hrns/py.typed +0 -0
  70. hrns_slim-0.0.21/hrns/server/__init__.py +28 -0
  71. hrns_slim-0.0.21/hrns/server/acp/__init__.py +124 -0
  72. hrns_slim-0.0.21/hrns/server/acp/adapter.py +473 -0
  73. hrns_slim-0.0.21/hrns/server/acp/content.py +54 -0
  74. hrns_slim-0.0.21/hrns/server/acp/elicitation.py +144 -0
  75. hrns_slim-0.0.21/hrns/server/acp/host.py +396 -0
  76. hrns_slim-0.0.21/hrns/server/acp/interactions.py +59 -0
  77. hrns_slim-0.0.21/hrns/server/acp/mcp.py +61 -0
  78. hrns_slim-0.0.21/hrns/server/acp/models.py +208 -0
  79. hrns_slim-0.0.21/hrns/server/acp/permission.py +28 -0
  80. hrns_slim-0.0.21/hrns/server/acp/presentation.py +169 -0
  81. hrns_slim-0.0.21/hrns/server/acp/providers.py +120 -0
  82. hrns_slim-0.0.21/hrns/server/acp/runtime.py +1344 -0
  83. hrns_slim-0.0.21/hrns/server/acp/serialize.py +70 -0
  84. hrns_slim-0.0.21/hrns/server/acp/server.py +46 -0
  85. hrns_slim-0.0.21/hrns/server/acp/session.py +176 -0
  86. hrns_slim-0.0.21/hrns/server/acp/store.py +154 -0
  87. hrns_slim-0.0.21/hrns/server/acp/toolsets.py +217 -0
  88. hrns_slim-0.0.21/hrns/server/acp/updates.py +94 -0
  89. hrns_slim-0.0.21/hrns/server/ag_ui.py +233 -0
  90. hrns_slim-0.0.21/hrns/server/agent.py +65 -0
  91. hrns_slim-0.0.21/hrns/server/approvals.py +41 -0
  92. hrns_slim-0.0.21/hrns/server/capabilities/__init__.py +19 -0
  93. hrns_slim-0.0.21/hrns/server/capabilities/ask_user.py +25 -0
  94. hrns_slim-0.0.21/hrns/server/capabilities/changes.py +314 -0
  95. hrns_slim-0.0.21/hrns/server/capabilities/coder.py +26 -0
  96. hrns_slim-0.0.21/hrns/server/capabilities/skills.py +399 -0
  97. hrns_slim-0.0.21/hrns/server/capabilities/todo.py +110 -0
  98. hrns_slim-0.0.21/hrns/server/fastapi.py +124 -0
  99. hrns_slim-0.0.21/hrns/server/host.py +59 -0
  100. hrns_slim-0.0.21/hrns/server/runtime.py +387 -0
  101. hrns_slim-0.0.21/hrns/shared/__init__.py +1 -0
  102. hrns_slim-0.0.21/hrns/shared/acp_mcp/__init__.py +66 -0
  103. hrns_slim-0.0.21/hrns/shared/acp_mcp/core.py +641 -0
  104. hrns_slim-0.0.21/hrns/shared/acp_mcp/router.py +118 -0
  105. hrns_slim-0.0.21/hrns/shared/acp_mcp/server.py +198 -0
  106. hrns_slim-0.0.21/hrns/shared/acp_mcp/transport.py +213 -0
  107. hrns_slim-0.0.21/hrns/shared/clean.py +336 -0
  108. hrns_slim-0.0.21/hrns/shared/config/__init__.py +82 -0
  109. hrns_slim-0.0.21/hrns/shared/config/credentials.py +103 -0
  110. hrns_slim-0.0.21/hrns/shared/config/mcp.py +313 -0
  111. hrns_slim-0.0.21/hrns/shared/config/settings.py +636 -0
  112. hrns_slim-0.0.21/hrns/shared/errors.py +99 -0
  113. hrns_slim-0.0.21/hrns/shared/exit_codes.py +6 -0
  114. hrns_slim-0.0.21/hrns/shared/urls.py +35 -0
  115. hrns_slim-0.0.21/pyproject.toml +66 -0
@@ -0,0 +1,16 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ .ruff_cache/
6
+ dist/
7
+ build/
8
+ site/
9
+ .cache/
10
+ benchmark-results/
11
+ *.db
12
+ *.db-shm
13
+ *.db-wal
14
+ .env
15
+ .idea
16
+ var
@@ -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
+ """
@@ -0,0 +1,6 @@
1
+ """``python -m hrns`` runs the unified CLI."""
2
+
3
+ from .cli import main
4
+
5
+ if __name__ == "__main__":
6
+ raise SystemExit(main())
@@ -0,0 +1,5 @@
1
+ """Client package version. Kept separate so the CLI can report it without loading the core."""
2
+
3
+ from importlib.metadata import version
4
+
5
+ __version__ = version("hrns-slim")