flowstash-cli 0.9.2__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.
Files changed (48) hide show
  1. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/PKG-INFO +2 -2
  2. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/pyproject.toml +2 -2
  3. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/deploy.py +8 -8
  4. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/__init__.py +0 -0
  5. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/__init__.py +0 -0
  6. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/apikey.py +0 -0
  7. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/auth.py +0 -0
  8. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/build.py +0 -0
  9. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/client.py +0 -0
  10. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/project.py +0 -0
  11. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/run.py +0 -0
  12. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/commands/webhook.py +0 -0
  13. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/core/__init__.py +0 -0
  14. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/core/api_client.py +0 -0
  15. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/core/auth_server.py +0 -0
  16. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/core/builder.py +0 -0
  17. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/core/config.py +0 -0
  18. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/core/docker_utils.py +0 -0
  19. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/core/patcher.py +0 -0
  20. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/main.py +0 -0
  21. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/AGENTS.md +0 -0
  22. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/README.md +0 -0
  23. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_.dockerignore +0 -0
  24. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_.flowstash +0 -0
  25. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_api_main.py +0 -0
  26. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/[env]/(backend-asyncio)/backend.yaml +0 -0
  27. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/[env]/(backend-dramatiq)/backend.yaml +0 -0
  28. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/[env]/(backend-managed)/backend.yaml +0 -0
  29. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/[env]/(observability-logfile)/observability.yaml +0 -0
  30. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/[env]/(observability-managed)/observability.yaml +0 -0
  31. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/shared/backend.yaml +0 -0
  32. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/shared/clients/demoClient.yaml +0 -0
  33. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_config/shared/clients.yaml +0 -0
  34. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_deployment/[env]/(backend-asyncio)/docker-compose.yaml +0 -0
  35. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_deployment/[env]/(backend-dramatiq)/docker-compose.yaml +0 -0
  36. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_deployment/shared/api.Dockerfile +0 -0
  37. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_deployment/shared/worker.Dockerfile +0 -0
  38. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_pyproject.toml +0 -0
  39. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_api/__init__.py +0 -0
  40. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_api/_routes/webhooks.py +0 -0
  41. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_shared/__init__.py +0 -0
  42. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_shared/clients/client.py +0 -0
  43. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_shared/models/models.py +0 -0
  44. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_shared/tasks/sharedTasks.py +0 -0
  45. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_worker/__init__.py +0 -0
  46. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_src/_worker/tasks/tasks.py +0 -0
  47. {flowstash_cli-0.9.2 → flowstash_cli-0.9.3}/src/flowstash/cli/templates/_worker_main.py +0 -0
  48. {flowstash_cli-0.9.2 → 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.2
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.2,<0.10.0)
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.2"
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.2,<0.10.0",
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 worker warm (min_worker_instances 1) vs scale to zero (0)",
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 worker
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("min_worker_instances") or 0
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 -> min_worker_instances (boolean: 1 / 0)
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 a worker always on (no cold starts)?", default=current_min > 0
396
+ "Keep the API always on (no cold starts)?", default=current_min > 0
397
397
  )
398
- min_worker_instances = 1 if always_on else 0
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"(min_worker_instances={min_worker_instances})"
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
- "min_worker_instances": min_worker_instances,
419
+ "min_api_instances": min_api_instances,
420
420
  },
421
421
  )
422
422