sourcecode 1.30.23__py3-none-any.whl → 1.30.24__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.
sourcecode/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """sourcecode — Deterministic codebase context maps for AI coding agents."""
2
2
 
3
- __version__ = "1.30.23"
3
+ __version__ = "1.30.24"
@@ -1088,8 +1088,12 @@ class TaskContextBuilder:
1088
1088
  _pr_build_changes: dict = {}
1089
1089
  _pr_committed_changes: list[dict] = []
1090
1090
  _pr_uncommitted_changes: list[dict] = []
1091
- _pr_committed_files: list[str] = []
1092
- _pr_uncommitted_files: list[str] = []
1091
+ # Only default these for non-review-pr tasks — review-pr already set them
1092
+ # at line 714 via _get_pr_scope_files. Re-initializing here would shadow
1093
+ # those values and make _committed_set/_uncommitted_set always empty.
1094
+ if task_name != "review-pr":
1095
+ _pr_committed_files: list[str] = []
1096
+ _pr_uncommitted_files: list[str] = []
1093
1097
 
1094
1098
  if task_name == "review-pr":
1095
1099
  _pr_base_ref = since or "HEAD"
@@ -1997,8 +2001,8 @@ class TaskContextBuilder:
1997
2001
 
1998
2002
  DiffSourceType mapping:
1999
2003
  since given → committed: GIT_RANGE(since, HEAD)
2000
- no since → committed: [] (no implicit HEAD~1 fallback)
2001
- always uncommitted: WORKTREE_UNSTAGED + WORKTREE_STAGED
2004
+ no since → uncommitted: WORKTREE_UNSTAGED + WORKTREE_STAGED
2005
+ no since + clean tree committed: HEAD_MINUS_1 (auto-fallback)
2002
2006
  """
2003
2007
  import subprocess
2004
2008
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sourcecode
3
- Version: 1.30.23
3
+ Version: 1.30.24
4
4
  Summary: Deterministic codebase context for AI coding agents
5
5
  License: Apache License
6
6
  Version 2.0, January 2004
@@ -221,7 +221,7 @@ Description-Content-Type: text/markdown
221
221
 
222
222
  **Deterministic, behavior-aware codebase context for AI agents and PR review.**
223
223
 
224
- ![Version](https://img.shields.io/badge/version-1.30.23-blue)
224
+ ![Version](https://img.shields.io/badge/version-1.30.24-blue)
225
225
  ![Python](https://img.shields.io/badge/python-3.10%2B-green)
226
226
 
227
227
  ---
@@ -257,7 +257,7 @@ pipx install sourcecode
257
257
 
258
258
  ```bash
259
259
  sourcecode version
260
- # sourcecode 1.30.23
260
+ # sourcecode 1.30.24
261
261
  ```
262
262
 
263
263
  ---
@@ -1,4 +1,4 @@
1
- sourcecode/__init__.py,sha256=4VsjXZcGaVFIDFx4kI8Hlzw0_vN-CPBmQkBXMb29s-I,104
1
+ sourcecode/__init__.py,sha256=_G4L9dLoe-xZdbMh8lwWvEdlI0FXQlCazMjnG8FzJ7s,104
2
2
  sourcecode/adaptive_scanner.py,sha256=RTNExwWPXzjgLaRueT7UuxkPj5ZEToWjGbx1j0LSZ9E,10250
3
3
  sourcecode/architecture_analyzer.py,sha256=MyBa0Hf5HmkudZQDLKrjcWDKETXETXl0mQX1swtTwAA,39091
4
4
  sourcecode/architecture_summary.py,sha256=z34_6v7cSwy98cof2UVciGho7SCrZ93tiqMmq5WNzRQ,20405
@@ -22,7 +22,7 @@ sourcecode/git_analyzer.py,sha256=0Gyj-vMpIIN4nfriKXVRouNYBeJ59s6pQDX2Xu9Pq-U,13
22
22
  sourcecode/graph_analyzer.py,sha256=iUK-7pSV-cvGqqD2hENdYmhnm0wcXFEyK-xnu5ul8OU,62515
23
23
  sourcecode/metrics_analyzer.py,sha256=m0ENgtqKeBL17kUIK3fmGkgo7UfXBNHxCMj0H_Y5K7c,22750
24
24
  sourcecode/pr_comment_renderer.py,sha256=k5pCIP6iBNwy5UYPxu47CAq-62j4E9QZZOPyL3trH80,14799
25
- sourcecode/prepare_context.py,sha256=biZaw1T_D5cQWSUnWBQmdLLdhe-7HClkHtHJgBvqFDs,165387
25
+ sourcecode/prepare_context.py,sha256=uCMZW2_e4yWolItpv_8YszDNA_R00gSIvy-2wz4jry4,165680
26
26
  sourcecode/progress.py,sha256=qn30sWaHOkjTgXsSBmiPkz7Rsbwc5oSlIe6JNEMYp_k,3149
27
27
  sourcecode/ranking_engine.py,sha256=virVglafZufioHpZpwktjMvUiL0TZELWQCQnQNV8dFo,9360
28
28
  sourcecode/redactor.py,sha256=xuGcadGEHaPw4qZXlMDvzMCsr4VOkdp3oBQptHyJk8c,2884
@@ -64,8 +64,8 @@ sourcecode/telemetry/consent.py,sha256=wLMvGNJeSSyZoNkQXpoUioY6mMv4Qdvuw7S9jAEWn
64
64
  sourcecode/telemetry/events.py,sha256=oEvvulfsv5GIDWG2174gSS6tNB95w38AIYiYeifGKlE,2294
65
65
  sourcecode/telemetry/filters.py,sha256=Asa71oRl7q3Wt_FMwuufIZJFzSYdgRNKS8LHCIyFeYE,4805
66
66
  sourcecode/telemetry/transport.py,sha256=KJeIPCPWMdmbCP3ySGs2iUlia34U6vWne2dZsUezesw,1560
67
- sourcecode-1.30.23.dist-info/METADATA,sha256=K9iUA2PpGOnHY1vF9hupWySK0WzXVyvweT4TS_XIYms,28956
68
- sourcecode-1.30.23.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
69
- sourcecode-1.30.23.dist-info/entry_points.txt,sha256=ex3F9rmbXeyDIoFQHtkEqTsKSaJow8F0LrVu8XfIktQ,57
70
- sourcecode-1.30.23.dist-info/licenses/LICENSE,sha256=7DdHrU9Z_3e7dSvq4ISijZNjnuHo5NIHNiHDouMQ9JU,10491
71
- sourcecode-1.30.23.dist-info/RECORD,,
67
+ sourcecode-1.30.24.dist-info/METADATA,sha256=kS8mWyMiWenuH5JumNncBGMFTYmATgv-K15-W9ZlVYI,28956
68
+ sourcecode-1.30.24.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
69
+ sourcecode-1.30.24.dist-info/entry_points.txt,sha256=ex3F9rmbXeyDIoFQHtkEqTsKSaJow8F0LrVu8XfIktQ,57
70
+ sourcecode-1.30.24.dist-info/licenses/LICENSE,sha256=7DdHrU9Z_3e7dSvq4ISijZNjnuHo5NIHNiHDouMQ9JU,10491
71
+ sourcecode-1.30.24.dist-info/RECORD,,