onako 0.4.0__py3-none-any.whl → 0.4.1__py3-none-any.whl

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.
onako/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.4.0"
1
+ __version__ = "0.4.1"
onako/cli.py CHANGED
@@ -43,8 +43,10 @@ def main(ctx, host, port, session, working_dir, skip_permissions):
43
43
 
44
44
  _start_server(host, port, session, working_dir, skip_permissions)
45
45
 
46
- # If not inside tmux, ensure session exists and attach
47
- if not os.environ.get("TMUX"):
46
+ inside_tmux = bool(os.environ.get("TMUX"))
47
+
48
+ # If not inside tmux, ensure session exists
49
+ if not inside_tmux:
48
50
  result = subprocess.run(
49
51
  ["tmux", "has-session", "-t", session],
50
52
  capture_output=True,
@@ -54,6 +56,16 @@ def main(ctx, host, port, session, working_dir, skip_permissions):
54
56
  ["tmux", "new-session", "-d", "-s", session],
55
57
  check=True,
56
58
  )
59
+
60
+ # Show dashboard URL in tmux status bar
61
+ local_ip = _get_local_ip() or "localhost"
62
+ subprocess.run(
63
+ ["tmux", "set", "-t", session, "status-right",
64
+ f"onako dash: http://{local_ip}:{port}"],
65
+ capture_output=True,
66
+ )
67
+
68
+ if not inside_tmux:
57
69
  os.execvp("tmux", ["tmux", "attach-session", "-t", session])
58
70
 
59
71
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: onako
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Dispatch and monitor Claude Code tasks from your phone
5
5
  Author: Amir
6
6
  License-Expression: MIT
@@ -45,6 +45,14 @@ onako serve # foreground server (for development)
45
45
  onako version # print version
46
46
  ```
47
47
 
48
+ ### Adopting existing tmux windows
49
+
50
+ If you already have work running in another tmux session, move those windows into onako's session so they show up in the dashboard:
51
+
52
+ ```bash
53
+ tmux move-window -s <session>:<window> -t onako
54
+ ```
55
+
48
56
  ## How it works
49
57
 
50
58
  Onako monitors all tmux windows in the configured session. Windows it creates (via the dashboard) are "managed" tasks. Windows created by you or other tools are discovered automatically as "external" — both get full dashboard support: view output, send messages, kill.
@@ -0,0 +1,10 @@
1
+ onako/__init__.py,sha256=pMtTmSUht-XtbR_7Doz6bsQqopJJd8rZ8I8zy2HwwoA,22
2
+ onako/cli.py,sha256=_-dWcf7fVD3QmN6wIzbFLydEVX2pzGs2cKBwP6SZWtY,7932
3
+ onako/server.py,sha256=NfP2CaecxAzuq0tSIaatfYX3d98EuLfhIwK00oHNjro,2883
4
+ onako/tmux_orchestrator.py,sha256=URAOdYo88SzW1ef0o9_hKxJ0SeTtuqZlex1kgTMv42w,8277
5
+ onako/static/index.html,sha256=ioombLZg8uhVHL64saB50ikYBUYNDgw5yClA-QoNxEo,16802
6
+ onako-0.4.1.dist-info/METADATA,sha256=WBaCh-ead_JtD_avuSMhUeJD0dnBl7kLor7UIXPFrB4,2175
7
+ onako-0.4.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
8
+ onako-0.4.1.dist-info/entry_points.txt,sha256=51KRJzuVpr69iT_k4JO0Lj3DQv_HbgtGjTBTev13JAQ,41
9
+ onako-0.4.1.dist-info/top_level.txt,sha256=EZsc5qq2paM9GTbaFE9Xar4B5wFdfIqK9l_bDQVcmZ4,6
10
+ onako-0.4.1.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- onako/__init__.py,sha256=42STGor_9nKYXumfeV5tiyD_M8VdcddX7CEexmibPBk,22
2
- onako/cli.py,sha256=8nsQj0XbgRlS9DsgYfao2uc1hyTE8q9ULVyGtPOgP9I,7629
3
- onako/server.py,sha256=NfP2CaecxAzuq0tSIaatfYX3d98EuLfhIwK00oHNjro,2883
4
- onako/tmux_orchestrator.py,sha256=URAOdYo88SzW1ef0o9_hKxJ0SeTtuqZlex1kgTMv42w,8277
5
- onako/static/index.html,sha256=ioombLZg8uhVHL64saB50ikYBUYNDgw5yClA-QoNxEo,16802
6
- onako-0.4.0.dist-info/METADATA,sha256=dv588takf4ASUQzsuF7mMYPwJs1Gq4WDU741BvAwegY,1945
7
- onako-0.4.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
8
- onako-0.4.0.dist-info/entry_points.txt,sha256=51KRJzuVpr69iT_k4JO0Lj3DQv_HbgtGjTBTev13JAQ,41
9
- onako-0.4.0.dist-info/top_level.txt,sha256=EZsc5qq2paM9GTbaFE9Xar4B5wFdfIqK9l_bDQVcmZ4,6
10
- onako-0.4.0.dist-info/RECORD,,
File without changes