codicent-cli 0.8.2__tar.gz → 0.8.3__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.2 → codicent_cli-0.8.3}/PKG-INFO +1 -1
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/app.py +1 -1
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/codicent_cli.egg-info/PKG-INFO +1 -1
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/setup.py +1 -1
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/terminal.py +8 -3
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/LICENSE +0 -0
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/README.md +0 -0
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/auth.py +0 -0
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/codicent_cli.egg-info/SOURCES.txt +0 -0
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/codicent_cli.egg-info/dependency_links.txt +0 -0
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/codicent_cli.egg-info/entry_points.txt +0 -0
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/codicent_cli.egg-info/requires.txt +0 -0
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/codicent_cli.egg-info/top_level.txt +0 -0
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/setup.cfg +0 -0
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/templates/__init__.py +0 -0
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/templates/default.json +0 -0
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/templates/document-processing.json +0 -0
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/templates/koi-studio.json +0 -0
- {codicent_cli-0.8.2 → codicent_cli-0.8.3}/wrap.py +0 -0
|
@@ -70,7 +70,8 @@ def run_terminal_host(token: str, base_url: str, project: str, shell: str = None
|
|
|
70
70
|
)
|
|
71
71
|
|
|
72
72
|
print(f"[codicent terminal] project=@{project} shell={shell} session={session_id}")
|
|
73
|
-
|
|
73
|
+
ws_display = f"{ws_base}/terminal/host?project={project}&command={os.path.basename(shell)}&sessionId={session_id}"
|
|
74
|
+
print(f"[codicent terminal] Connecting to {ws_display} ...")
|
|
74
75
|
|
|
75
76
|
stop_event = threading.Event()
|
|
76
77
|
ws_app = None
|
|
@@ -101,7 +102,9 @@ def run_terminal_host(token: str, base_url: str, project: str, shell: str = None
|
|
|
101
102
|
_set_pty_size(cols, rows)
|
|
102
103
|
|
|
103
104
|
def on_open(ws):
|
|
104
|
-
|
|
105
|
+
browser_url = f"{ws_base}/terminal/ws?sessionId={session_id}"
|
|
106
|
+
print(f"[codicent terminal] Connected. Shell is ready in the browser.")
|
|
107
|
+
print(f"[codicent terminal] Browser connect: {browser_url}")
|
|
105
108
|
# Send initial resize
|
|
106
109
|
import json
|
|
107
110
|
ws.send(json.dumps({"type": "resize", "cols": cols, "rows": rows}))
|
|
@@ -199,7 +202,9 @@ def run_terminal_host(token: str, base_url: str, project: str, shell: str = None
|
|
|
199
202
|
threading.Thread(target=_stdout_reader, daemon=True).start()
|
|
200
203
|
|
|
201
204
|
def on_open(ws):
|
|
202
|
-
|
|
205
|
+
browser_url = f"{ws_base}/terminal/ws?sessionId={session_id}"
|
|
206
|
+
print(f"[codicent terminal] Connected.")
|
|
207
|
+
print(f"[codicent terminal] Browser connect: {browser_url}")
|
|
203
208
|
|
|
204
209
|
# Thread: drain queue -> WebSocket
|
|
205
210
|
def _sender():
|
|
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
|