From 266f50adeab1265bcd04e79dafa5418711383984 Mon Sep 17 00:00:00 2001 From: Raullen Date: Thu, 5 Nov 2026 17:15:59 -0800 Subject: [PATCH] Machines API default origin is pay.quicksilverpro.io; setup opens the dashboard keys page; v0.5.1 Fixes #11 --- README.md | 2 +- pyproject.toml | 2 +- src/quicksilverpro/__init__.py | 2 +- src/quicksilverpro/machines.py | 2 +- src/quicksilverpro/setup.py | 2 +- .../skills/quicksilver-machines/references/api.md | 2 +- tests/test_box.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ded983a..3f78837 100644 --- a/README.md +++ b/README.md @@ -239,7 +239,7 @@ filesystem paths; larger files use CLI copy. Delete requires matching `confirm_m The packaged [agent reference](src/quicksilverpro/skills/quicksilver-machines/references/api.md) documents schemas, SSE framing, transfer/terminal adapter assumptions and the remaining backend/actual-client interoperability gates. The default Machines origin -is `https://api.quicksilverpro.io`; `QSP_MACHINES_URL` overrides it independently of +is `https://pay.quicksilverpro.io`; `QSP_MACHINES_URL` overrides it independently of inference. HTTPS is required and credential redirects are refused. Development checks: `pip install -e '.[test,mcp,shell]'` then `pytest -q`. diff --git a/pyproject.toml b/pyproject.toml index 4ac4ff1..da0e4a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "quicksilverpro" -version = "0.5.0" +version = "0.5.1" description = "CLI for QuickSilver Pro — one OpenAI-compatible API for Claude, GPT, Gemini, Grok, GLM, DeepSeek, Qwen, Kimi and Muse chat plus FLUX image generation, on a single balance." readme = "README.md" requires-python = ">=3.9" diff --git a/src/quicksilverpro/__init__.py b/src/quicksilverpro/__init__.py index 2f8e449..92e10d3 100644 --- a/src/quicksilverpro/__init__.py +++ b/src/quicksilverpro/__init__.py @@ -3,4 +3,4 @@ See https://quicksilverpro.io for docs. `qsp --help` for quick reference. """ -__version__ = "0.5.0" +__version__ = "0.5.1" diff --git a/src/quicksilverpro/machines.py b/src/quicksilverpro/machines.py index bac2118..9cde81e 100644 --- a/src/quicksilverpro/machines.py +++ b/src/quicksilverpro/machines.py @@ -206,7 +206,7 @@ def __init__(self, key=None, origin=None, transport=None): self.key = key or resolve_key() if not isinstance(self.key, str) or not self.key.startswith("qsm_"): raise MachineError("invalid_key", "A separate qsm_ Machines key is required.", 2) - origin = origin or os.environ.get("QSP_MACHINES_URL", "https://api.quicksilverpro.io") + origin = origin or os.environ.get("QSP_MACHINES_URL", "https://pay.quicksilverpro.io") parsed = urlsplit(origin) if ( parsed.scheme != "https" diff --git a/src/quicksilverpro/setup.py b/src/quicksilverpro/setup.py index b9ee624..dc85210 100644 --- a/src/quicksilverpro/setup.py +++ b/src/quicksilverpro/setup.py @@ -342,7 +342,7 @@ def setup( "Open browser sign-in to approve Machines scopes and expiry? Sharing is optional and excluded by default." ): raise MachineError("auth_required", "Machines-key approval was declined.", 2) - webbrowser.open("https://pay.quicksilverpro.io/machines/keys") + webbrowser.open("https://quicksilverpro.io/dashboard/machines/#keys") key = click.prompt("Paste the separately approved qsm_ key", hide_input=True).strip() with MachinesClient(key=key) as client: client.auth() diff --git a/src/quicksilverpro/skills/quicksilver-machines/references/api.md b/src/quicksilverpro/skills/quicksilver-machines/references/api.md index 2b92a4d..4b6d7bd 100644 --- a/src/quicksilverpro/skills/quicksilver-machines/references/api.md +++ b/src/quicksilverpro/skills/quicksilver-machines/references/api.md @@ -1,6 +1,6 @@ # Machines beta client contract (0.5.0) -Machines API origin is configured separately using `QSP_MACHINES_URL` (HTTPS origin only), default `https://api.quicksilverpro.io`. Deployment must verify routing before enabling the beta. No network service is launched by the CLI or MCP server. Commands do not implicitly resume or create replacement machines. +Machines API origin is configured separately using `QSP_MACHINES_URL` (HTTPS origin only), default `https://pay.quicksilverpro.io`. No network service is launched by the CLI or MCP server. Commands do not implicitly resume or create replacement machines. | Operation | Public request | |---|---| diff --git a/tests/test_box.py b/tests/test_box.py index 45b67f0..a412de5 100644 --- a/tests/test_box.py +++ b/tests/test_box.py @@ -327,7 +327,7 @@ def test_redirect_never_sends_key_to_another_origin(mock_api): result = run("ls", "--json") assert result.exit_code == 1 assert len(calls) == 1 - assert calls[0].url.host == "api.quicksilverpro.io" + assert calls[0].url.host == "pay.quicksilverpro.io" def test_interrupted_sse_closes_stream(mock_api):