git-alchemist 1.0.0__py3-none-any.whl → 1.0.2__py3-none-any.whl

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.
@@ -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:**
@@ -1,6 +1,6 @@
1
- git_alchemist-1.0.0.dist-info/licenses/LICENSE,sha256=m0_AWYEhbGuv2DeqHpVotJvfJSbWafyGQwivleB3tUI,1065
2
- src/architect.py,sha256=zt9nqjeLJhj_98rT5GHDH1rj0s0-j1CQav7NbVPPkQA,5481
3
- src/audit.py,sha256=fuIuoxRk1yC4-2vy2qqgz1EkTavQvyHHFRxuJQjpc3s,2788
1
+ git_alchemist-1.0.2.dist-info/licenses/LICENSE,sha256=m0_AWYEhbGuv2DeqHpVotJvfJSbWafyGQwivleB3tUI,1065
2
+ src/architect.py,sha256=AJ1sGS5Bfz4ZCdMSNFfszjGae9xDROmW3M2AeatgYWs,6793
3
+ src/audit.py,sha256=Pehy1LiMZKPOquAj9G50IQ7EAp_HyNXErtSqInt58kY,2790
4
4
  src/cli.py,sha256=-_NksBB4jG2NKZmg-5OYfkPbqIQKhOKFORfdWiu0czQ,3688
5
5
  src/committer.py,sha256=O9KFavCgJa8mbsFGZoLBdtMEccwlN7yKNuaxhPtdQ-c,2249
6
6
  src/core.py,sha256=mwz5QgTIyIMKVHvfcP2Ndol_DHdZz5azx-zT_FE3VOY,1806
@@ -10,8 +10,8 @@ src/promote.py,sha256=nSmFywPI5mmHJO15dTpwZ2TO_IZT9w04XOJWF3BE0xM,3224
10
10
  src/repo_tools.py,sha256=QGkCDYRBsl4g1DAecNJtOj91nLYZkJriadY3rCLfzE4,3929
11
11
  src/sage.py,sha256=nxUEc146pKO_6TR4nBONKkRdREY08NEa2ir4BF--vX8,2227
12
12
  src/utils.py,sha256=Ncz4vczfIXcQGgXaFa-8bL3SD3Sykg46yiHDScV8-CA,1187
13
- git_alchemist-1.0.0.dist-info/METADATA,sha256=McyH9frbTwtCOm1B22_fpGZ012iDyPmisr8mk92oBEI,3219
14
- git_alchemist-1.0.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
15
- git_alchemist-1.0.0.dist-info/entry_points.txt,sha256=OcOmJI8khwZFsdRSUGGppfKdVfdGOKRRkwcSlZ-rJTI,43
16
- git_alchemist-1.0.0.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
17
- git_alchemist-1.0.0.dist-info/RECORD,,
13
+ git_alchemist-1.0.2.dist-info/METADATA,sha256=lLusOpZG555oEwHF7c5u-ttFDppZgRr7P9caw_LbpFI,3231
14
+ git_alchemist-1.0.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
15
+ git_alchemist-1.0.2.dist-info/entry_points.txt,sha256=OcOmJI8khwZFsdRSUGGppfKdVfdGOKRRkwcSlZ-rJTI,43
16
+ git_alchemist-1.0.2.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
17
+ git_alchemist-1.0.2.dist-info/RECORD,,
src/architect.py CHANGED
@@ -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
 
src/audit.py CHANGED
@@ -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