From 9b0bb97e131b0aafdd43f284389e74b524cc0de5 Mon Sep 17 00:00:00 2001 From: Alex Cunha Date: Tue, 20 Oct 2026 09:53:43 -0700 Subject: [PATCH 1/3] Keep the browser's startup messages out of the login prompt Co-Authored-By: Claude Opus 5.5 --- modcli/cli.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modcli/cli.py b/modcli/cli.py index af359cd..494d763 100644 --- a/modcli/cli.py +++ b/modcli/cli.py @@ -1,3 +1,4 @@ +import os import secrets import sys import webbrowser @@ -48,7 +49,16 @@ def config_group(): def _open_browser(url: str): click.echo('Sign in in the browser. If it doesn\'t open, visit:') click.echo(url) - webbrowser.open(url) + # The browser inherits our stderr; its startup messages (GTK's) would land in the prompt + saved_stderr = os.dup(2) + devnull = os.open(os.devnull, os.O_WRONLY) + try: + os.dup2(devnull, 2) + webbrowser.open(url) + finally: + os.dup2(saved_stderr, 2) + os.close(saved_stderr) + os.close(devnull) def _start_forum(api_url: str, local_url: str): From 436643ab292feb262b9242778c20e962b0b95276 Mon Sep 17 00:00:00 2001 From: Alex Cunha Date: Tue, 20 Oct 2026 09:53:43 -0700 Subject: [PATCH 2/3] Bump to 3.0.1 Co-Authored-By: Claude Opus 5.5 --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0da7559..5cc8f6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "mod-devel-cli" -version = "3.0.0" +version = "3.0.1" description = "MOD Command Line Interface" authors = [ {name = "Alex Cunha", email = "alex@mod.audio"} diff --git a/uv.lock b/uv.lock index 128fd69..2f8e71e 100644 --- a/uv.lock +++ b/uv.lock @@ -90,7 +90,7 @@ wheels = [ [[package]] name = "mod-devel-cli" -version = "3.0.0" +version = "3.0.1" source = { editable = "." } dependencies = [ { name = "click" }, From 6f58e2d48eea5a13615d2de2507d6be6ea58d2f9 Mon Sep 17 00:00:00 2001 From: Alex Cunha Date: Tue, 20 Oct 2026 09:54:52 -0700 Subject: [PATCH 3/3] Replace the labs environment with prod and default to dev Co-Authored-By: Claude Opus 5.5 --- modcli/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modcli/settings.py b/modcli/settings.py index 81d2a4b..ba7fa5f 100644 --- a/modcli/settings.py +++ b/modcli/settings.py @@ -2,7 +2,7 @@ CONFIG_DIR = os.path.expanduser('~/.config/modcli') URLS = { - 'labs': ('https://api-labs.mod.audio/v2', 'https://pipeline-labs.mod.audio/bundle/'), 'dev': ('https://api-dev.mod.audio/v2', 'https://pipeline-dev.mod.audio/bundle/'), + 'prod': ('https://api.mod.audio/v2', 'https://pipeline.mod.audio/bundle/') } -DEFAULT_ENV = 'labs' +DEFAULT_ENV = 'dev'