pipecatcloud 0.2.13__tar.gz → 0.2.14__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.
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/CHANGELOG.md +7 -0
- {pipecatcloud-0.2.13/src/pipecatcloud.egg-info → pipecatcloud-0.2.14}/PKG-INFO +1 -1
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/cli/commands/auth.py +35 -19
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14/src/pipecatcloud.egg-info}/PKG-INFO +1 -1
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/.github/workflows/publish-pypi.yml +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/.github/workflows/publish-test.yml +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/.github/workflows/tests.yml +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/.gitignore +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/LICENSE +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/README.md +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/pipecat-cloud.png +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/pyproject.toml +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/pytest.ini +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/setup.cfg +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/__init__.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/__main__.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/__version__.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/_utils/__init__.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/_utils/async_utils.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/_utils/auth_utils.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/_utils/console_utils.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/_utils/deploy_utils.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/_utils/regions.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/agent.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/api.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/cli/__init__.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/cli/api.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/cli/commands/__init__.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/cli/commands/agent.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/cli/commands/deploy.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/cli/commands/docker.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/cli/commands/organizations.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/cli/commands/regions.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/cli/commands/secrets.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/cli/config.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/cli/entry_point.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/config.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/constants.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/exception.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/py.typed +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/session.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud/smallwebrtc/session_manager.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud.egg-info/SOURCES.txt +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud.egg-info/dependency_links.txt +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud.egg-info/entry_points.txt +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud.egg-info/requires.txt +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/src/pipecatcloud.egg-info/top_level.txt +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/tests/__init__.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/tests/test_agent_sessions.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/tests/test_agent_stop.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/tests/test_api_client.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/tests/test_docker_commands.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/tests/test_krisp_viva.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/tests/test_managed_keys.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/tests/test_regions.py +0 -0
- {pipecatcloud-0.2.13 → pipecatcloud-0.2.14}/uv.lock +0 -0
|
@@ -5,6 +5,13 @@ All notable changes to **Pipecat Cloud** will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.2.14] - 2025-12-09
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Added authentication code display during `auth login` for session
|
|
13
|
+
verification.
|
|
14
|
+
|
|
8
15
|
## [0.2.13] - 2025-12-03
|
|
9
16
|
|
|
10
17
|
### Added
|
|
@@ -37,7 +37,9 @@ class _AuthFlow:
|
|
|
37
37
|
pass
|
|
38
38
|
|
|
39
39
|
@asynccontextmanager
|
|
40
|
-
async def start(
|
|
40
|
+
async def start(
|
|
41
|
+
self,
|
|
42
|
+
) -> AsyncGenerator[Tuple[Optional[str], Optional[str], Optional[str]], None]:
|
|
41
43
|
try:
|
|
42
44
|
async with aiohttp.ClientSession() as session:
|
|
43
45
|
url = f"{API.construct_api_url('login_path')}"
|
|
@@ -49,9 +51,10 @@ class _AuthFlow:
|
|
|
49
51
|
self.token_flow_id = data["token_flow_id"]
|
|
50
52
|
self.wait_secret = data["wait_secret"]
|
|
51
53
|
web_url = data["web_url"]
|
|
52
|
-
|
|
54
|
+
code = data.get("code")
|
|
55
|
+
yield (self.token_flow_id, web_url, code)
|
|
53
56
|
except Exception:
|
|
54
|
-
yield (None, None)
|
|
57
|
+
yield (None, None, None)
|
|
55
58
|
|
|
56
59
|
async def finish(self, timeout: float = 40.0, network_timeout: float = 5.0) -> Optional[str]:
|
|
57
60
|
start_time = asyncio.get_event_loop().time()
|
|
@@ -84,15 +87,18 @@ AuthFlow = synchronize_api(_AuthFlow)
|
|
|
84
87
|
|
|
85
88
|
def _open_url(url: str) -> bool:
|
|
86
89
|
try:
|
|
87
|
-
is_wsl =
|
|
88
|
-
has_display = bool(os.environ.get(
|
|
90
|
+
is_wsl = "WSL_DISTRO_NAME" in os.environ or "WSL_INTEROP" in os.environ
|
|
91
|
+
has_display = bool(os.environ.get("DISPLAY") or os.environ.get("WAYLAND_DISPLAY"))
|
|
89
92
|
|
|
90
93
|
if is_wsl and not has_display:
|
|
91
94
|
return False
|
|
92
95
|
|
|
93
96
|
browser = webbrowser.get()
|
|
94
|
-
if
|
|
95
|
-
|
|
97
|
+
if isinstance(browser, webbrowser.GenericBrowser) and browser.name not in [
|
|
98
|
+
"open",
|
|
99
|
+
"x-www-browser",
|
|
100
|
+
"xdg-open",
|
|
101
|
+
]:
|
|
96
102
|
return False
|
|
97
103
|
|
|
98
104
|
return browser.open_new_tab(url)
|
|
@@ -147,13 +153,17 @@ async def login(
|
|
|
147
153
|
logger.debug(f"Current active org: {active_org}")
|
|
148
154
|
|
|
149
155
|
try:
|
|
150
|
-
async with auth_flow.start() as (token_flow_id, web_url):
|
|
156
|
+
async with auth_flow.start() as (token_flow_id, web_url, code):
|
|
151
157
|
if web_url is None:
|
|
152
158
|
console.error(
|
|
153
159
|
"Unable to connect to Pipecat Cloud API. Please check your network connection and try again."
|
|
154
160
|
)
|
|
155
161
|
return
|
|
156
162
|
|
|
163
|
+
# Display the code if it was provided
|
|
164
|
+
if code:
|
|
165
|
+
console.print(f"[bold]Authentication code:[/bold] [cyan]{code}[/cyan]\n")
|
|
166
|
+
|
|
157
167
|
with Live(
|
|
158
168
|
console.status(
|
|
159
169
|
"[dim]Waiting for authentication to complete...[/dim]", spinner="dots"
|
|
@@ -167,7 +177,10 @@ async def login(
|
|
|
167
177
|
Panel(
|
|
168
178
|
"The web browser should have opened for you to authenticate with Pipecat Cloud.\n"
|
|
169
179
|
"If it didn't, please copy this URL into your web browser manually:\n\n"
|
|
170
|
-
f"[blue][link={web_url}]{web_url}[/link][/blue]\n",
|
|
180
|
+
f"[blue][link={web_url}]{web_url}[/link][/blue]\n",
|
|
181
|
+
)
|
|
182
|
+
)
|
|
183
|
+
)
|
|
171
184
|
else:
|
|
172
185
|
# For headless use-cases, just print the URL
|
|
173
186
|
live.stop()
|
|
@@ -235,8 +248,9 @@ async def logout():
|
|
|
235
248
|
)
|
|
236
249
|
|
|
237
250
|
|
|
238
|
-
@auth_cli.command(
|
|
239
|
-
|
|
251
|
+
@auth_cli.command(
|
|
252
|
+
name="whoami", help="Display data about the current user. Also show Daily API key."
|
|
253
|
+
)
|
|
240
254
|
@synchronizer.create_blocking
|
|
241
255
|
@requires_login
|
|
242
256
|
async def whomai():
|
|
@@ -277,14 +291,16 @@ async def whomai():
|
|
|
277
291
|
pass
|
|
278
292
|
|
|
279
293
|
live.stop()
|
|
280
|
-
message = Columns(
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
294
|
+
message = Columns(
|
|
295
|
+
[
|
|
296
|
+
"[bold]User ID[/bold]\n"
|
|
297
|
+
"[bold]Active Organization[/bold]\n"
|
|
298
|
+
"[bold]Daily API Key[/bold]",
|
|
299
|
+
f"{user_data['user']['userId']}\n"
|
|
300
|
+
f"{account['verbose_name']} [dim]({account['name']})[/dim]\n"
|
|
301
|
+
f"{daily_api_key.get('apiKey', '[dim]N/A[/dim]') if daily_api_key else '[dim]N/A[/dim]'}",
|
|
302
|
+
]
|
|
303
|
+
)
|
|
288
304
|
console.success(message)
|
|
289
305
|
except Exception:
|
|
290
306
|
console.error("Unable to obtain user data. Please contact support")
|
|
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
|
|
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
|