UX improvement for deps

Fixed UX for deeps, wasnt reporting what packages it was updating, was just silent...
Changed readme to remove the personal note.
This commit is contained in:
TheAuditorTool
2025-09-08 01:25:01 +07:00
parent 83e7dbd537
commit ca866e188a
2 changed files with 21 additions and 7 deletions

View File

@@ -1,10 +1,3 @@
Personal note from me:
Its taken me over a week just to get the courage to upload this. Ive never coded a single line of this, I cant stress that enough... Yes, I build architecture, infrastructure all the things that made the code and components come out this way but uggh… the potential shame and humiliation is real lol... So don't be a dick and poop on my parade... Ive done my best... Take it or leave it...
Its become a complex advanced monster system that is honestly clean af but hard to get an overview anymore.
It isnt unlikely to find oddities such as finished components that was never wired up or exposed in the pipeline...
Im doing by best here, im only one person with one brain lol.... :P
### The Search for Ground Truth in an Age of AI
My background is in systems architecture/infrastructure, not professional software development. I have only been "coding/developing" for little over 3 months. This gives me a unique perspective: I can see the forest, but I'm blind to the individual trees of the code. After immersing myself for 500+ hours in AI-assisted development, I concluded that the entire ecosystem is built on a fundamentally flawed premise: it lacks a source of **ground truth**.

View File

@@ -96,6 +96,27 @@ def deps(root, check_latest, upgrade_all, offline, out, print_stats, vuln_scan):
if count > 0:
click.echo(f" [OK] {file_type}: {count} dependency entries updated")
# Show what was actually upgraded
click.echo(f"\n[CHANGES] Packages upgraded:")
upgraded_packages = [
(k.split(":")[1], v["locked"], v["latest"], v.get("delta", ""))
for k, v in latest_info.items()
if v.get("is_outdated", False) and v.get("latest") is not None
]
# Sort by package name for consistent output
upgraded_packages.sort(key=lambda x: x[0].lower())
# Show first 20 upgrades with details
for name, old_ver, new_ver, delta in upgraded_packages[:20]:
delta_marker = " [MAJOR]" if delta == "major" else ""
# Use arrow character that works on Windows
arrow = "->" if IS_WINDOWS else ""
click.echo(f" - {name}: {old_ver} {arrow} {new_ver}{delta_marker}")
if len(upgraded_packages) > 20:
click.echo(f" ... and {len(upgraded_packages) - 20} more packages")
# Show summary that matches the "Outdated: 10/29" format
if total_updated > unique_upgraded:
click.echo(f"\n Summary: {unique_upgraded} unique packages updated across {total_updated} occurrences")