code2llm 0.5.10__tar.gz → 0.5.12__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.
- {code2llm-0.5.10 → code2llm-0.5.12}/PKG-INFO +1 -1
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/__init__.py +1 -1
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/cli.py +16 -5
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/nlp/__init__.py +1 -1
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm.egg-info/PKG-INFO +1 -1
- {code2llm-0.5.10 → code2llm-0.5.12}/pyproject.toml +1 -1
- {code2llm-0.5.10 → code2llm-0.5.12}/tests/test_prompt_txt.py +2 -2
- {code2llm-0.5.10 → code2llm-0.5.12}/LICENSE +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/README.md +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/__main__.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/analysis/__init__.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/analysis/call_graph.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/analysis/cfg.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/analysis/coupling.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/analysis/data_analysis.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/analysis/dfg.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/analysis/pipeline_detector.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/analysis/side_effects.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/analysis/smells.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/analysis/type_inference.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/__init__.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/analyzer.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/config.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/core/__init__.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/core/file_analyzer.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/core/file_cache.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/core/file_filter.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/core/refactoring.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/models.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/streaming/__init__.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/streaming/cache.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/streaming/incremental.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/streaming/prioritizer.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/streaming/scanner.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/streaming/strategies.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/core/streaming_analyzer.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/__init__.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/base.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/context_exporter.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/evolution_exporter.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/flow_constants.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/flow_exporter.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/flow_renderer.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/json_exporter.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/llm_exporter.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/map_exporter.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/mermaid_exporter.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/readme_exporter.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/toon/__init__.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/toon/helpers.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/toon/metrics.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/toon/module_detail.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/toon/renderer.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/toon.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/exporters/yaml_exporter.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/generators/__init__.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/generators/llm_flow.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/generators/llm_task.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/generators/mermaid.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/nlp/config.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/nlp/entity_resolution.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/nlp/intent_matching.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/nlp/normalization.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/nlp/pipeline.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/patterns/__init__.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/patterns/detector.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/refactor/__init__.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm/refactor/prompt_engine.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm.egg-info/SOURCES.txt +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm.egg-info/dependency_links.txt +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm.egg-info/entry_points.txt +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm.egg-info/requires.txt +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/code2llm.egg-info/top_level.txt +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/setup.cfg +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/setup.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/tests/test_advanced_analysis.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/tests/test_analyzer.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/tests/test_deep_analysis.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/tests/test_edge_cases.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/tests/test_flow_exporter.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/tests/test_format_quality.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/tests/test_nlp_pipeline.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/tests/test_pipeline_detector.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/tests/test_prompt_engine.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/tests/test_refactoring_engine.py +0 -0
- {code2llm-0.5.10 → code2llm-0.5.12}/tests/test_toon_v2.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code2llm
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.12
|
|
4
4
|
Summary: High-performance Python code flow analysis with optimized TOON format - CFG, DFG, call graphs, and intelligent code queries
|
|
5
5
|
Home-page: https://github.com/wronai/stts
|
|
6
6
|
Author: STTS Project
|
|
@@ -453,9 +453,20 @@ def _export_prompt_txt(args, output_dir: Path, formats: list[str], source_path:
|
|
|
453
453
|
|
|
454
454
|
prompt_path = output_dir / 'prompt.txt'
|
|
455
455
|
|
|
456
|
-
# Determine
|
|
457
|
-
|
|
458
|
-
|
|
456
|
+
# Determine project name and relative output path for display
|
|
457
|
+
if source_path:
|
|
458
|
+
project_path = source_path.name if source_path.name else str(source_path)
|
|
459
|
+
try:
|
|
460
|
+
output_rel_path = str(output_dir.relative_to(source_path))
|
|
461
|
+
except ValueError:
|
|
462
|
+
output_rel_path = str(output_dir)
|
|
463
|
+
else:
|
|
464
|
+
cwd = Path.cwd()
|
|
465
|
+
project_path = cwd.name
|
|
466
|
+
try:
|
|
467
|
+
output_rel_path = str(output_dir.relative_to(cwd))
|
|
468
|
+
except ValueError:
|
|
469
|
+
output_rel_path = str(output_dir)
|
|
459
470
|
|
|
460
471
|
files = [
|
|
461
472
|
('analysis.toon', 'Health diagnostics - complexity metrics, god modules, coupling issues, refactoring priorities'),
|
|
@@ -477,14 +488,14 @@ def _export_prompt_txt(args, output_dir: Path, formats: list[str], source_path:
|
|
|
477
488
|
lines.append("Files for analysis:")
|
|
478
489
|
|
|
479
490
|
for name, desc in existing:
|
|
480
|
-
file_path = f"{
|
|
491
|
+
file_path = f"{output_rel_path}/{name}"
|
|
481
492
|
lines.append(f"- {file_path} ({desc})")
|
|
482
493
|
|
|
483
494
|
if missing:
|
|
484
495
|
lines.append("")
|
|
485
496
|
lines.append("Missing files (not generated in this run):")
|
|
486
497
|
for name in missing:
|
|
487
|
-
file_path = f"{
|
|
498
|
+
file_path = f"{output_rel_path}/{name}"
|
|
488
499
|
lines.append(f"- {file_path}")
|
|
489
500
|
|
|
490
501
|
lines.append("")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code2llm
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.12
|
|
4
4
|
Summary: High-performance Python code flow analysis with optimized TOON format - CFG, DFG, call graphs, and intelligent code queries
|
|
5
5
|
Home-page: https://github.com/wronai/stts
|
|
6
6
|
Author: STTS Project
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "code2llm"
|
|
7
|
-
version = "0.5.
|
|
7
|
+
version = "0.5.12"
|
|
8
8
|
description = "High-performance Python code flow analysis with optimized TOON format - CFG, DFG, call graphs, and intelligent code queries"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
@@ -73,9 +73,9 @@ class TestPromptTxtGeneration:
|
|
|
73
73
|
prompt_file = temp_output_dir / 'prompt.txt'
|
|
74
74
|
content = prompt_file.read_text()
|
|
75
75
|
|
|
76
|
-
# Check that project
|
|
76
|
+
# Check that project name is shown (just folder name, not full path)
|
|
77
77
|
assert "we are in project path:" in content
|
|
78
|
-
assert "
|
|
78
|
+
assert "myproject" in content
|
|
79
79
|
|
|
80
80
|
# Check that existing files are listed with paths and descriptions
|
|
81
81
|
assert "Files for analysis:" in content
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|