codicent-cli 0.8.4__tar.gz → 0.8.5__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.
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/PKG-INFO +1 -1
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/app.py +43 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/codicent_cli.egg-info/PKG-INFO +1 -1
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/setup.py +1 -1
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/LICENSE +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/README.md +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/auth.py +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/codicent_cli.egg-info/SOURCES.txt +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/codicent_cli.egg-info/dependency_links.txt +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/codicent_cli.egg-info/entry_points.txt +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/codicent_cli.egg-info/requires.txt +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/codicent_cli.egg-info/top_level.txt +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/setup.cfg +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/templates/__init__.py +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/templates/default.json +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/templates/document-processing.json +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/templates/koi-studio.json +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/terminal.py +0 -0
- {codicent_cli-0.8.4 → codicent_cli-0.8.5}/wrap.py +0 -0
|
@@ -123,6 +123,23 @@ TERMINAL (Web Terminal Host):
|
|
|
123
123
|
codicent terminal bash
|
|
124
124
|
codicent terminal zsh
|
|
125
125
|
|
|
126
|
+
TUI (Text User Interface):
|
|
127
|
+
tui Open a split-screen terminal UI with a logbook home panel on
|
|
128
|
+
the left (recent messages + compose) and an AI chat panel on
|
|
129
|
+
the right. Uses the same authentication as other commands.
|
|
130
|
+
|
|
131
|
+
Key bindings:
|
|
132
|
+
Tab / Shift+Tab Switch focus between compose and chat inputs
|
|
133
|
+
Enter Send the current input
|
|
134
|
+
Escape + Enter Insert a newline in the active input
|
|
135
|
+
Ctrl+R Refresh message list
|
|
136
|
+
F1 or Alt+1 Focus compose input
|
|
137
|
+
F2 or Alt+2 Focus chat input
|
|
138
|
+
Ctrl+C Quit
|
|
139
|
+
|
|
140
|
+
Example:
|
|
141
|
+
codicent tui
|
|
142
|
+
|
|
126
143
|
EXAMPLES:
|
|
127
144
|
codicent auth
|
|
128
145
|
codicent "What is Python?"
|
|
@@ -133,6 +150,7 @@ EXAMPLES:
|
|
|
133
150
|
codicent wrap claude
|
|
134
151
|
codicent terminal
|
|
135
152
|
codicent daemon
|
|
153
|
+
codicent tui
|
|
136
154
|
codicent update
|
|
137
155
|
codicent update --install
|
|
138
156
|
echo "Help me debug this" | codicent
|
|
@@ -1015,6 +1033,31 @@ def main():
|
|
|
1015
1033
|
project=wrap_project,
|
|
1016
1034
|
)
|
|
1017
1035
|
|
|
1036
|
+
# Handle tui command
|
|
1037
|
+
if len(sys.argv) > 1 and sys.argv[1] == "tui":
|
|
1038
|
+
from tui import run_tui
|
|
1039
|
+
|
|
1040
|
+
tui_token = auth.get_cached_token()
|
|
1041
|
+
if not tui_token:
|
|
1042
|
+
tui_token = os.getenv("CODICENT_TOKEN")
|
|
1043
|
+
if not tui_token:
|
|
1044
|
+
console.print("[red]❌ No authentication found.[/red]")
|
|
1045
|
+
console.print("[dim]Run 'codicent auth' to authenticate, or set CODICENT_TOKEN[/dim]")
|
|
1046
|
+
return 1
|
|
1047
|
+
|
|
1048
|
+
try:
|
|
1049
|
+
tui_payload = tui_token.split(".")[1]
|
|
1050
|
+
tui_payload += '=' * (-len(tui_payload) % 4)
|
|
1051
|
+
tui_jwt = json.loads(base64.urlsafe_b64decode(tui_payload).decode('utf-8'))
|
|
1052
|
+
tui_project = tui_jwt["project"]
|
|
1053
|
+
except Exception as e:
|
|
1054
|
+
console.print(f"[red]❌ Failed to extract project from token: {e}[/red]")
|
|
1055
|
+
return 1
|
|
1056
|
+
|
|
1057
|
+
tui_codicent = Codicent(tui_token)
|
|
1058
|
+
run_tui(tui_codicent, tui_project)
|
|
1059
|
+
return 0
|
|
1060
|
+
|
|
1018
1061
|
# Handle terminal command
|
|
1019
1062
|
if len(sys.argv) > 1 and sys.argv[1] == "terminal":
|
|
1020
1063
|
from terminal import run_terminal_host
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|