git-alchemist 1.0.1__tar.gz → 1.0.2__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.
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/PKG-INFO +1 -1
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/git_alchemist.egg-info/PKG-INFO +1 -1
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/pyproject.toml +1 -1
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/src/architect.py +23 -1
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/LICENSE +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/README.md +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/git_alchemist.egg-info/SOURCES.txt +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/git_alchemist.egg-info/dependency_links.txt +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/git_alchemist.egg-info/entry_points.txt +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/git_alchemist.egg-info/requires.txt +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/git_alchemist.egg-info/top_level.txt +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/setup.cfg +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/src/audit.py +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/src/cli.py +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/src/committer.py +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/src/core.py +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/src/issue_gen.py +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/src/profile_gen.py +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/src/promote.py +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/src/repo_tools.py +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/src/sage.py +0 -0
- {git_alchemist-1.0.1 → git_alchemist-1.0.2}/src/utils.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "git-alchemist"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.2"
|
|
8
8
|
description = "A unified AI stack to optimize, describe, and architect your GitHub repositories."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "abduznik" }]
|
|
@@ -59,7 +59,6 @@ Do NOT use markdown blocks.
|
|
|
59
59
|
|
|
60
60
|
if Confirm.ask("Keep these files? (Moves them to current directory)"):
|
|
61
61
|
# Move files from temp_dir to cwd
|
|
62
|
-
# We iterate over items in temp_dir and move them
|
|
63
62
|
for item in os.listdir(temp_dir):
|
|
64
63
|
s = os.path.join(temp_dir, item)
|
|
65
64
|
d = os.path.join(cwd, item)
|
|
@@ -68,6 +67,29 @@ Do NOT use markdown blocks.
|
|
|
68
67
|
else:
|
|
69
68
|
shutil.move(s, d)
|
|
70
69
|
console.print("[green]Files moved successfully.[/green]")
|
|
70
|
+
|
|
71
|
+
# NEW: Auto-Deployment Logic
|
|
72
|
+
if Confirm.ask("Initialize Git and deploy to GitHub?"):
|
|
73
|
+
repo_name = os.path.basename(cwd)
|
|
74
|
+
console.print(f"[cyan]Initializing repository: {repo_name}...[/cyan]")
|
|
75
|
+
run_shell("git init")
|
|
76
|
+
|
|
77
|
+
# Ensure identity is set
|
|
78
|
+
try:
|
|
79
|
+
run_shell("git config user.name", check=True)
|
|
80
|
+
except:
|
|
81
|
+
run_shell(f'git config user.name "Git-Alchemist"')
|
|
82
|
+
run_shell(f'git config user.email "alchemist@localhost"')
|
|
83
|
+
|
|
84
|
+
run_shell("git add .")
|
|
85
|
+
run_shell('git commit -m "feat: Initial scaffold by Git-Alchemist"')
|
|
86
|
+
|
|
87
|
+
try:
|
|
88
|
+
console.print("[magenta]Creating GitHub repository...[/magenta]")
|
|
89
|
+
run_shell(f"gh repo create {repo_name} --public --source=. --remote=origin --push")
|
|
90
|
+
console.print(f"[bold yellow]✨ Project deployed to GitHub: {repo_name}[/bold yellow]")
|
|
91
|
+
except Exception as e:
|
|
92
|
+
console.print(f"[red]GitHub deployment failed (check if repo already exists):[/red] {e}")
|
|
71
93
|
else:
|
|
72
94
|
console.print("[yellow]Discarding workspace.[/yellow]")
|
|
73
95
|
|
|
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
|