git-alchemist 1.0.1__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.
Files changed (22) hide show
  1. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/PKG-INFO +1 -1
  2. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/git_alchemist.egg-info/PKG-INFO +1 -1
  3. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/pyproject.toml +1 -1
  4. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/src/architect.py +25 -1
  5. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/LICENSE +0 -0
  6. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/README.md +0 -0
  7. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/git_alchemist.egg-info/SOURCES.txt +0 -0
  8. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/git_alchemist.egg-info/dependency_links.txt +0 -0
  9. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/git_alchemist.egg-info/entry_points.txt +0 -0
  10. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/git_alchemist.egg-info/requires.txt +0 -0
  11. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/git_alchemist.egg-info/top_level.txt +0 -0
  12. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/setup.cfg +0 -0
  13. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/src/audit.py +0 -0
  14. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/src/cli.py +0 -0
  15. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/src/committer.py +0 -0
  16. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/src/core.py +0 -0
  17. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/src/issue_gen.py +0 -0
  18. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/src/profile_gen.py +0 -0
  19. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/src/promote.py +0 -0
  20. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/src/repo_tools.py +0 -0
  21. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/src/sage.py +0 -0
  22. {git_alchemist-1.0.1 → git_alchemist-1.0.3}/src/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-alchemist
3
- Version: 1.0.1
3
+ Version: 1.0.3
4
4
  Summary: A unified AI stack to optimize, describe, and architect your GitHub repositories.
5
5
  Author: abduznik
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-alchemist
3
- Version: 1.0.1
3
+ Version: 1.0.3
4
4
  Summary: A unified AI stack to optimize, describe, and architect your GitHub repositories.
5
5
  Author: abduznik
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "git-alchemist"
7
- version = "1.0.1"
7
+ version = "1.0.3"
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,31 @@ 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(os.getcwd())
74
+ console.print(f"[cyan]Initializing repository: {repo_name}...[/cyan]")
75
+
76
+ # 1. Initialize and set identity if missing
77
+ run_shell("git init")
78
+ try:
79
+ run_shell("git config user.name", check=True)
80
+ except:
81
+ run_shell(f'git config user.name "abduznik"')
82
+ run_shell(f'git config user.email "abduznik@users.noreply.github.com"')
83
+
84
+ # 2. Add and Commit
85
+ run_shell("git add .")
86
+ run_shell('git commit -m "feat: Initial scaffold by Git-Alchemist"')
87
+
88
+ # 3. Create and Push
89
+ try:
90
+ console.print("[magenta]Creating GitHub repository...[/magenta]")
91
+ run_shell(f"gh repo create {repo_name} --public --source=. --remote=origin --push")
92
+ console.print(f"[bold yellow]✨ Project deployed to GitHub: {repo_name}[/bold yellow]")
93
+ except Exception as e:
94
+ console.print(f"[red]GitHub deployment failed:[/red] {e}")
71
95
  else:
72
96
  console.print("[yellow]Discarding workspace.[/yellow]")
73
97
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes