Skip to content

Commit 7791ef2

Browse files
refactor(goal): output formatting
changes: - file: formats.py area: cli modified: [_export_simple_formats, _export_evolution] stats: lines: "+6/-6 (net +0)" files: 1 complexity: "Stable complexity"
1 parent c53cebe commit 7791ef2

6 files changed

Lines changed: 15 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## [Unreleased]
22

3+
## [0.5.77] - 2026-03-25
4+
5+
### Other
6+
- Update code2llm/cli_exports/formats.py
7+
38
## [0.5.76] - 2026-03-25
49

510
### Docs

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.76
1+
0.5.77

code2llm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
and entity resolution with multilingual support.
99
"""
1010

11-
__version__ = "0.5.76"
11+
__version__ = "0.5.77"
1212
__author__ = "STTS Project"
1313

1414
# Core analysis components (lightweight, always needed)

code2llm/cli_exports/formats.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717

1818
def _export_evolution(args, result, output_dir: Path):
19-
"""Export evolution.yaml format (plain text TOON)."""
19+
"""Export evolution.toon.yaml format (plain text TOON)."""
2020
if 'evolution' not in [f.strip() for f in args.format.split(',')] and 'all' not in [f.strip() for f in args.format.split(',')]:
2121
return
2222
exporter = EvolutionExporter()
23-
filepath = output_dir / 'evolution.yaml'
23+
filepath = output_dir / 'evolution.toon.yaml'
2424
exporter.export(result, str(filepath))
2525
if args.verbose:
2626
print(f" - EVOLUTION (refactoring queue): {filepath}")
@@ -100,16 +100,16 @@ def _run_report(args, project_yaml_path: str, output_dir: Path) -> None:
100100
def _export_simple_formats(args, result, output_dir: Path, formats):
101101
"""Export toon, map, flow, context, yaml, json, project-yaml formats."""
102102
format_map = {
103-
'toon': (ToonExporter, 'toon.yaml', 'TOON (diagnostics)'),
104-
'map': (MapExporter, 'map.yaml', 'MAP (structure)'),
105-
'flow': (FlowExporter, 'flow.yaml', 'FLOW (data-flow)'),
103+
'toon': (ToonExporter, 'toon.toon.yaml', 'TOON (diagnostics)'),
104+
'map': (MapExporter, 'map.toon.yaml', 'MAP (structure)'),
105+
'flow': (FlowExporter, 'flow.toon.yaml', 'FLOW (data-flow)'),
106106
'context': (ContextExporter, 'context.md', 'CONTEXT (LLM narrative)'),
107107
}
108108

109109
for fmt, (exporter_cls, filename, label) in format_map.items():
110110
if fmt in formats:
111111
exporter = exporter_cls()
112-
# Export as plain text TOON format but with .yaml extension
112+
# Export as plain text TOON format with .toon.yaml extension
113113
filepath = output_dir / filename
114114
exporter.export(result, str(filepath))
115115
if args.verbose:

code2llm/nlp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
with multilingual support and fuzzy matching.
55
"""
66

7-
__version__ = "0.5.76"
7+
__version__ = "0.5.77"
88

99
from .pipeline import NLPPipeline
1010
from .normalization import QueryNormalizer

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "code2llm"
7-
version = "0.5.76"
7+
version = "0.5.77"
88
description = "High-performance Python code flow analysis with optimized TOON format - CFG, DFG, call graphs, and intelligent code queries"
99
readme = "README.md"
1010
requires-python = ">=3.8"

0 commit comments

Comments
 (0)