samcode-cli 1.0.2__tar.gz → 1.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.
- samcode_cli-1.0.3/MANIFEST.in +1 -0
- {samcode_cli-1.0.2 → samcode_cli-1.0.3}/PKG-INFO +1 -1
- {samcode_cli-1.0.2 → samcode_cli-1.0.3}/samcode.py +20 -1
- {samcode_cli-1.0.2 → samcode_cli-1.0.3}/samcode_cli.egg-info/PKG-INFO +1 -1
- {samcode_cli-1.0.2 → samcode_cli-1.0.3}/samcode_cli.egg-info/SOURCES.txt +1 -0
- {samcode_cli-1.0.2 → samcode_cli-1.0.3}/setup.py +1 -1
- {samcode_cli-1.0.2 → samcode_cli-1.0.3}/README.md +0 -0
- {samcode_cli-1.0.2 → samcode_cli-1.0.3}/samcode_cli.egg-info/dependency_links.txt +0 -0
- {samcode_cli-1.0.2 → samcode_cli-1.0.3}/samcode_cli.egg-info/entry_points.txt +0 -0
- {samcode_cli-1.0.2 → samcode_cli-1.0.3}/samcode_cli.egg-info/requires.txt +0 -0
- {samcode_cli-1.0.2 → samcode_cli-1.0.3}/samcode_cli.egg-info/top_level.txt +0 -0
- {samcode_cli-1.0.2 → samcode_cli-1.0.3}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
global-exclude .samcode/*
|
|
@@ -726,10 +726,29 @@ class SamCodeCLI:
|
|
|
726
726
|
self.show_main_header()
|
|
727
727
|
|
|
728
728
|
def _initialize_git_repo(self):
|
|
729
|
-
console.print("\n[bold cyan]
|
|
729
|
+
console.print("\n[bold cyan] Initialize Git Repository[/bold cyan]\n")
|
|
730
730
|
success, msg = self.git_manager.init_repo()
|
|
731
731
|
if not success: console.print(f"[red]✗ {msg}[/red]\n"); return
|
|
732
732
|
console.print(f"[green]✓ {msg}[/green]\n")
|
|
733
|
+
|
|
734
|
+
# --- AUTOMATIC GITIGNORE PROTECTION ---
|
|
735
|
+
gitignore_path = os.path.join(self.workspace_dir, ".gitignore")
|
|
736
|
+
ignore_entry = "\n.samcode/\n"
|
|
737
|
+
|
|
738
|
+
if os.path.exists(gitignore_path):
|
|
739
|
+
with open(gitignore_path, "r") as f:
|
|
740
|
+
content = f.read()
|
|
741
|
+
if ".samcode/" not in content:
|
|
742
|
+
with open(gitignore_path, "a") as f:
|
|
743
|
+
f.write(ignore_entry)
|
|
744
|
+
console.print("[green]✓ Automatically added .samcode/ to existing .gitignore[/green]\n")
|
|
745
|
+
else:
|
|
746
|
+
with open(gitignore_path, "w") as f:
|
|
747
|
+
f.write("# Automatically generated by SamCode CLI to protect API keys\n")
|
|
748
|
+
f.write(ignore_entry)
|
|
749
|
+
console.print("[green]✓ Automatically created .gitignore to protect .samcode/ folder[/green]\n")
|
|
750
|
+
# ----------------------------------------
|
|
751
|
+
|
|
733
752
|
try:
|
|
734
753
|
user_check = subprocess.run(["git", "config", "user.name"], cwd=self.workspace_dir, capture_output=True, text=True, timeout=5)
|
|
735
754
|
if not user_check.stdout.strip():
|
|
@@ -6,7 +6,7 @@ long_description = (this_directory / "README.md").read_text(encoding="utf-8")
|
|
|
6
6
|
|
|
7
7
|
setup(
|
|
8
8
|
name='samcode-cli',
|
|
9
|
-
version='1.0.
|
|
9
|
+
version='1.0.3', # IMPORTANT: Bumped version!
|
|
10
10
|
description='An autonomous AI coding agent that runs in your terminal.',
|
|
11
11
|
long_description=long_description,
|
|
12
12
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|