gitwise-cli 0.35.0__py3-none-any.whl → 0.35.1__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.
gitwise/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """gitwise -- CLI for optimizing git workflows and coding-agent integration."""
2
2
 
3
- __version__ = "0.35.0"
3
+ __version__ = "0.35.1"
4
4
 
5
5
 
6
6
  def get_version() -> str:
@@ -9,7 +9,7 @@ globs: "**/*"
9
9
  - Changed files: `gitwise diff` — never raw `git diff`
10
10
  - Status + log: `gitwise summarize` — never raw `git status` or `git log`
11
11
  - Branch switch: `gitwise worktree new <branch>` — never `git stash + checkout`
12
- - Snapshot: `gitwise snapshot` regenerates `.claude/git-snapshot.md`
12
+ - Snapshot: `gitwise snapshot`; writes `.agents/git-snapshot.md` when `.agents/` exists, otherwise `.claude/git-snapshot.md`
13
13
 
14
14
  ## Shell note
15
15
 
@@ -10,7 +10,7 @@ developer_instructions = """
10
10
  - Changed files: `gitwise diff` — never raw `git diff`
11
11
  - Status + log: `gitwise summarize` — never raw `git status` or `git log`
12
12
  - Branch switch: `gitwise worktree new <branch>` — never `git stash + checkout`
13
- - Snapshot: `gitwise snapshot` regenerates `.claude/git-snapshot.md`
13
+ - Snapshot: `gitwise snapshot`; writes `.agents/git-snapshot.md` when `.agents/` exists, otherwise `.claude/git-snapshot.md`
14
14
 
15
15
  ## Shell note
16
16
 
@@ -8,7 +8,7 @@ description: Use gitwise CLI for git operations — gitwise diff, summarize, wor
8
8
  - Changed files: `gitwise diff` — never raw `git diff`
9
9
  - Status + log: `gitwise summarize` — never raw `git status` or `git log`
10
10
  - Branch switch: `gitwise worktree new <branch>` — never `git stash + checkout`
11
- - Snapshot: `gitwise snapshot` regenerates `.claude/git-snapshot.md`
11
+ - Snapshot: `gitwise snapshot`; writes `.agents/git-snapshot.md` when `.agents/` exists, otherwise `.claude/git-snapshot.md`
12
12
  - Audit: `gitwise audit --quick` — before large commits
13
13
  - Clean: `gitwise clean --branches` — remove stale branches
14
14
  - Optimize: `gitwise optimize` — gc, pack-refs, commit-graph
@@ -10,7 +10,7 @@ alwaysApply: true
10
10
  - Changed files: `gitwise diff` — never raw `git diff`
11
11
  - Status + log: `gitwise summarize` — never raw `git status` or `git log`
12
12
  - Branch switch: `gitwise worktree new <branch>` — never `git stash + checkout`
13
- - Snapshot: `gitwise snapshot` regenerates `.claude/git-snapshot.md`
13
+ - Snapshot: `gitwise snapshot`; writes `.agents/git-snapshot.md` when `.agents/` exists, otherwise `.claude/git-snapshot.md`
14
14
  - Audit: `gitwise audit --quick` — before large commits
15
15
  - Clean: `gitwise clean --branches` — remove stale branches
16
16
  - Optimize: `gitwise optimize` — gc, pack-refs, commit-graph
@@ -8,7 +8,7 @@ description: Use gitwise CLI for git operations — gitwise diff, summarize, wor
8
8
  - Changed files: `gitwise diff` — never raw `git diff`
9
9
  - Status + log: `gitwise summarize` — never raw `git status` or `git log`
10
10
  - Branch switch: `gitwise worktree new <branch>` — never `git stash + checkout`
11
- - Snapshot: `gitwise snapshot` regenerates `.claude/git-snapshot.md`
11
+ - Snapshot: `gitwise snapshot`; writes `.agents/git-snapshot.md` when `.agents/` exists, otherwise `.claude/git-snapshot.md`
12
12
  - Audit: `gitwise audit --quick` — before large commits
13
13
  - Clean: `gitwise clean --branches` — remove stale branches
14
14
  - Optimize: `gitwise optimize` — gc, pack-refs, commit-graph
@@ -8,7 +8,7 @@ description: Use gitwise CLI for git operations — gitwise diff, summarize, wor
8
8
  - Changed files: `gitwise diff` — never raw `git diff`
9
9
  - Status + log: `gitwise summarize` — never raw `git status` or `git log`
10
10
  - Branch switch: `gitwise worktree new <branch>` — never `git stash + checkout`
11
- - Snapshot: `gitwise snapshot` regenerates `.claude/git-snapshot.md`
11
+ - Snapshot: `gitwise snapshot`; writes `.agents/git-snapshot.md` when `.agents/` exists, otherwise `.claude/git-snapshot.md`
12
12
  - Audit: `gitwise audit --quick` — before large commits
13
13
  - Clean: `gitwise clean --branches` — remove stale branches
14
14
  - Optimize: `gitwise optimize` — gc, pack-refs, commit-graph
gitwise/snapshot.py CHANGED
@@ -10,6 +10,13 @@ from gitwise.output import debug, print_header, print_json, status
10
10
  from gitwise.utils.json_envelope import ok_envelope
11
11
 
12
12
 
13
+ def _snapshot_relative_path(root: Path) -> str:
14
+ """Return the snapshot path for the repository's active agent layout."""
15
+ if (root / ".agents").is_dir():
16
+ return ".agents/git-snapshot.md"
17
+ return ".claude/git-snapshot.md"
18
+
19
+
13
20
  def _append_branch_section(lines: list[str], *, root: Path) -> None:
14
21
  """Append the current branch section to *lines*."""
15
22
  branch = git_run(["branch", "--show-current"], cwd=root, check=False)
@@ -105,7 +112,7 @@ def run_snapshot(*, as_json: bool = False) -> int:
105
112
  return 1
106
113
 
107
114
  with status(t("status_snapshot_gen")):
108
- path = generate_snapshot(root)
115
+ path = generate_snapshot(root, relative_path=_snapshot_relative_path(root))
109
116
 
110
117
  if as_json:
111
118
  print_json(ok_envelope("snapshot", path=str(path)))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitwise-cli
3
- Version: 0.35.0
3
+ Version: 0.35.1
4
4
  Summary: Python CLI for optimizing git workflows and Claude Code integration
5
5
  Project-URL: Homepage, https://github.com/drzioner/gitwise
6
6
  Project-URL: Repository, https://github.com/drzioner/gitwise
@@ -1,4 +1,4 @@
1
- gitwise/__init__.py,sha256=9xYkA1cZ8bChVEs5tRwf78IGBkbiu2P_BjWD5XTqPN8,432
1
+ gitwise/__init__.py,sha256=lTMcJGVkirPuHeStrLjmkW0_lhnXV5Gq9ltWsVUtdjU,432
2
2
  gitwise/__main__.py,sha256=un7xnbcNDlKp3yBXw8tPKY6eFttldppCumYIEHFknE0,5224
3
3
  gitwise/_cli_completions.py,sha256=TlVH42FLU6_1vpTpbxKp-i7r6B8yPtk_LZ3D2l8HMWI,6570
4
4
  gitwise/_cli_dispatch.py,sha256=xtDiinReOH_peyYRRWWrk7HJLmgP205OWXqdzlZWRRQ,19191
@@ -30,7 +30,7 @@ gitwise/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  gitwise/schema.py,sha256=O8IMVWVRCQlOg6y84FHtQflhOb5iE5Lm99zajaYef9A,4107
31
31
  gitwise/setup.py,sha256=0kM7fJ28fLWoIS2Ks--QR9UWbA2M-z6WcGW8TIWWb8A,18427
32
32
  gitwise/show.py,sha256=tdDKeHhrlagmjcg2tHxTVZTEesa0XYylG3hZwRdhrio,5216
33
- gitwise/snapshot.py,sha256=4_kGmaRfMTVMEUHLJiI-M6_dygCwNszEQjBpu4-VawU,3899
33
+ gitwise/snapshot.py,sha256=3-qqHxsZZciHRnO-kmrhTIFPFN01DhTY5oSQZ7hB_zQ,4185
34
34
  gitwise/stash.py,sha256=GLM_UHJqwds64k1xscEyNKwc9iFbJaAX1FqvkQu17XM,9790
35
35
  gitwise/status.py,sha256=IyMLauvAMTjqqgCa8jUeVAg2djy4A5PdSnb2ZY9PWMs,6954
36
36
  gitwise/suggest.py,sha256=pgbTQdGJ7K7_viHd602Ib1T04SfE2IYddnDoC_WEJu8,6212
@@ -80,17 +80,17 @@ gitwise/share/aider/CONVENTIONS.md.template,sha256=yy34J9bvbo053SFYu3d0qqNwTet3V
80
80
  gitwise/share/aider/aider.conf.yml.template,sha256=S95dRmqO79JQyPVuB6FolmzjblkZZ_UBaTTamSD9sOY,95
81
81
  gitwise/share/claude/CLAUDE.md.template,sha256=cEwWJ2UdtZ1BkrZB6s_BNzMsVAakoWPmmxpfsMJjlMs,524
82
82
  gitwise/share/claude/settings.json.template,sha256=K-gRttFJ8LmxzakKK4wYhmXWB25CBrTKdyLa1pLLS90,1282
83
- gitwise/share/claude/rules/gitwise.md,sha256=O38mehD8DlOva9jh8upUTZYWaNfjrKpf-QQvICDH7MQ,536
83
+ gitwise/share/claude/rules/gitwise.md,sha256=xoEtkWQL7cQBQaSBI5Zqv1y8pbRICHWYso6S_wrOonY,588
84
84
  gitwise/share/claude/skills/git-audit/SKILL.md,sha256=ItlLBBKUcug11dC2_ftRcp1eRSmNHaJpBtMGQXMksFA,1079
85
85
  gitwise/share/claude/skills/git-clean/SKILL.md,sha256=vNxY4KJ6hYvSknTiZsTuJx8fZJFdhJ0VwXLJ49PU_6U,930
86
86
  gitwise/share/claude/skills/git-optimize/SKILL.md,sha256=zuPfPlvu-_XJ2AbYho6vJh65gTMHo0jROQvbOhgtUiE,886
87
- gitwise/share/codex/agents/gitwise.toml.template,sha256=IzthW-8O3nVtFhw9GKOZUDt7Jf4hdZmJAmDUQVEUMsw,622
88
- gitwise/share/continue/rules/gitwise.md.template,sha256=qpHNHs-yYDx0TuO0ztQshcMIa_j_yBw1DBJZHW7acZs,619
89
- gitwise/share/cursor/rules/gitwise.mdc.template,sha256=63l2MWe6bQXL253x09O7CgM7_Ws9JUgrUOtNB9Zhag4,641
87
+ gitwise/share/codex/agents/gitwise.toml.template,sha256=xn7RctD1KehGiz81mnGfs13lXZmSzelTzQDEWHEM0e0,674
88
+ gitwise/share/continue/rules/gitwise.md.template,sha256=xNstnEA8ClIByBby1e5h2b9tPVz48erG7GGQU55Qmgg,671
89
+ gitwise/share/cursor/rules/gitwise.mdc.template,sha256=8mtxGy6ZBfWhCW8V5K-L3Hpe4JcxvFhu032NUZilb44,693
90
90
  gitwise/share/hooks/commit-msg,sha256=XYO1M8yr-dg6RIW1EsbURTPniz_P5NnDAy2g9iyVm4c,967
91
91
  gitwise/share/hooks/pre-commit,sha256=ArwF0ObjO-yrHUS2E0SztH4ya1h9ERww2uQBvGjLXl8,826
92
- gitwise/share/opencode/agents/gitwise.md.template,sha256=qpHNHs-yYDx0TuO0ztQshcMIa_j_yBw1DBJZHW7acZs,619
93
- gitwise/share/pi/skills/gitwise.md.template,sha256=qpHNHs-yYDx0TuO0ztQshcMIa_j_yBw1DBJZHW7acZs,619
92
+ gitwise/share/opencode/agents/gitwise.md.template,sha256=xNstnEA8ClIByBby1e5h2b9tPVz48erG7GGQU55Qmgg,671
93
+ gitwise/share/pi/skills/gitwise.md.template,sha256=xNstnEA8ClIByBby1e5h2b9tPVz48erG7GGQU55Qmgg,671
94
94
  gitwise/share/schemas/v1/input/audit.json,sha256=VRggwo8B-qUPUdWnVlrnTKCRrHAFk6Z-ZbSZOA_tVas,907
95
95
  gitwise/share/schemas/v1/input/branches.json,sha256=-TNmkH9KddkXeSGWWkksd7a64Kxk2zk5xSX86GEo6MM,1474
96
96
  gitwise/share/schemas/v1/input/clean.json,sha256=PQX0I00cnbrrb7nGgYVF3Ls-Z0-1CGbU1IBcdQCUQ7Y,1119
@@ -148,8 +148,8 @@ gitwise/share/schemas/v1/output/tag.json,sha256=EPDFtSjrPXqUJfhf0j8ciCrEhjACq1VW
148
148
  gitwise/share/schemas/v1/output/undo.json,sha256=eVCVYhGNnUF025ExbxHygaRzWybGCWFhp540U5JMk60,1467
149
149
  gitwise/share/schemas/v1/output/update.json,sha256=Gm0ACHlpgRhOr1-qrV6fAXxi_Pcbv9zsfZ17_2btJVs,1411
150
150
  gitwise/share/schemas/v1/output/worktree.json,sha256=55Z6wgv0BOV4YhAZAqLI0vgKXIBcw0Xspbn0N0tW0I4,1929
151
- gitwise_cli-0.35.0.dist-info/METADATA,sha256=KoWvqiBQzqh_j_7QBgJMfA9eggCbq1y0yh8DQnoU9q8,7563
152
- gitwise_cli-0.35.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
153
- gitwise_cli-0.35.0.dist-info/entry_points.txt,sha256=m3_cGIC4VTGp7Wn5_s7NBPACs9Yiwdn4ZBWUBX4PMfQ,77
154
- gitwise_cli-0.35.0.dist-info/licenses/LICENSE,sha256=vfJO-ThMtWhZOD9MsArN2yul1EJmxAXxfeGHKnEk9QQ,1063
155
- gitwise_cli-0.35.0.dist-info/RECORD,,
151
+ gitwise_cli-0.35.1.dist-info/METADATA,sha256=6afbKrfxJsLDLyA3TIEXIqx7m1QaF0wmUtrqaVldN3E,7563
152
+ gitwise_cli-0.35.1.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
153
+ gitwise_cli-0.35.1.dist-info/entry_points.txt,sha256=m3_cGIC4VTGp7Wn5_s7NBPACs9Yiwdn4ZBWUBX4PMfQ,77
154
+ gitwise_cli-0.35.1.dist-info/licenses/LICENSE,sha256=vfJO-ThMtWhZOD9MsArN2yul1EJmxAXxfeGHKnEk9QQ,1063
155
+ gitwise_cli-0.35.1.dist-info/RECORD,,