dooers-cli 0.11.2__tar.gz → 0.11.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.
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/PKG-INFO +1 -1
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/pyproject.toml +1 -1
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/run.py +19 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_local_runtime_slot.py +7 -1
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/uv.lock +1 -1
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/.gitignore +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/README.md +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/__init__.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/agent_store.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/agents.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/auth.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/cli.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/config.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/core_client.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/env_prod.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/ignore.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/logs.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/manifest_sync.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/org.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/push.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/push_client.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/runtime_client.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/settings.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/token_store.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/user_config.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/cli/validate.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/src/dooers/py.typed +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/__init__.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_agent_store.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_agents_delete.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_agents_update.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_config.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_core_client.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_encoding.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_env_prod.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_ignore.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_logs.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_manifest_sync.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_org.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_push_client_async.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_push_failure_display.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_push_hosting_guard.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_push_poll.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_push_teardown.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_smoke.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_token_store.py +0 -0
- {dooers_cli-0.11.2 → dooers_cli-0.11.3}/tests/test_validate.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: dooers-cli
|
|
3
|
-
Version: 0.11.
|
|
3
|
+
Version: 0.11.3
|
|
4
4
|
Summary: Dooers CLI — run and deploy agents to Dooers, manage agent records, authenticate from the terminal
|
|
5
5
|
Project-URL: Repository, https://github.com/Dooers-ai/dooers-cli
|
|
6
6
|
Author-email: Dooers <dev@dooers.ai>
|
|
@@ -95,6 +95,20 @@ def _messages_url(public_url: str, path: str | None) -> str:
|
|
|
95
95
|
return f"{ws_scheme}://{parsed.netloc}{message_path}"
|
|
96
96
|
|
|
97
97
|
|
|
98
|
+
def app_console_urls(
|
|
99
|
+
org_id: str,
|
|
100
|
+
agent_id: str,
|
|
101
|
+
runtime_id: str,
|
|
102
|
+
*,
|
|
103
|
+
app_url: str | None = None,
|
|
104
|
+
) -> tuple[str, str]:
|
|
105
|
+
"""Studio page and the 1:1 test chat already bound to this local runtime."""
|
|
106
|
+
base = (app_url or os.environ.get("DOOERS_APP_URL") or "https://app.dooers.ai").rstrip("/")
|
|
107
|
+
studio = f"{base}/studio/{org_id}/{agent_id}"
|
|
108
|
+
test = f"{base}/agents/{org_id}/{agent_id}?runtimeId={runtime_id}"
|
|
109
|
+
return studio, test
|
|
110
|
+
|
|
111
|
+
|
|
98
112
|
async def _allocate_tunnel(
|
|
99
113
|
settings: Settings, token: str, agent_id: str, paths: list[str]
|
|
100
114
|
) -> dict[str, Any]:
|
|
@@ -428,6 +442,11 @@ async def _run(settings: Settings, token: str, manifest: Any, *, with_prod_env:
|
|
|
428
442
|
typer.echo(f"Runtime: {runtime.runtime_id}")
|
|
429
443
|
typer.echo(f"Public: {public_url}")
|
|
430
444
|
typer.echo(f"Messages: {messages_url}")
|
|
445
|
+
studio_url, test_url = app_console_urls(
|
|
446
|
+
manifest.organization_id, manifest.agent_id, runtime.runtime_id
|
|
447
|
+
)
|
|
448
|
+
typer.echo(f"Studio: {studio_url}")
|
|
449
|
+
typer.echo(f"Test: {test_url}")
|
|
431
450
|
typer.echo("Connected to Dooers Studio. Press Ctrl+C to stop.")
|
|
432
451
|
|
|
433
452
|
tunnel_task = asyncio.create_task(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Stable tunnel URL replaces any previous local runtime row."""
|
|
2
2
|
|
|
3
|
-
from dooers.cli.run import local_runtime_ids_to_replace
|
|
3
|
+
from dooers.cli.run import app_console_urls, local_runtime_ids_to_replace
|
|
4
4
|
from dooers.cli.runtime_client import RuntimeRecord
|
|
5
5
|
|
|
6
6
|
|
|
@@ -25,3 +25,9 @@ def test_previous_local_runtimes_are_replaced_after_the_tunnel_is_free() -> None
|
|
|
25
25
|
_runtime("external", "online", "ext"),
|
|
26
26
|
]
|
|
27
27
|
) == ["live", "old"]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def test_console_urls_open_studio_and_the_bound_test_chat() -> None:
|
|
31
|
+
studio, test = app_console_urls("org-1", "agent-1", "runtime-1", app_url="https://app.dooers.ai/")
|
|
32
|
+
assert studio == "https://app.dooers.ai/studio/org-1/agent-1"
|
|
33
|
+
assert test == "https://app.dooers.ai/agents/org-1/agent-1?runtimeId=runtime-1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|