git-alchemist 1.0.0__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.
Files changed (22) hide show
  1. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/PKG-INFO +2 -2
  2. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/README.md +1 -1
  3. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/git_alchemist.egg-info/PKG-INFO +2 -2
  4. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/pyproject.toml +1 -1
  5. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/src/architect.py +23 -1
  6. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/src/audit.py +1 -1
  7. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/LICENSE +0 -0
  8. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/git_alchemist.egg-info/SOURCES.txt +0 -0
  9. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/git_alchemist.egg-info/dependency_links.txt +0 -0
  10. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/git_alchemist.egg-info/entry_points.txt +0 -0
  11. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/git_alchemist.egg-info/requires.txt +0 -0
  12. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/git_alchemist.egg-info/top_level.txt +0 -0
  13. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/setup.cfg +0 -0
  14. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/src/cli.py +0 -0
  15. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/src/committer.py +0 -0
  16. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/src/core.py +0 -0
  17. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/src/issue_gen.py +0 -0
  18. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/src/profile_gen.py +0 -0
  19. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/src/promote.py +0 -0
  20. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/src/repo_tools.py +0 -0
  21. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/src/sage.py +0 -0
  22. {git_alchemist-1.0.0 → git_alchemist-1.0.2}/src/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-alchemist
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: A unified AI stack to optimize, describe, and architect your GitHub repositories.
5
5
  Author: abduznik
6
6
  License: MIT
@@ -50,7 +50,7 @@ Git-Alchemist features a dynamic fallback system to ensure you never hit a quota
50
50
 
51
51
  2. **Install as a Global Library:**
52
52
  ```bash
53
- pip install .
53
+ pip install git-alchemist
54
54
  ```
55
55
 
56
56
  3. **Set up your Environment:**
@@ -35,7 +35,7 @@ Git-Alchemist features a dynamic fallback system to ensure you never hit a quota
35
35
 
36
36
  2. **Install as a Global Library:**
37
37
  ```bash
38
- pip install .
38
+ pip install git-alchemist
39
39
  ```
40
40
 
41
41
  3. **Set up your Environment:**
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-alchemist
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: A unified AI stack to optimize, describe, and architect your GitHub repositories.
5
5
  Author: abduznik
6
6
  License: MIT
@@ -50,7 +50,7 @@ Git-Alchemist features a dynamic fallback system to ensure you never hit a quota
50
50
 
51
51
  2. **Install as a Global Library:**
52
52
  ```bash
53
- pip install .
53
+ pip install git-alchemist
54
54
  ```
55
55
 
56
56
  3. **Set up your Environment:**
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "git-alchemist"
7
- version = "1.0.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
 
@@ -31,7 +31,7 @@ def run_audit(user=None, repo_name=None):
31
31
  "LICENSE": {"score": 10, "found": bool(repo_data.get("licenseInfo")) or any(os.path.exists(f) for f in ["LICENSE", "LICENSE.md", "LICENSE.txt"])},
32
32
  "CONTRIBUTING.md": {"score": 10, "found": any(os.path.exists(f) for f in ["CONTRIBUTING.md", "CONTRIBUTING"])},
33
33
  "Metadata: Description": {"score": 20, "found": bool(repo_data.get("description"))},
34
- "Metadata: Topics": {"score": 20, "found": len(repo_data.get("repositoryTopics", [])) >= 3},
34
+ "Metadata: Topics": {"score": 20, "found": len(repo_data.get("repositoryTopics") or []) >= 3},
35
35
  "CI/CD: GitHub Actions": {"score": 20, "found": os.path.exists(".github/workflows")},
36
36
  }
37
37
 
File without changes
File without changes
File without changes
File without changes
File without changes