llamactl 0.3.7__py3-none-any.whl → 0.3.9__py3-none-any.whl

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.
@@ -215,8 +215,9 @@ def _create(template: str | None, dir: Path | None, force: bool) -> None:
215
215
  try:
216
216
  subprocess.run(["git", "--version"], check=True, capture_output=True)
217
217
  has_git = True
218
- except subprocess.CalledProcessError:
219
- pass
218
+ except (subprocess.CalledProcessError, FileNotFoundError):
219
+ # git is not available or broken; continue without git
220
+ has_git = False
220
221
 
221
222
  # Change to the new directory and initialize git repo
222
223
  original_cwd = Path.cwd()
@@ -227,7 +228,7 @@ def _create(template: str | None, dir: Path | None, force: bool) -> None:
227
228
 
228
229
  vibe_llama_starter = VibeLlamaStarter(
229
230
  agents=["OpenAI Codex CLI"], # AGENTS.md, supported by Cursor,
230
- services=["LlamaIndex", "llama-index-workflows"]
231
+ services=["LlamaDeploy", "LlamaIndex", "llama-index-workflows"]
231
232
  + (["LlamaCloud Services"] if resolved_template.llama_cloud else []),
232
233
  )
233
234
  asyncio.run(vibe_llama_starter.write_instructions(overwrite=True))
@@ -237,7 +238,10 @@ def _create(template: str | None, dir: Path | None, force: bool) -> None:
237
238
  agents_path = Path("AGENTS.md")
238
239
  if agents_path.exists() and not claude_path.exists():
239
240
  claude_path.symlink_to("AGENTS.md")
240
- if has_git:
241
+
242
+ # Initialize a git repo (best-effort). If anything fails, show a friendly note and continue.
243
+ if has_git:
244
+ try:
241
245
  subprocess.run(["git", "init"], check=True, capture_output=True)
242
246
  subprocess.run(["git", "add", "."], check=True, capture_output=True)
243
247
  subprocess.run(
@@ -245,9 +249,40 @@ def _create(template: str | None, dir: Path | None, force: bool) -> None:
245
249
  check=True,
246
250
  capture_output=True,
247
251
  )
252
+ except (subprocess.CalledProcessError, FileNotFoundError) as e:
253
+ # Extract a short error message if present
254
+ err_msg = ""
255
+ if isinstance(e, subprocess.CalledProcessError):
256
+ stderr = getattr(e, "stderr", b"")
257
+ if isinstance(stderr, (bytes, bytearray)):
258
+ try:
259
+ stderr = stderr.decode("utf-8", "ignore")
260
+ except Exception:
261
+ stderr = ""
262
+ if isinstance(stderr, str) and stderr.strip():
263
+ err_msg = stderr.strip().split("\n")[-1]
264
+ elif isinstance(e, FileNotFoundError):
265
+ err_msg = "git executable not found"
266
+
267
+ rprint("")
268
+ rprint("⚠️ [bold]Skipping git initialization due to an error.[/]")
269
+ if err_msg:
270
+ rprint(f" {err_msg}")
271
+ rprint(" You can initialize it manually:")
272
+ rprint(" git init && git add . && git commit -m 'Initial commit'")
273
+ rprint("")
248
274
  finally:
249
275
  os.chdir(original_cwd)
250
276
 
277
+ # If git is not available at all, let the user know how to proceed
278
+ if not has_git:
279
+ rprint("")
280
+ rprint("⚠️ [bold]Skipping git initialization due to an error.[/]")
281
+ rprint(" git executable not found")
282
+ rprint(" You can initialize it manually:")
283
+ rprint(" git init && git add . && git commit -m 'Initial commit'")
284
+ rprint("")
285
+
251
286
  rprint(
252
287
  f"Successfully created [blue]{dir}[/] using the [blue]{resolved_template.name}[/] template! 🎉 🦙 💾"
253
288
  )
@@ -472,7 +472,7 @@ class DeploymentEditApp(App[DeploymentResponse | None]):
472
472
  self.form_data = updated_form
473
473
  self.current_state = "monitor"
474
474
  except Exception as e:
475
- # Return to form and show error
475
+ # Return to form and show informative error
476
476
  self.save_error = f"Error saving deployment: {e}"
477
477
  self.current_state = "form"
478
478
 
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: llamactl
3
- Version: 0.3.7
3
+ Version: 0.3.9
4
4
  Summary: A command-line interface for managing LlamaDeploy projects and deployments
5
5
  Author: Adrian Lyjak
6
6
  Author-email: Adrian Lyjak <adrianlyjak@gmail.com>
7
7
  License: MIT
8
- Requires-Dist: llama-deploy-core[client]>=0.3.7,<0.4.0
9
- Requires-Dist: llama-deploy-appserver>=0.3.7,<0.4.0
8
+ Requires-Dist: llama-deploy-core[client]>=0.3.9,<0.4.0
9
+ Requires-Dist: llama-deploy-appserver>=0.3.9,<0.4.0
10
10
  Requires-Dist: httpx>=0.24.0,<1.0.0
11
11
  Requires-Dist: rich>=13.0.0
12
12
  Requires-Dist: questionary>=2.0.0
@@ -17,7 +17,7 @@ Requires-Dist: textual>=6.0.0
17
17
  Requires-Dist: aiohttp>=3.12.14
18
18
  Requires-Dist: copier>=9.9.0
19
19
  Requires-Dist: pyjwt[crypto]>=2.10.1
20
- Requires-Dist: vibe-llama>=0.4.2,<0.5.0
20
+ Requires-Dist: vibe-llama>=0.4.4,<0.5.0
21
21
  Requires-Python: >=3.11, <4
22
22
  Description-Content-Type: text/markdown
23
23
 
@@ -6,7 +6,7 @@ llama_deploy/cli/commands/aliased_group.py,sha256=bc41007c97b7b93981217dbd4d4591
6
6
  llama_deploy/cli/commands/auth.py,sha256=1381eee494c3a0c73253322b4a54af1a857d5b89e5f1685b8afa3422eecc5607,23937
7
7
  llama_deploy/cli/commands/deployment.py,sha256=46339e09135521c46ff90235ccf765c37b1a161cec11d92e92a54ceac6528b01,9883
8
8
  llama_deploy/cli/commands/env.py,sha256=36cb1b0abb9e3d1c5546d3e8a3c4c7839c4d6c2abf75763e39efb08376b3eae9,6808
9
- llama_deploy/cli/commands/init.py,sha256=20c6f7d8ff60858df97e08d0a6c06ef3008a2b41cab76fdf3a4734d42c0a164a,10836
9
+ llama_deploy/cli/commands/init.py,sha256=a1da6ed2cd7341647708f8f08d49d574cca5b072423690cc579be85dc3b0a60c,12590
10
10
  llama_deploy/cli/commands/serve.py,sha256=985a8c7c27caf46878841de4452aff05b69b13c669227337665431e0d48f5fbc,8688
11
11
  llama_deploy/cli/config/_config.py,sha256=654a4b6d06542e3503edab7023fc1c3148de510b3e3f6194e28cd4bd3e7c029a,14230
12
12
  llama_deploy/cli/config/_migrations.py,sha256=37055641970e1ea41abc583f270dc8a9dab03076224a02cd5fb08bbab2b9259f,2333
@@ -23,7 +23,7 @@ llama_deploy/cli/interactive_prompts/utils.py,sha256=594cc2a242cc3405d66d0e26a60
23
23
  llama_deploy/cli/options.py,sha256=62ee7286c3305ddb4b597783d19e854284d79bf9384800045f15b934dc245c1d,1298
24
24
  llama_deploy/cli/py.typed,sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855,0
25
25
  llama_deploy/cli/styles.py,sha256=15901fb567b0d10470f56a06d863819c4ed00a9f90b2a8c46b4bc2fb1dbdf6c3,307
26
- llama_deploy/cli/textual/deployment_form.py,sha256=61ff18bceaba810b40d68aac104969b92870316a7025ba839242c1e0b6bde397,23677
26
+ llama_deploy/cli/textual/deployment_form.py,sha256=fb27a1f9379d0b7245184875cf95190c895a9872fbf550bf45e227a9ddc54d07,23689
27
27
  llama_deploy/cli/textual/deployment_help.py,sha256=91094f9c460421bae75bc705c02c64a9ec464a7e92dd2eb5de365cfd5b08a9a7,2463
28
28
  llama_deploy/cli/textual/deployment_monitor.py,sha256=86b2545eeee9ef4ff9c8bec0ee5c8eefd54373d2200da5906a886fb614e763cd,16723
29
29
  llama_deploy/cli/textual/git_validation.py,sha256=94c95b61d0cbc490566a406b4886c9c12e1d1793dc14038a5be37119223c9568,13419
@@ -32,7 +32,7 @@ llama_deploy/cli/textual/llama_loader.py,sha256=33cb32a46dd40bcf889c553e44f2672c
32
32
  llama_deploy/cli/textual/secrets_form.py,sha256=df6699de29d2bc2cbcaddd41ad2495ce0e622cdccaadbc8369a6ee09a9e79d34,7251
33
33
  llama_deploy/cli/textual/styles.tcss,sha256=c8fa0eec00a97fa6907d223faaad82c6add1ea3f60009f1630be19282ea77e3b,3271
34
34
  llama_deploy/cli/utils/env_inject.py,sha256=01911758bcc3cf22aad0db0d1ade56aece48d6ad6bdb7186ea213337c67f5a89,688
35
- llamactl-0.3.7.dist-info/WHEEL,sha256=66530aef82d5020ef5af27ae0123c71abb9261377c5bc519376c671346b12918,79
36
- llamactl-0.3.7.dist-info/entry_points.txt,sha256=b67e1eb64305058751a651a80f2d2268b5f7046732268421e796f64d4697f83c,52
37
- llamactl-0.3.7.dist-info/METADATA,sha256=4615367b5bea92ccacd4bc3c59f38459a5d4ea198528219f31bc889bdb35c052,3252
38
- llamactl-0.3.7.dist-info/RECORD,,
35
+ llamactl-0.3.9.dist-info/WHEEL,sha256=66530aef82d5020ef5af27ae0123c71abb9261377c5bc519376c671346b12918,79
36
+ llamactl-0.3.9.dist-info/entry_points.txt,sha256=b67e1eb64305058751a651a80f2d2268b5f7046732268421e796f64d4697f83c,52
37
+ llamactl-0.3.9.dist-info/METADATA,sha256=b3eb7bf08d888044030942fa80dcc3d140ef6622513d2e072d0f9931e72bce4d,3252
38
+ llamactl-0.3.9.dist-info/RECORD,,