tg-tui 0.0.1__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.
@@ -0,0 +1,6 @@
1
+ __pycache__/
2
+ *.egg-info/
3
+ dist/
4
+ build/
5
+ .venv/
6
+ .pytest_cache/
@@ -0,0 +1,11 @@
1
+ # Changelog
2
+
3
+ Keep a Changelog format, SemVer.
4
+
5
+ ## [0.1.0] — 2026-10-31
6
+
7
+ ### Added
8
+
9
+ - Package split out of the core (#1720 wave 2): `tg_agent/cli/commands/agent_tui.py`
10
+ and `agent_tui.tcss` moved verbatim to `tg_tui.app` / `tg_tui/agent_tui.tcss`;
11
+ the TUI tests moved into `packages/tg_tui/tests`.
tg_tui-0.0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Axisrow
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.
tg_tui-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,44 @@
1
+ Metadata-Version: 2.4
2
+ Name: tg-tui
3
+ Version: 0.0.1
4
+ Summary: Legacy interactive agent-chat TUI for tg-agent (`tg-agent agent chat` without a prompt); frozen, optional
5
+ Author: Axisrow
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/axisrow/tg_tui
8
+ Project-URL: Issues, https://github.com/axisrow/tg_tui/issues
9
+ Keywords: telegram,agent,tui,textual
10
+ Classifier: Development Status :: 7 - Inactive
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Typing :: Typed
17
+ Requires-Python: >=3.11
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: tg-agent
21
+ Requires-Dist: textual[syntax]>=8.2.8
22
+ Dynamic: license-file
23
+
24
+ # tg-tui
25
+
26
+ The interactive agent-chat TUI of tg-agent (`tg-agent agent chat` without a
27
+ prompt), built on [Textual](https://textual.textualize.io/). Split out of the
28
+ core in [#1720](https://github.com/axisrow/tg_content_factory/issues/1720)
29
+ (wave 2), following the `packages/tg_shared` layout.
30
+
31
+ **Status: legacy, frozen.** Under the automation-first contract the TUI is a
32
+ deprecated human-facing surface: it keeps working, gets no new features. The
33
+ core (`tg_agent`) never imports this package — an import-linter contract
34
+ enforces it; only the `agent chat` entry point loads it lazily.
35
+
36
+ ## Install
37
+
38
+ ```bash
39
+ pip install -e packages/tg_tui
40
+ ```
41
+
42
+ Without it, `tg-agent agent chat` (no prompt) exits with code 1 and an install
43
+ hint; one-shot `tg-agent agent chat "<prompt>"` and every other command work
44
+ without the package.
tg_tui-0.0.1/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # tg-tui
2
+
3
+ The interactive agent-chat TUI of tg-agent (`tg-agent agent chat` without a
4
+ prompt), built on [Textual](https://textual.textualize.io/). Split out of the
5
+ core in [#1720](https://github.com/axisrow/tg_content_factory/issues/1720)
6
+ (wave 2), following the `packages/tg_shared` layout.
7
+
8
+ **Status: legacy, frozen.** Under the automation-first contract the TUI is a
9
+ deprecated human-facing surface: it keeps working, gets no new features. The
10
+ core (`tg_agent`) never imports this package — an import-linter contract
11
+ enforces it; only the `agent chat` entry point loads it lazily.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ pip install -e packages/tg_tui
17
+ ```
18
+
19
+ Without it, `tg-agent agent chat` (no prompt) exits with code 1 and an install
20
+ hint; one-shot `tg-agent agent chat "<prompt>"` and every other command work
21
+ without the package.
@@ -0,0 +1,38 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "tg-tui"
7
+ version = "0.0.1"
8
+ description = "Legacy interactive agent-chat TUI for tg-agent (`tg-agent agent chat` without a prompt); frozen, optional"
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ requires-python = ">=3.11"
12
+ authors = [
13
+ {name = "Axisrow"}
14
+ ]
15
+ keywords = ["telegram", "agent", "tui", "textual"]
16
+ classifiers = [
17
+ "Development Status :: 7 - Inactive",
18
+ "Environment :: Console",
19
+ "Intended Audience :: Developers",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.11",
22
+ "Programming Language :: Python :: 3.12",
23
+ "Typing :: Typed",
24
+ ]
25
+ dependencies = [
26
+ "tg-agent",
27
+ "textual[syntax]>=8.2.8",
28
+ ]
29
+
30
+ [project.urls]
31
+ Homepage = "https://github.com/axisrow/tg_tui"
32
+ Issues = "https://github.com/axisrow/tg_tui/issues"
33
+
34
+ [tool.setuptools.packages.find]
35
+ where = ["src"]
36
+
37
+ [tool.setuptools.package-data]
38
+ tg_tui = ["*.tcss", "py.typed"]
tg_tui-0.0.1/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,10 @@
1
+ """Legacy interactive agent-chat TUI for tg-agent (#1720 wave 2).
2
+
3
+ Optional surface: ``tg-agent agent chat`` without a prompt imports it lazily;
4
+ the core never depends on this package. Frozen under the automation-first
5
+ contract — kept working, no new features.
6
+ """
7
+
8
+ from tg_tui.app import AgentTuiApp
9
+
10
+ __all__ = ["AgentTuiApp"]
@@ -0,0 +1,116 @@
1
+ AgentTuiApp {
2
+ background: $background;
3
+ }
4
+
5
+ #sidebar {
6
+ width: 30;
7
+ border-right: solid $primary-darken-2;
8
+ background: $surface;
9
+ }
10
+
11
+ #sidebar-title {
12
+ width: 1fr;
13
+ height: 1;
14
+ content-align: center middle;
15
+ background: $primary-darken-3;
16
+ color: $text;
17
+ text-style: bold;
18
+ }
19
+
20
+ #new-thread-btn {
21
+ width: 1fr;
22
+ margin: 1 1 0 1;
23
+ }
24
+
25
+ #thread-list {
26
+ width: 1fr;
27
+ height: 1fr;
28
+ margin-top: 1;
29
+ }
30
+
31
+ ThreadItem {
32
+ width: 1fr;
33
+ height: 2;
34
+ padding: 0 1;
35
+ border-bottom: solid $primary-darken-3;
36
+ }
37
+
38
+ ThreadItem:hover {
39
+ background: $primary-darken-2;
40
+ }
41
+
42
+ ThreadItem.active {
43
+ background: $primary-darken-1;
44
+ }
45
+
46
+ ThreadItem Label {
47
+ width: 1fr;
48
+ overflow: hidden hidden;
49
+ }
50
+
51
+ #chat-area {
52
+ width: 1fr;
53
+ background: $background;
54
+ }
55
+
56
+ #messages {
57
+ width: 1fr;
58
+ height: 1fr;
59
+ padding: 0 1;
60
+ }
61
+
62
+ .user-bubble {
63
+ margin: 1 0;
64
+ padding: 1 2;
65
+ background: $surface;
66
+ border: solid $primary-darken-2;
67
+ border-title-color: $accent;
68
+ color: $text;
69
+ }
70
+
71
+ .assistant-bubble {
72
+ margin: 1 0;
73
+ padding: 1 2;
74
+ background: $background;
75
+ border: solid $success-darken-2;
76
+ border-title-color: $success;
77
+ color: $text;
78
+ }
79
+
80
+ .streaming-bubble {
81
+ margin: 1 0;
82
+ padding: 1 2;
83
+ background: $background;
84
+ border: dashed $warning-darken-1;
85
+ border-title-color: $warning;
86
+ }
87
+
88
+ .activity-log {
89
+ color: #666666;
90
+ margin-bottom: 0;
91
+ }
92
+
93
+ #input-bar {
94
+ height: auto;
95
+ max-height: 8;
96
+ min-height: 3;
97
+ dock: bottom;
98
+ border-top: solid $primary-darken-2;
99
+ padding: 0 1;
100
+ background: $surface;
101
+ }
102
+
103
+ #input {
104
+ width: 1fr;
105
+ height: auto;
106
+ min-height: 1;
107
+ max-height: 6;
108
+ margin: 0 1 0 0;
109
+ border: solid $primary-darken-2;
110
+ }
111
+
112
+ #send-btn {
113
+ width: auto;
114
+ min-width: 12;
115
+ height: 3;
116
+ }