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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codicent-cli
3
- Version: 0.8.2
3
+ Version: 0.8.3
4
4
  Summary: Command-line interface for the Codicent API
5
5
  Home-page: https://github.com/izaxon/codicent-cli
6
6
  Author: Johan Isaksson
@@ -147,7 +147,7 @@ For more information, visit: https://github.com/izaxon/codicent-cli
147
147
  """
148
148
  print(help_text.strip())
149
149
 
150
- CURRENT_VERSION = "0.8.1"
150
+ CURRENT_VERSION = "0.8.3"
151
151
 
152
152
  def show_version():
153
153
  """Display version information."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codicent-cli
3
- Version: 0.8.2
3
+ Version: 0.8.3
4
4
  Summary: Command-line interface for the Codicent API
5
5
  Home-page: https://github.com/izaxon/codicent-cli
6
6
  Author: Johan Isaksson
@@ -9,7 +9,7 @@ except FileNotFoundError:
9
9
 
10
10
  setup(
11
11
  name='codicent-cli',
12
- version='0.8.2',
12
+ version='0.8.3',
13
13
  author='Johan Isaksson',
14
14
  author_email='johan@izaxon.com',
15
15
  description='Command-line interface for the Codicent API',
@@ -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
- print(f"[codicent terminal] Connecting to {base_url} ...")
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
- print("[codicent terminal] Connected. Shell is ready in the browser.")
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
- print("[codicent terminal] Connected.")
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