flowstash-cli 0.9.0__tar.gz → 0.9.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.
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/PKG-INFO +2 -2
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/pyproject.toml +2 -2
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/deploy.py +8 -8
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/__init__.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/__init__.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/apikey.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/auth.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/build.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/client.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/project.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/run.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/webhook.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/core/__init__.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/core/api_client.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/core/auth_server.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/core/builder.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/core/config.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/core/docker_utils.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/core/patcher.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/main.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/AGENTS.md +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/README.md +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_.dockerignore +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_.flowstash +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_api_main.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/[env]/(backend-asyncio)/backend.yaml +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/[env]/(backend-dramatiq)/backend.yaml +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/[env]/(backend-managed)/backend.yaml +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/[env]/(observability-logfile)/observability.yaml +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/[env]/(observability-managed)/observability.yaml +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/shared/backend.yaml +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/shared/clients/demoClient.yaml +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/shared/clients.yaml +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_deployment/[env]/(backend-asyncio)/docker-compose.yaml +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_deployment/[env]/(backend-dramatiq)/docker-compose.yaml +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_deployment/shared/api.Dockerfile +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_deployment/shared/worker.Dockerfile +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_pyproject.toml +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_api/__init__.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_api/_routes/webhooks.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_shared/__init__.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_shared/clients/client.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_shared/models/models.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_shared/tasks/sharedTasks.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_worker/__init__.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_worker/tasks/tasks.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_worker_main.py +0 -0
- {flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/ui/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: flowstash-cli
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.3
|
|
4
4
|
Summary: CLI for the flowstash Managed Platform
|
|
5
5
|
Author: juraj.bezdek@gmail.com
|
|
6
6
|
Author-email: juraj.bezdek@gmail.com
|
|
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.11
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.12
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
-
Requires-Dist: flowstash-runtime (>=0.9.
|
|
12
|
+
Requires-Dist: flowstash-runtime (>=0.9.3,<0.10.0)
|
|
13
13
|
Requires-Dist: httpx (>=0.27.0)
|
|
14
14
|
Requires-Dist: keyring (>=25.0.0)
|
|
15
15
|
Requires-Dist: libcst (>=1.1.0)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "flowstash-cli"
|
|
3
|
-
version = "0.9.
|
|
3
|
+
version = "0.9.3"
|
|
4
4
|
description = "CLI for the flowstash Managed Platform"
|
|
5
5
|
authors = [{name = "juraj.bezdek@gmail.com", email = "juraj.bezdek@gmail.com"}]
|
|
6
6
|
requires-python = ">=3.11"
|
|
7
7
|
dependencies = [
|
|
8
|
-
"flowstash-runtime>=0.9.
|
|
8
|
+
"flowstash-runtime>=0.9.3,<0.10.0",
|
|
9
9
|
"typer[all]>=0.12.0",
|
|
10
10
|
"httpx>=0.27.0",
|
|
11
11
|
"pyyaml>=6.0.1",
|
|
@@ -294,7 +294,7 @@ def deploy_configure(
|
|
|
294
294
|
always_on: Optional[bool] = typer.Option(
|
|
295
295
|
None,
|
|
296
296
|
"--always-on/--no-always-on",
|
|
297
|
-
help="Keep one
|
|
297
|
+
help="Keep one API instance warm (min_api_instances 1) vs scale to zero (0)",
|
|
298
298
|
),
|
|
299
299
|
apply: Optional[bool] = typer.Option(
|
|
300
300
|
None,
|
|
@@ -309,7 +309,7 @@ def deploy_configure(
|
|
|
309
309
|
"""
|
|
310
310
|
[bold cyan]Configure[/bold cyan] the deployment profile and scaling for an environment.
|
|
311
311
|
|
|
312
|
-
Interactively pick the environment, deployment profile, and whether the
|
|
312
|
+
Interactively pick the environment, deployment profile, and whether the API
|
|
313
313
|
stays always-on. Provide [bold]--env[/bold], [bold]--profile[/bold] and
|
|
314
314
|
[bold]--always-on/--no-always-on[/bold] to skip the prompts.
|
|
315
315
|
"""
|
|
@@ -363,7 +363,7 @@ def deploy_configure(
|
|
|
363
363
|
|
|
364
364
|
profile_names = [p.get("name") for p in (profiles or []) if p.get("name")]
|
|
365
365
|
current_profile = (current or {}).get("deployment_profile")
|
|
366
|
-
current_min = (current or {}).get("
|
|
366
|
+
current_min = (current or {}).get("min_api_instances") or 0
|
|
367
367
|
|
|
368
368
|
# 3. Profile selection
|
|
369
369
|
if profile is None:
|
|
@@ -390,12 +390,12 @@ def deploy_configure(
|
|
|
390
390
|
f"({', '.join(profile_names)}). Sending anyway.[/yellow]"
|
|
391
391
|
)
|
|
392
392
|
|
|
393
|
-
# 4. Always-on flag ->
|
|
393
|
+
# 4. Always-on flag -> min_api_instances (boolean: 1 / 0)
|
|
394
394
|
if always_on is None:
|
|
395
395
|
always_on = Confirm.ask(
|
|
396
|
-
"Keep
|
|
396
|
+
"Keep the API always on (no cold starts)?", default=current_min > 0
|
|
397
397
|
)
|
|
398
|
-
|
|
398
|
+
min_api_instances = 1 if always_on else 0
|
|
399
399
|
|
|
400
400
|
# 5. Summary + confirmation
|
|
401
401
|
console.print()
|
|
@@ -403,7 +403,7 @@ def deploy_configure(
|
|
|
403
403
|
console.print(f" Profile : [bold]{profile}[/bold]")
|
|
404
404
|
console.print(
|
|
405
405
|
f" Always on : [bold]{'yes' if always_on else 'no'}[/bold] "
|
|
406
|
-
f"(
|
|
406
|
+
f"(min_api_instances={min_api_instances})"
|
|
407
407
|
)
|
|
408
408
|
if not yes and not Confirm.ask("Save this deployment configuration?", default=True):
|
|
409
409
|
console.print("Cancelled.")
|
|
@@ -416,7 +416,7 @@ def deploy_configure(
|
|
|
416
416
|
f"/v1/environments/{project_id}/{env}/deployment-config",
|
|
417
417
|
json={
|
|
418
418
|
"deployment_profile": profile,
|
|
419
|
-
"
|
|
419
|
+
"min_api_instances": min_api_instances,
|
|
420
420
|
},
|
|
421
421
|
)
|
|
422
422
|
|
|
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
|
{flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/shared/backend.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/shared/clients.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_api/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_shared/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_worker/__init__.py
RENAMED
|
File without changes
|
{flowstash_cli-0.9.0 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_worker/tasks/tasks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|