sourcecode 0.18.0__py3-none-any.whl → 0.19.0__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 — Genera mapas de contexto estructurado para agentes IA."""
2
2
 
3
- __version__ = "0.18.0"
3
+ __version__ = "0.19.0"
@@ -47,6 +47,7 @@ class DependencyAnalyzer:
47
47
  ecosystems: set[str] = set()
48
48
  sources: set[str] = set()
49
49
  limitations: list[str] = []
50
+ all_dependencies: list[DependencyRecord] = []
50
51
  for summary in summaries:
51
52
  result.total_count += summary.total_count
52
53
  result.direct_count += summary.direct_count
@@ -56,9 +57,11 @@ class DependencyAnalyzer:
56
57
  for limitation in summary.limitations:
57
58
  if limitation not in limitations:
58
59
  limitations.append(limitation)
60
+ all_dependencies.extend(summary.dependencies)
59
61
  result.ecosystems = sorted(ecosystems)
60
62
  result.sources = sorted(sources)
61
63
  result.limitations = limitations
64
+ result.dependencies = all_dependencies
62
65
  return result
63
66
 
64
67
  def _build_summary(
@@ -80,6 +83,7 @@ class DependencyAnalyzer:
80
83
  ecosystems=ecosystems,
81
84
  sources=sources,
82
85
  limitations=unique_limitations,
86
+ dependencies=list(records),
83
87
  )
84
88
 
85
89
  def _dedupe(self, records: Iterable[DependencyRecord]) -> list[DependencyRecord]:
sourcecode/schema.py CHANGED
@@ -96,6 +96,7 @@ class DependencySummary:
96
96
  ecosystems: list[str] = field(default_factory=list)
97
97
  sources: list[str] = field(default_factory=list)
98
98
  limitations: list[str] = field(default_factory=list)
99
+ dependencies: list["DependencyRecord"] = field(default_factory=list)
99
100
 
100
101
 
101
102
  @dataclass
sourcecode/serializer.py CHANGED
@@ -74,6 +74,7 @@ def compact_view(sm: SourceMap) -> dict[str, Any]:
74
74
  dep_summary_dict: Any = None
75
75
  if sm.dependency_summary is not None and sm.dependency_summary.requested:
76
76
  dep_summary_dict = asdict(sm.dependency_summary)
77
+ dep_summary_dict.pop("dependencies", None)
77
78
 
78
79
  env_summary_dict: Any = None
79
80
  if sm.env_summary is not None and sm.env_summary.requested:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sourcecode
3
- Version: 0.18.0
3
+ Version: 0.19.0
4
4
  Summary: Genera un mapa de contexto estructurado de proyectos de software para agentes IA
5
5
  License: MIT
6
6
  Requires-Python: >=3.9
@@ -1,11 +1,11 @@
1
- sourcecode/__init__.py,sha256=2xvIYHm2xuX16l7lbFXXg0lpO2dTFYnD0zaInvV0ZWQ,100
1
+ sourcecode/__init__.py,sha256=K3oF2tC36Se4IiYU6MvNhrg4EoK_jaLeik_nUWPID4Y,100
2
2
  sourcecode/architecture_analyzer.py,sha256=zxgqeqn2FhIUDn06X-whjGKiXbrHFkRlzZcr2zKd0Gw,16874
3
3
  sourcecode/architecture_summary.py,sha256=r9IciS9z-7h8xpiME7DKBLhLV36xzXtSzbZ1cRDWklo,11709
4
4
  sourcecode/classifier.py,sha256=fcp2wIq198wq3Rsh_bDmZIK_W5UI6FEL5oqm1RrQfpA,6846
5
5
  sourcecode/cli.py,sha256=pB0NmyaH-gCrHCFlNxYSMfuArM6nitv6PyrMLkYKKRs,25429
6
6
  sourcecode/code_notes_analyzer.py,sha256=rRd8bFYV0krjlxxQV0wenwE9K7pVpUQSR7KvSvUQKw4,9226
7
7
  sourcecode/coverage_parser.py,sha256=q0LeZJaX1bnntLu-ImksdBsMlpsVmk_iUfSaB4eaJGo,19702
8
- sourcecode/dependency_analyzer.py,sha256=9BEAyLoBAS2R0twYkprJj_e0c83pzz9QPMRWKfinNn4,40948
8
+ sourcecode/dependency_analyzer.py,sha256=KITti0XLHK3RvZGqAUseWnlFLXGFyv5FqvSK5R6PB1g,41147
9
9
  sourcecode/doc_analyzer.py,sha256=Ec3orx6vBKsh5cNM3-F4y2Got2KuKx8w3dErwtdtM-A,19891
10
10
  sourcecode/env_analyzer.py,sha256=JZxBOuIxnM0xw0IaJFL6LiPJBErL848L3XoTOHGBqZI,13554
11
11
  sourcecode/git_analyzer.py,sha256=S9PGt8RDasBQYQUsZh9-H_KWVlPvzwR4jgM7TKN9ZCk,7643
@@ -14,9 +14,9 @@ sourcecode/metrics_analyzer.py,sha256=4uh11v-Q0gdrN87BOxuFWUym3N3AOkOuy21K5N8peB
14
14
  sourcecode/prepare_context.py,sha256=X43dEPe2cb7uMwlpQwVJMe0rQIZ0juaJ7H3F37sPbNc,5371
15
15
  sourcecode/redactor.py,sha256=xuGcadGEHaPw4qZXlMDvzMCsr4VOkdp3oBQptHyJk8c,2884
16
16
  sourcecode/scanner.py,sha256=Ga4jDRAOhkcwlRmlE2ko6cE39qKy0aI4iE1lGBWmAlk,6410
17
- sourcecode/schema.py,sha256=93IrVRLAbzksVfFzr6_FhFSPpKJVwgVoTBcov-jTVo8,15669
17
+ sourcecode/schema.py,sha256=dnNdnQxJtBv0PRVWi6-xnpr16dj6IsUGbso9PeeEolA,15743
18
18
  sourcecode/semantic_analyzer.py,sha256=SRQSGJzEi4ZsGvb7U3qvnRiKHabz4hvIzCqiG92x9K8,79349
19
- sourcecode/serializer.py,sha256=IMU4lmr0FTDSTocws47abpJL01HH1cBK2UMGSUv00yo,13404
19
+ sourcecode/serializer.py,sha256=edOfD25lUKkZ0gIjFcjqWmY4yHSnOKvudzNisvW_RYg,13456
20
20
  sourcecode/summarizer.py,sha256=2Yz5xJ1bhtJLlrUpKcd74wijypRRo9GJmGT8u971EW0,11572
21
21
  sourcecode/tree_utils.py,sha256=xla45Whq24j6U9kEgTztJXkMpmOEDieAulKxP3nl89s,935
22
22
  sourcecode/workspace.py,sha256=fQlVoNx8S-fSHpKoJ0JBvEHCFkxszH0KZVJed1i3TRk,6845
@@ -39,7 +39,7 @@ sourcecode/detectors/rust.py,sha256=V23NO6Y8NsrhrUlGC2feUEcNK63hf3gc1y3jI4tes1Q,
39
39
  sourcecode/detectors/systems.py,sha256=nYaKbGDFu0EOXFcd_1doWFT3tTUdkbxc2DjHUF5TcqQ,1627
40
40
  sourcecode/detectors/terraform.py,sha256=cxORPR_zVLOJpHlh4e9JnFpkQsn_UnqMMom5yG65hZ4,1693
41
41
  sourcecode/detectors/tooling.py,sha256=hIvop80No22pqyGVJ32NKliSdjkHRePQkIRroqG01bY,1875
42
- sourcecode-0.18.0.dist-info/METADATA,sha256=eT0gf29PQU5hZA8P_BJmLbwRURJSz3XTIp5PrkmypOM,25900
43
- sourcecode-0.18.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
44
- sourcecode-0.18.0.dist-info/entry_points.txt,sha256=voDtdlGU2-jR3wCZpQoOls_0eUKaDVCKIfajGHFDATs,50
45
- sourcecode-0.18.0.dist-info/RECORD,,
42
+ sourcecode-0.19.0.dist-info/METADATA,sha256=cv1q6sPPTkTruEdpHr8JioUXmXuSec5dPAhAw9NXoW8,25900
43
+ sourcecode-0.19.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
44
+ sourcecode-0.19.0.dist-info/entry_points.txt,sha256=voDtdlGU2-jR3wCZpQoOls_0eUKaDVCKIfajGHFDATs,50
45
+ sourcecode-0.19.0.dist-info/RECORD,,