nlsql-coder 0.0.2__tar.gz → 0.0.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.
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/PKG-INFO +1 -1
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/cli/interface.py +16 -2
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder.egg-info/PKG-INFO +1 -1
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/pyproject.toml +1 -1
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/LICENSE +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/README.md +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/__init__.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/__init__.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/agent/__init__.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/agent/helpers/__init__.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/agent/helpers/get_agent.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/agent/helpers/memory_manager.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/agent/helpers/project_details.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/agent/helpers/system_prompt.md +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/agent/model/__init__.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/agent/model/agent.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/agent/tools/__init__.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/agent/tools/file_tools.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/agent/tools/tool_specs.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/cli/__init__.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/cli/arg_parsing.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/cli/tool_calling.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/providers/__init__.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/providers/aws/__init__.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/providers/aws/provider.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/providers/base.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/providers/config.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/app/providers/gcp/__init__.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/data/__init__.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder/data/create_agent_md.py +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder.egg-info/SOURCES.txt +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder.egg-info/dependency_links.txt +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder.egg-info/entry_points.txt +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder.egg-info/requires.txt +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/nlsql_coder.egg-info/top_level.txt +0 -0
- {nlsql_coder-0.0.2 → nlsql_coder-0.0.3}/setup.cfg +0 -0
|
@@ -8,6 +8,7 @@ from rich.live import Live
|
|
|
8
8
|
from rich.align import Align
|
|
9
9
|
from nlsql_coder.data.create_agent_md import create_md
|
|
10
10
|
import time
|
|
11
|
+
import os
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
console = Console()
|
|
@@ -17,13 +18,27 @@ Welcome _ _ _ ____ ___ _
|
|
|
17
18
|
| \ | || | / ___| / _ \| |
|
|
18
19
|
to | \| || | \___ \| | | | |
|
|
19
20
|
| |\ || |___ ___) | |_| | |___
|
|
20
|
-
|_| \_||_____||____/ \__\_\_____|
|
|
21
|
+
|_| \_||_____||____/ \__\_\_____| Coder\n\n[/blue bold]
|
|
21
22
|
"""
|
|
22
23
|
|
|
24
|
+
def get_envs():
|
|
25
|
+
console.print("[bold]To start, we need to set up your environment variables...[/bold]")
|
|
26
|
+
os.environ["MODEL_PROVIDER"] = "aws"
|
|
27
|
+
model_name = console.input("\n[bold blue][Model name]:[/bold blue] ")
|
|
28
|
+
access_key_id = console.input("\n[bold blue][Access Key ID]:[/bold blue] ")
|
|
29
|
+
secret_key = console.input("\n[bold blue][Secret Access Key]:[/bold blue] ")
|
|
30
|
+
region = console.input("\n[bold blue][Region]:[/bold blue] ")
|
|
31
|
+
os.environ["MODEL_NAME"] = model_name
|
|
32
|
+
os.environ["AWS_ACCESS_KEY_ID"] = access_key_id
|
|
33
|
+
os.environ["AWS_SECRET_ACCESS_KEY"] = secret_key
|
|
34
|
+
os.environ["AWS_DEFAULT_REGION"] = region
|
|
23
35
|
|
|
24
36
|
|
|
25
37
|
def main_loop():
|
|
26
38
|
try:
|
|
39
|
+
console.clear()
|
|
40
|
+
console.print(Align.center(welcome_message))
|
|
41
|
+
get_envs()
|
|
27
42
|
usage_data = {}
|
|
28
43
|
console.clear()
|
|
29
44
|
with console.status("[bold]Creating AGENTS.md file...\n[/bold]", spinner="dots"):
|
|
@@ -39,7 +54,6 @@ def main_loop():
|
|
|
39
54
|
time.sleep(2)
|
|
40
55
|
console.clear()
|
|
41
56
|
console.print(Align.center(welcome_message))
|
|
42
|
-
|
|
43
57
|
while True:
|
|
44
58
|
|
|
45
59
|
if args.usage and usage_data:
|
|
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
|