vibe-engineering 0.1.11__py3-none-any.whl → 0.1.12__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.
- src/cli/commands.py +25 -2
- {vibe_engineering-0.1.11.dist-info → vibe_engineering-0.1.12.dist-info}/METADATA +1 -1
- {vibe_engineering-0.1.11.dist-info → vibe_engineering-0.1.12.dist-info}/RECORD +5 -5
- {vibe_engineering-0.1.11.dist-info → vibe_engineering-0.1.12.dist-info}/WHEEL +0 -0
- {vibe_engineering-0.1.11.dist-info → vibe_engineering-0.1.12.dist-info}/top_level.txt +0 -0
src/cli/commands.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
"""CLI commands for vibe-engineering."""
|
2
2
|
import json
|
3
|
+
import os
|
4
|
+
import importlib.metadata
|
3
5
|
|
4
6
|
import typer
|
5
7
|
from rich.console import Console
|
@@ -9,11 +11,21 @@ from rich.text import Text
|
|
9
11
|
from rich.progress import Progress, SpinnerColumn, TextColumn
|
10
12
|
from rich import box
|
11
13
|
import time
|
14
|
+
from dotenv import load_dotenv
|
12
15
|
|
13
16
|
from src.db import MongoDBClient, get_documents, insert_document
|
14
17
|
from src.llm import FireworksClient
|
15
18
|
from src.schemas import SpecifySchema
|
16
19
|
|
20
|
+
# Load environment variables
|
21
|
+
load_dotenv()
|
22
|
+
|
23
|
+
# Get version dynamically
|
24
|
+
try:
|
25
|
+
__version__ = importlib.metadata.version("vibe-engineering")
|
26
|
+
except importlib.metadata.PackageNotFoundError:
|
27
|
+
__version__ = "0.1.11" # fallback version
|
28
|
+
|
17
29
|
app = typer.Typer(
|
18
30
|
name="vibe",
|
19
31
|
help="🚀 Vibe Engineering - AI-powered specification and memory management CLI",
|
@@ -31,7 +43,7 @@ def status():
|
|
31
43
|
|
32
44
|
# System status panel
|
33
45
|
status_info = "[green]✅ CLI Active[/green]\n"
|
34
|
-
status_info += "[cyan]Version:[/cyan]
|
46
|
+
status_info += f"[cyan]Version:[/cyan] {__version__}\n"
|
35
47
|
status_info += "[cyan]Environment:[/cyan] Production"
|
36
48
|
|
37
49
|
status_panel = Panel(
|
@@ -64,7 +76,7 @@ def version():
|
|
64
76
|
"""📦 Show version information."""
|
65
77
|
console = Console()
|
66
78
|
|
67
|
-
version_text = Text("🚀 Vibe Engineering
|
79
|
+
version_text = Text(f"🚀 Vibe Engineering v{__version__}", style="bold blue")
|
68
80
|
console.print(Panel(version_text, box=box.DOUBLE))
|
69
81
|
|
70
82
|
|
@@ -147,6 +159,17 @@ def specify(prompt: str, db_name: str = "master", collection_name: str = "llm"):
|
|
147
159
|
console = Console()
|
148
160
|
|
149
161
|
try:
|
162
|
+
# Check environment variables
|
163
|
+
if not os.getenv("FIREWORKS_API_KEY"):
|
164
|
+
console.print("[red]❌ FIREWORKS_API_KEY environment variable is not set[/red]")
|
165
|
+
console.print("\n[yellow]💡 Setup instructions:[/yellow]")
|
166
|
+
console.print("1. Get your API key from https://fireworks.ai")
|
167
|
+
console.print("2. Set the environment variable:")
|
168
|
+
console.print(" [cyan]export FIREWORKS_API_KEY=your_api_key_here[/cyan]")
|
169
|
+
console.print("3. Or add it to your .env file:")
|
170
|
+
console.print(" [cyan]echo 'FIREWORKS_API_KEY=your_api_key_here' >> .env[/cyan]")
|
171
|
+
return
|
172
|
+
|
150
173
|
# Generate schema using LLM
|
151
174
|
llm_client = FireworksClient()
|
152
175
|
response = llm_client.generate_with_schema(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
src/cli/__init__.py,sha256=jJ7tHuLwJcPDuk45xRuu8xbMBQL45k5oZ6EcNa9MD8k,94
|
3
|
-
src/cli/commands.py,sha256=
|
3
|
+
src/cli/commands.py,sha256=5_EzZLMGduUnaSh6bSCvZv3czdj50YYpNkhw8MiLwi0,7547
|
4
4
|
src/db/__init__.py,sha256=zrfEUYNVRhGAq0DgIWBkxoM8L0jJNgy1_GhtBVJvhYA,470
|
5
5
|
src/db/client.py,sha256=a-KZDyJjUWB1y15p1pxPn_q8UPDLVtOSvidx8XvULlU,1741
|
6
6
|
src/db/operations.py,sha256=nJ2AJrYOaOi9L8ZJgQjr4eukKbr2al0tFls83S8M8GY,4881
|
@@ -10,7 +10,7 @@ src/llm/embeddings.py,sha256=wH-aihD6HfkJtUn4TJGpqLz9BYnX5i0SyRT0tf8hb2E,2987
|
|
10
10
|
src/llm/segmentation.py,sha256=zex5Elfk_ph0nFFzszxtagN6o1SmTu1BsHJ9W9Njlb0,4753
|
11
11
|
src/schemas/__init__.py,sha256=rdw4M8Gm95XN5sPgfReQO0WLePty-OE-4OYjSFrGlBM,163
|
12
12
|
src/schemas/models.py,sha256=aIO8qtG0gdL6pWc0cyhYC1jqevpNIfkOQJYSA3Lc_Ew,1011
|
13
|
-
vibe_engineering-0.1.
|
14
|
-
vibe_engineering-0.1.
|
15
|
-
vibe_engineering-0.1.
|
16
|
-
vibe_engineering-0.1.
|
13
|
+
vibe_engineering-0.1.12.dist-info/METADATA,sha256=ie4E-K1YegQmhqH0q6dX-qKwzMS_u65486FNwG47bWU,7873
|
14
|
+
vibe_engineering-0.1.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
15
|
+
vibe_engineering-0.1.12.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
|
16
|
+
vibe_engineering-0.1.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|