aline-ai 0.5.13__py3-none-any.whl → 0.6.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.
- {aline_ai-0.5.13.dist-info → aline_ai-0.6.1.dist-info}/METADATA +1 -1
- {aline_ai-0.5.13.dist-info → aline_ai-0.6.1.dist-info}/RECORD +24 -19
- realign/__init__.py +1 -1
- realign/auth.py +21 -0
- realign/cli.py +293 -6
- realign/commands/auth.py +110 -0
- realign/commands/import_shares.py +6 -0
- realign/commands/watcher.py +8 -0
- realign/commands/worker.py +8 -0
- realign/dashboard/app.py +68 -6
- realign/dashboard/backends/__init__.py +6 -0
- realign/dashboard/backends/iterm2.py +599 -0
- realign/dashboard/backends/kitty.py +372 -0
- realign/dashboard/layout.py +320 -0
- realign/dashboard/terminal_backend.py +110 -0
- realign/dashboard/widgets/events_table.py +44 -5
- realign/dashboard/widgets/sessions_table.py +76 -16
- realign/dashboard/widgets/terminal_panel.py +566 -104
- realign/watcher_daemon.py +11 -0
- realign/worker_daemon.py +11 -0
- {aline_ai-0.5.13.dist-info → aline_ai-0.6.1.dist-info}/WHEEL +0 -0
- {aline_ai-0.5.13.dist-info → aline_ai-0.6.1.dist-info}/entry_points.txt +0 -0
- {aline_ai-0.5.13.dist-info → aline_ai-0.6.1.dist-info}/licenses/LICENSE +0 -0
- {aline_ai-0.5.13.dist-info → aline_ai-0.6.1.dist-info}/top_level.txt +0 -0
realign/watcher_daemon.py
CHANGED
|
@@ -48,6 +48,17 @@ async def run_daemon():
|
|
|
48
48
|
"""Run the watcher daemon."""
|
|
49
49
|
watcher = None
|
|
50
50
|
|
|
51
|
+
# Check login status before starting
|
|
52
|
+
try:
|
|
53
|
+
from .auth import is_logged_in
|
|
54
|
+
except ImportError:
|
|
55
|
+
from realign.auth import is_logged_in
|
|
56
|
+
|
|
57
|
+
if not is_logged_in():
|
|
58
|
+
logger.error("Not logged in. Watcher daemon requires authentication.")
|
|
59
|
+
print("[Watcher Daemon] Error: Not logged in. Run 'aline login' first.", file=sys.stderr)
|
|
60
|
+
sys.exit(1)
|
|
61
|
+
|
|
51
62
|
# Shutdown handler
|
|
52
63
|
def handle_shutdown(signum, frame):
|
|
53
64
|
"""Handle shutdown signals gracefully."""
|
realign/worker_daemon.py
CHANGED
|
@@ -49,6 +49,17 @@ async def run_daemon() -> None:
|
|
|
49
49
|
worker = None
|
|
50
50
|
db = None
|
|
51
51
|
|
|
52
|
+
# Check login status before starting
|
|
53
|
+
try:
|
|
54
|
+
from .auth import is_logged_in
|
|
55
|
+
except ImportError:
|
|
56
|
+
from realign.auth import is_logged_in
|
|
57
|
+
|
|
58
|
+
if not is_logged_in():
|
|
59
|
+
logger.error("Not logged in. Worker daemon requires authentication.")
|
|
60
|
+
print("[Worker Daemon] Error: Not logged in. Run 'aline login' first.", file=sys.stderr)
|
|
61
|
+
sys.exit(1)
|
|
62
|
+
|
|
52
63
|
def handle_shutdown(signum, frame):
|
|
53
64
|
logger.info(f"Received signal {signum}, shutting down...")
|
|
54
65
|
try:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|