git-alchemist 1.0.1__py3-none-any.whl → 1.0.3__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.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,5 +1,5 @@
1
- git_alchemist-1.0.1.dist-info/licenses/LICENSE,sha256=m0_AWYEhbGuv2DeqHpVotJvfJSbWafyGQwivleB3tUI,1065
2
- src/architect.py,sha256=zt9nqjeLJhj_98rT5GHDH1rj0s0-j1CQav7NbVPPkQA,5481
1
+ git_alchemist-1.0.3.dist-info/licenses/LICENSE,sha256=m0_AWYEhbGuv2DeqHpVotJvfJSbWafyGQwivleB3tUI,1065
2
+ src/architect.py,sha256=grjRnyXXJ-1hE0xrOUyJgsX2HA1xNm2Ydgngb2DrowQ,6887
3
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
@@ -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.1.dist-info/METADATA,sha256=rAElIKDrBjUi6pv5GKxseCkJLVEeOheL8ga5z47GPPA,3231
14
- git_alchemist-1.0.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
15
- git_alchemist-1.0.1.dist-info/entry_points.txt,sha256=OcOmJI8khwZFsdRSUGGppfKdVfdGOKRRkwcSlZ-rJTI,43
16
- git_alchemist-1.0.1.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
17
- git_alchemist-1.0.1.dist-info/RECORD,,
13
+ git_alchemist-1.0.3.dist-info/METADATA,sha256=xsDJXmnJFrB59GnGgQT0425awZi8mW03FtSTAhUVKMQ,3231
14
+ git_alchemist-1.0.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
15
+ git_alchemist-1.0.3.dist-info/entry_points.txt,sha256=OcOmJI8khwZFsdRSUGGppfKdVfdGOKRRkwcSlZ-rJTI,43
16
+ git_alchemist-1.0.3.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
17
+ git_alchemist-1.0.3.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,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