feat(output): separate code and docs into subdirectories

Group copied project files under a dedicated code/ directory
Group generated analysis, manifest, and overview under docs/
This commit is contained in:
2026-04-02 10:36:29 +08:00
parent 5ba2e3217a
commit eef3464257
4 changed files with 56 additions and 27 deletions

View File

@@ -11,7 +11,12 @@ from .pipeline import ProjectPipeline
def build_parser() -> ArgumentParser:
parser = ArgumentParser(description="Extract and explain UiPath project dependencies.")
parser.add_argument("project_dir", type=Path, help="UiPath project root directory")
parser.add_argument("--output-dir", type=Path, default=Path("workspace"), help="Copied project output directory")
parser.add_argument(
"--output-dir",
type=Path,
default=Path("workspace"),
help="Output bundle directory containing separate code/ and docs/ folders",
)
parser.add_argument("--entry", default="main.xaml", help="Entry XAML file name")
parser.add_argument("--env-file", type=Path, default=Path(".env"), help="Environment file for Gemini config")
parser.add_argument("--model", help="Override GEMINI_MODEL")
@@ -44,6 +49,8 @@ def main(argv: list[str] | None = None) -> int:
report = pipeline.run(analyzer=analyzer)
print(f"Output written to: {report.output_root}")
print(f"Code written to: {report.code_root}")
print(f"Docs written to: {report.docs_root}")
print(f"Final files: {len(report.final_files)}")
print(f"Pruned files: {len(report.pruned_files)}")
print(f"Warnings: {len(report.warnings)}")