axio-tui 0.1.0__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.
- axio_tui-0.1.0/.github/workflows/publish.yml +40 -0
- axio_tui-0.1.0/.github/workflows/tests.yml +44 -0
- axio_tui-0.1.0/LICENSE +21 -0
- axio_tui-0.1.0/Makefile +16 -0
- axio_tui-0.1.0/PKG-INFO +34 -0
- axio_tui-0.1.0/README.md +15 -0
- axio_tui-0.1.0/pyproject.toml +58 -0
- axio_tui-0.1.0/src/axio_tui/__init__.py +1 -0
- axio_tui-0.1.0/src/axio_tui/__main__.py +32 -0
- axio_tui-0.1.0/src/axio_tui/app.py +1345 -0
- axio_tui-0.1.0/src/axio_tui/args.py +40 -0
- axio_tui-0.1.0/src/axio_tui/plugin.py +129 -0
- axio_tui-0.1.0/src/axio_tui/prompt.py +357 -0
- axio_tui-0.1.0/src/axio_tui/screens.py +623 -0
- axio_tui-0.1.0/src/axio_tui/sqlite_context.py +276 -0
- axio_tui-0.1.0/src/axio_tui/tools.py +220 -0
- axio_tui-0.1.0/src/axio_tui/transport_registry.py +210 -0
- axio_tui-0.1.0/tests/conftest.py +1 -0
- axio_tui-0.1.0/tests/test_guard_screens.py +200 -0
- axio_tui-0.1.0/tests/test_nav.py +236 -0
- axio_tui-0.1.0/tests/test_plugin.py +144 -0
- axio_tui-0.1.0/tests/test_plugin_toggle.py +90 -0
- axio_tui-0.1.0/tests/test_sqlite_context.py +304 -0
- axio_tui-0.1.0/tests/test_tool_status_widget.py +70 -0
- axio_tui-0.1.0/tests/test_tools.py +225 -0
- axio_tui-0.1.0/tests/test_transport_registry.py +367 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
env:
|
|
8
|
+
FORCE_COLOR: 1
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: astral-sh/setup-uv@v6
|
|
16
|
+
|
|
17
|
+
- name: Set version from release tag
|
|
18
|
+
run: uv version "${GITHUB_REF_NAME#v}"
|
|
19
|
+
|
|
20
|
+
- name: Build package
|
|
21
|
+
run: uv build
|
|
22
|
+
|
|
23
|
+
- uses: actions/upload-artifact@v4
|
|
24
|
+
with:
|
|
25
|
+
name: dist
|
|
26
|
+
path: dist/
|
|
27
|
+
|
|
28
|
+
publish:
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
needs: build
|
|
31
|
+
environment: pypi
|
|
32
|
+
permissions:
|
|
33
|
+
id-token: write
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/download-artifact@v4
|
|
36
|
+
with:
|
|
37
|
+
name: dist
|
|
38
|
+
path: dist/
|
|
39
|
+
|
|
40
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ master, main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ master, main ]
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
FORCE_COLOR: 1
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
ruff:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- uses: astral-sh/setup-uv@v6
|
|
18
|
+
- run: uv sync --frozen
|
|
19
|
+
- run: uv run ruff check
|
|
20
|
+
- run: uv run ruff format --check
|
|
21
|
+
|
|
22
|
+
mypy:
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
- uses: astral-sh/setup-uv@v6
|
|
27
|
+
- run: uv sync --frozen
|
|
28
|
+
- run: uv run mypy .
|
|
29
|
+
|
|
30
|
+
tests:
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
strategy:
|
|
33
|
+
fail-fast: false
|
|
34
|
+
matrix:
|
|
35
|
+
python:
|
|
36
|
+
- "3.12"
|
|
37
|
+
- "3.13"
|
|
38
|
+
steps:
|
|
39
|
+
- uses: actions/checkout@v4
|
|
40
|
+
- uses: astral-sh/setup-uv@v6
|
|
41
|
+
with:
|
|
42
|
+
python-version: ${{ matrix.python }}
|
|
43
|
+
- run: uv sync --frozen
|
|
44
|
+
- run: uv run pytest -vv --cov=axio_tui --cov-report=term-missing
|
axio_tui-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Axio 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.
|
axio_tui-0.1.0/Makefile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.PHONY: fmt lint typecheck test all
|
|
2
|
+
|
|
3
|
+
fmt:
|
|
4
|
+
uv run ruff format src/ tests/
|
|
5
|
+
uv run ruff check --fix src/ tests/
|
|
6
|
+
|
|
7
|
+
lint:
|
|
8
|
+
uv run ruff check src/ tests/
|
|
9
|
+
|
|
10
|
+
typecheck:
|
|
11
|
+
uv run mypy src/
|
|
12
|
+
|
|
13
|
+
test:
|
|
14
|
+
uv run pytest tests/ -v
|
|
15
|
+
|
|
16
|
+
all: fmt lint typecheck test
|
axio_tui-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: axio-tui
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Textual TUI application for Axio
|
|
5
|
+
License: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: >=3.12
|
|
8
|
+
Requires-Dist: aiosqlite>=0.20
|
|
9
|
+
Requires-Dist: argclass>=1.6
|
|
10
|
+
Requires-Dist: axio
|
|
11
|
+
Requires-Dist: textual-serve>=1.1
|
|
12
|
+
Requires-Dist: textual>=2.1.0
|
|
13
|
+
Provides-Extra: all
|
|
14
|
+
Requires-Dist: axio-tools-local; extra == 'all'
|
|
15
|
+
Requires-Dist: axio-tools-mcp; extra == 'all'
|
|
16
|
+
Requires-Dist: axio-transport-codex; extra == 'all'
|
|
17
|
+
Requires-Dist: axio-transport-nebius; extra == 'all'
|
|
18
|
+
Requires-Dist: axio-transport-openai; extra == 'all'
|
|
19
|
+
Requires-Dist: axio-tui-guards; extra == 'all'
|
|
20
|
+
Requires-Dist: axio-tui-rag; extra == 'all'
|
|
21
|
+
Provides-Extra: codex
|
|
22
|
+
Requires-Dist: axio-transport-codex; extra == 'codex'
|
|
23
|
+
Provides-Extra: guards
|
|
24
|
+
Requires-Dist: axio-tui-guards; extra == 'guards'
|
|
25
|
+
Provides-Extra: local
|
|
26
|
+
Requires-Dist: axio-tools-local; extra == 'local'
|
|
27
|
+
Provides-Extra: mcp
|
|
28
|
+
Requires-Dist: axio-tools-mcp; extra == 'mcp'
|
|
29
|
+
Provides-Extra: nebius
|
|
30
|
+
Requires-Dist: axio-transport-nebius; extra == 'nebius'
|
|
31
|
+
Provides-Extra: openai
|
|
32
|
+
Requires-Dist: axio-transport-openai; extra == 'openai'
|
|
33
|
+
Provides-Extra: rag
|
|
34
|
+
Requires-Dist: axio-tui-rag; extra == 'rag'
|
axio_tui-0.1.0/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "axio-tui"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Textual TUI application for Axio"
|
|
5
|
+
requires-python = ">=3.12"
|
|
6
|
+
license = {text = "MIT"}
|
|
7
|
+
dependencies = [
|
|
8
|
+
"axio",
|
|
9
|
+
"textual>=2.1.0",
|
|
10
|
+
"textual-serve>=1.1",
|
|
11
|
+
"argclass>=1.6",
|
|
12
|
+
"aiosqlite>=0.20",
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
[project.optional-dependencies]
|
|
16
|
+
openai = ["axio-transport-openai"]
|
|
17
|
+
nebius = ["axio-transport-nebius"]
|
|
18
|
+
codex = ["axio-transport-codex"]
|
|
19
|
+
local = ["axio-tools-local"]
|
|
20
|
+
mcp = ["axio-tools-mcp"]
|
|
21
|
+
rag = ["axio-tui-rag"]
|
|
22
|
+
guards = ["axio-tui-guards"]
|
|
23
|
+
all = [
|
|
24
|
+
"axio-tui[openai,nebius,codex,local,mcp,rag,guards]",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
[project.entry-points."axio.tools"]
|
|
28
|
+
status_line = "axio_tui.tools:StatusLine"
|
|
29
|
+
confirm = "axio_tui.tools:Confirm"
|
|
30
|
+
subagent = "axio_tui.tools:SubAgent"
|
|
31
|
+
vision = "axio_tui.tools:VisionAnalyze"
|
|
32
|
+
|
|
33
|
+
[project.scripts]
|
|
34
|
+
axio = "axio_tui.__main__:main"
|
|
35
|
+
|
|
36
|
+
[build-system]
|
|
37
|
+
requires = ["hatchling"]
|
|
38
|
+
build-backend = "hatchling.build"
|
|
39
|
+
|
|
40
|
+
[tool.hatch.build.targets.wheel]
|
|
41
|
+
packages = ["src/axio_tui"]
|
|
42
|
+
|
|
43
|
+
[tool.pytest.ini_options]
|
|
44
|
+
asyncio_mode = "auto"
|
|
45
|
+
|
|
46
|
+
[tool.ruff]
|
|
47
|
+
line-length = 119
|
|
48
|
+
target-version = "py312"
|
|
49
|
+
|
|
50
|
+
[tool.ruff.lint]
|
|
51
|
+
select = ["E", "F", "I", "UP"]
|
|
52
|
+
|
|
53
|
+
[tool.mypy]
|
|
54
|
+
strict = true
|
|
55
|
+
python_version = "3.12"
|
|
56
|
+
|
|
57
|
+
[dependency-groups]
|
|
58
|
+
dev = ["pytest>=8", "pytest-asyncio>=0.24", "mypy>=1.14", "ruff>=0.9"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import shlex
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
from textual_serve.server import Server
|
|
5
|
+
|
|
6
|
+
from .app import AgentApp
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def main() -> None:
|
|
10
|
+
from .args import Args
|
|
11
|
+
|
|
12
|
+
args = Args().parse_args()
|
|
13
|
+
args.log.configure()
|
|
14
|
+
|
|
15
|
+
if args.serve:
|
|
16
|
+
host, _, port_str = args.web.listen.partition(":")
|
|
17
|
+
port = int(port_str) if port_str else 8086
|
|
18
|
+
host = host or "localhost"
|
|
19
|
+
server = Server(
|
|
20
|
+
command=shlex.join([sys.executable, "-m", "axio_tui"]),
|
|
21
|
+
host=host,
|
|
22
|
+
port=port,
|
|
23
|
+
title="Axio Agent",
|
|
24
|
+
)
|
|
25
|
+
server.serve()
|
|
26
|
+
else:
|
|
27
|
+
app = AgentApp()
|
|
28
|
+
app.run()
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
if __name__ == "__main__":
|
|
32
|
+
main()
|