gitgalaxy 2.0.0__tar.gz → 2.0.1__tar.gz

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.
Files changed (68) hide show
  1. {gitgalaxy-2.0.0/gitgalaxy.egg-info → gitgalaxy-2.0.1}/PKG-INFO +1 -1
  2. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/recorders/record_keeper.py +86 -86
  3. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1/gitgalaxy.egg-info}/PKG-INFO +1 -1
  4. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/pyproject.toml +1 -1
  5. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/LICENSE +0 -0
  6. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/MANIFEST.in +0 -0
  7. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/README.md +0 -0
  8. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/__init__.py +0 -0
  9. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/cobol_refractor_controller.py +0 -0
  10. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/cobol_to_java_controller.py +0 -0
  11. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/core/__init__.py +0 -0
  12. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/core/aperture.py +0 -0
  13. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/core/detector.py +0 -0
  14. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/core/guidestar_lens.py +0 -0
  15. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/core/network_risk_sensor.py +0 -0
  16. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/core/prism.py +0 -0
  17. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/core/state_rehydrator.py +0 -0
  18. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/galaxyscope.py +0 -0
  19. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/physics/__init__.py +0 -0
  20. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/physics/chronometer.py +0 -0
  21. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/physics/neural_auditor.py +0 -0
  22. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/physics/signal_processor.py +0 -0
  23. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/physics/spectral_auditor.py +0 -0
  24. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/recorders/__init__.py +0 -0
  25. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/recorders/audit_recorder.py +0 -0
  26. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/recorders/gpu_recorder.py +0 -0
  27. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/recorders/llm_recorder.py +0 -0
  28. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/security/__init__.py +0 -0
  29. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/security/security_auditor.py +0 -0
  30. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/security/security_lens.py +0 -0
  31. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/standards/__init__.py +0 -0
  32. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/standards/analysis_lens.py +0 -0
  33. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/standards/gitgalaxy_config.py +0 -0
  34. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/standards/language_lens.py +0 -0
  35. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/standards/language_standards.py +0 -0
  36. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/__init__.py +0 -0
  37. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/ai_guardrails/ai_appsec_sensor.py +0 -0
  38. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/ai_guardrails/dev_agent_firewall.py +0 -0
  39. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_cobol/cobol_agent_task_forge.py +0 -0
  40. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_cobol/cobol_compiler_forge.py +0 -0
  41. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_cobol/cobol_dag_architect.py +0 -0
  42. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_cobol/cobol_etl_unpacker.py +0 -0
  43. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_cobol/cobol_graveyard_finder.py +0 -0
  44. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_cobol/cobol_jcl_auditor.py +0 -0
  45. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_cobol/cobol_jcl_forge.py +0 -0
  46. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_cobol/cobol_lexical_patcher.py +0 -0
  47. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_cobol/cobol_microservice_slicer.py +0 -0
  48. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_cobol/cobol_schema_forge.py +0 -0
  49. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_cobol/cobol_system_limits_reporter.py +0 -0
  50. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_java/batch_test_harness.py +0 -0
  51. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_java/cobol_to_java_agent_forge.py +0 -0
  52. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_java/cobol_to_java_api_contract_forge.py +0 -0
  53. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_java/cobol_to_java_build_forge.py +0 -0
  54. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_java/cobol_to_java_decoder_forge.py +0 -0
  55. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_java/cobol_to_java_service_forge.py +0 -0
  56. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/cobol_to_java/cobol_to_java_spring_forge.py +0 -0
  57. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/compliance/sbom_generator.py +0 -0
  58. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/network_auditing/full_api_network_map.py +0 -0
  59. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/supply_chain_security/binary_anomaly_detector.py +0 -0
  60. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/supply_chain_security/supply_chain_firewall.py +0 -0
  61. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/supply_chain_security/vault_sentinel.py +0 -0
  62. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/terabyte_log_scanning/pii_leak_hunter.py +0 -0
  63. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy/tools/terabyte_log_scanning/terabyte_log_scanner.py +0 -0
  64. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy.egg-info/SOURCES.txt +0 -0
  65. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy.egg-info/dependency_links.txt +0 -0
  66. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy.egg-info/entry_points.txt +0 -0
  67. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/gitgalaxy.egg-info/top_level.txt +0 -0
  68. {gitgalaxy-2.0.0 → gitgalaxy-2.0.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitgalaxy
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: An AST-free, zero-trust static analysis engine for mapping architectural risk, securing CI/CD pipelines, and modernizing legacy monoliths.
5
5
  Author: Joseph Michael Esquibel
6
6
  Project-URL: Homepage, https://gitgalaxy.io
@@ -519,7 +519,7 @@ class RecordKeeper:
519
519
  ) VALUES ({repo_placeholders})
520
520
  ''', repo_row_data)
521
521
 
522
- # 4. DARK MATTER LEDGER INSERTION
522
+ # 4. DARK MATTER LEDGER INSERTION
523
523
  dark_rows = []
524
524
  for dark in singularity:
525
525
  path = dark.get("path", "")
@@ -530,89 +530,89 @@ class RecordKeeper:
530
530
  ])
531
531
 
532
532
  if dark_rows:
533
- cursor.executemany('''
534
- INSERT INTO dark_matter_data
535
- (repo_name, commit_hash, file_path, extension, exclusion_reason, size_bytes)
536
- VALUES (?, ?, ?, ?, ?, ?)
537
- ''', dark_rows)
538
-
539
- # ==============================================================================
540
- # 5. FOLDER-LEVEL ROLLUP (MATERIALIZED PATH AGGREGATION)
541
- # ==============================================================================
542
- folder_stats = {}
543
- debt_idx = self.RISK_SCHEMA.index("tech_debt") if "tech_debt" in self.RISK_SCHEMA else -1
544
-
545
- for star in stars:
546
- file_path = star.get("path", "")
547
- parts = file_path.split('/')[:-1] # Strip the filename to get directories
548
-
549
- # Determine all parent paths (e.g., src/api/auth -> src, src/api, src/api/auth)
550
- paths_to_update = ["."] if not parts else []
551
- current_path = ""
552
- for part in parts:
553
- current_path = f"{current_path}/{part}" if current_path else part
554
- paths_to_update.append(current_path)
555
-
556
- # Extract file metrics
557
- loc = star.get("total_loc", 0)
558
- coding_loc = star.get("coding_loc", 0)
559
- mass = star.get("file_impact", 0.0)
560
- func_count = len(star.get("satellites", []))
561
- class_count = len(star.get("gas_giants", []))
562
-
563
- tel = star.get("telemetry", {})
564
- cog_raw = tel.get("densities", {}).get("cog_raw", 0.0)
565
- churn = tel.get("raw_churn_freq", 0.0)
566
-
567
- rv = star.get("risk_vector", [])
568
- tech_debt = rv[debt_idx] if debt_idx >= 0 and len(rv) > debt_idx else 0.0
569
-
570
- # Roll metrics upwards
571
- for p in paths_to_update:
572
- if p not in folder_stats:
573
- folder_stats[p] = {
574
- "file_count": 0, "total_loc": 0, "total_coding_loc": 0,
575
- "total_functions": 0, "total_classes": 0, "total_mass": 0.0,
576
- "cog_loads": [], "tech_debts": [], "churns": []
577
- }
578
- fs = folder_stats[p]
579
- fs["file_count"] += 1
580
- fs["total_loc"] += loc
581
- fs["total_coding_loc"] += coding_loc
582
- fs["total_functions"] += func_count
583
- fs["total_classes"] += class_count
584
- fs["total_mass"] += mass
585
- fs["cog_loads"].append(cog_raw)
586
- fs["tech_debts"].append(tech_debt)
587
- fs["churns"].append(churn)
588
-
589
- # Calculate Domain Averages and Insert
590
- folder_rows = []
591
- for f_path, stats in folder_stats.items():
592
- avg_cog = sum(stats["cog_loads"]) / len(stats["cog_loads"]) if stats["cog_loads"] else 0.0
593
- max_cog = max(stats["cog_loads"]) if stats["cog_loads"] else 0.0
594
-
595
- avg_debt = sum(stats["tech_debts"]) / len(stats["tech_debts"]) if stats["tech_debts"] else 0.0
596
- max_debt = max(stats["tech_debts"]) if stats["tech_debts"] else 0.0
597
-
598
- avg_churn = sum(stats["churns"]) / len(stats["churns"]) if stats["churns"] else 0.0
599
-
600
- folder_rows.append((
601
- repo_name, commit_hash, f_path,
602
- stats["file_count"], stats["total_loc"], stats["total_coding_loc"],
603
- stats["total_functions"], stats["total_classes"], round(stats["total_mass"], 2),
604
- round(avg_cog, 3), round(avg_debt, 3), round(max_cog, 3), round(max_debt, 3), round(avg_churn, 3)
605
- ))
533
+ cursor.executemany('''
534
+ INSERT INTO dark_matter_data
535
+ (repo_name, commit_hash, file_path, extension, exclusion_reason, size_bytes)
536
+ VALUES (?, ?, ?, ?, ?, ?)
537
+ ''', dark_rows)
538
+
539
+ # ==============================================================================
540
+ # 5. FOLDER-LEVEL ROLLUP (MATERIALIZED PATH AGGREGATION)
541
+ # ==============================================================================
542
+ folder_stats = {}
543
+ debt_idx = self.RISK_SCHEMA.index("tech_debt") if "tech_debt" in self.RISK_SCHEMA else -1
606
544
 
607
- if folder_rows:
608
- cursor.executemany('''
609
- INSERT INTO folder_data (
610
- repo_name, commit_hash, folder_path, file_count, total_loc, total_coding_loc,
611
- total_functions, total_classes, total_mass, avg_cognitive_load, avg_tech_debt,
612
- max_cognitive_load, max_tech_debt, avg_churn_freq
613
- ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
614
- ''', folder_rows)
615
-
616
- conn.commit()
617
- conn.close()
618
- self.logger.info(f"Database sealed. Exported {len(stars)} files and {len(folder_rows)} folders to {db_file.name}")
545
+ for star in stars:
546
+ file_path = star.get("path", "")
547
+ parts = file_path.split('/')[:-1] # Strip the filename to get directories
548
+
549
+ # Determine all parent paths (e.g., src/api/auth -> src, src/api, src/api/auth)
550
+ paths_to_update = ["."] if not parts else []
551
+ current_path = ""
552
+ for part in parts:
553
+ current_path = f"{current_path}/{part}" if current_path else part
554
+ paths_to_update.append(current_path)
555
+
556
+ # Extract file metrics
557
+ loc = star.get("total_loc", 0)
558
+ coding_loc = star.get("coding_loc", 0)
559
+ mass = star.get("file_impact", 0.0)
560
+ func_count = len(star.get("satellites", []))
561
+ class_count = len(star.get("gas_giants", []))
562
+
563
+ tel = star.get("telemetry", {})
564
+ cog_raw = tel.get("densities", {}).get("cog_raw", 0.0)
565
+ churn = tel.get("raw_churn_freq", 0.0)
566
+
567
+ rv = star.get("risk_vector", [])
568
+ tech_debt = rv[debt_idx] if debt_idx >= 0 and len(rv) > debt_idx else 0.0
569
+
570
+ # Roll metrics upwards
571
+ for p in paths_to_update:
572
+ if p not in folder_stats:
573
+ folder_stats[p] = {
574
+ "file_count": 0, "total_loc": 0, "total_coding_loc": 0,
575
+ "total_functions": 0, "total_classes": 0, "total_mass": 0.0,
576
+ "cog_loads": [], "tech_debts": [], "churns": []
577
+ }
578
+ fs = folder_stats[p]
579
+ fs["file_count"] += 1
580
+ fs["total_loc"] += loc
581
+ fs["total_coding_loc"] += coding_loc
582
+ fs["total_functions"] += func_count
583
+ fs["total_classes"] += class_count
584
+ fs["total_mass"] += mass
585
+ fs["cog_loads"].append(cog_raw)
586
+ fs["tech_debts"].append(tech_debt)
587
+ fs["churns"].append(churn)
588
+
589
+ # Calculate Domain Averages and Insert
590
+ folder_rows = []
591
+ for f_path, stats in folder_stats.items():
592
+ avg_cog = sum(stats["cog_loads"]) / len(stats["cog_loads"]) if stats["cog_loads"] else 0.0
593
+ max_cog = max(stats["cog_loads"]) if stats["cog_loads"] else 0.0
594
+
595
+ avg_debt = sum(stats["tech_debts"]) / len(stats["tech_debts"]) if stats["tech_debts"] else 0.0
596
+ max_debt = max(stats["tech_debts"]) if stats["tech_debts"] else 0.0
597
+
598
+ avg_churn = sum(stats["churns"]) / len(stats["churns"]) if stats["churns"] else 0.0
599
+
600
+ folder_rows.append((
601
+ repo_name, commit_hash, f_path,
602
+ stats["file_count"], stats["total_loc"], stats["total_coding_loc"],
603
+ stats["total_functions"], stats["total_classes"], round(stats["total_mass"], 2),
604
+ round(avg_cog, 3), round(avg_debt, 3), round(max_cog, 3), round(max_debt, 3), round(avg_churn, 3)
605
+ ))
606
+
607
+ if folder_rows:
608
+ cursor.executemany('''
609
+ INSERT INTO folder_data (
610
+ repo_name, commit_hash, folder_path, file_count, total_loc, total_coding_loc,
611
+ total_functions, total_classes, total_mass, avg_cognitive_load, avg_tech_debt,
612
+ max_cognitive_load, max_tech_debt, avg_churn_freq
613
+ ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
614
+ ''', folder_rows)
615
+
616
+ conn.commit()
617
+ conn.close()
618
+ self.logger.info(f"Database sealed. Exported {len(stars)} files and {len(folder_rows)} folders to {db_file.name}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitgalaxy
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: An AST-free, zero-trust static analysis engine for mapping architectural risk, securing CI/CD pipelines, and modernizing legacy monoliths.
5
5
  Author: Joseph Michael Esquibel
6
6
  Project-URL: Homepage, https://gitgalaxy.io
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "gitgalaxy"
7
- version = "2.0.0"
7
+ version = "2.0.1"
8
8
  authors = [
9
9
  { name="Joseph Michael Esquibel" },
10
10
  ]
File without changes
File without changes
File without changes
File without changes