auto-sync: tudo-para-ia-mais-humana 2026-05-02 02:49:38

This commit is contained in:
2026-05-02 02:49:38 -03:00
parent dfb00b2f03
commit 6b0442f1d0
2 changed files with 9 additions and 5 deletions

View File

@@ -92,6 +92,7 @@ def build_parser() -> argparse.ArgumentParser:
mcp_artifacts.add_argument("--ecosystem-root", default="G:/_codex-git")
mcp_artifacts.add_argument("--project-root", default="G:/_codex-git/tudo-para-ia-mais-humana")
mcp_artifacts.add_argument("--central-platform-folder", default="")
mcp_artifacts.add_argument("--no-scan", action="store_true", help="Use the generated MCP catalog directly, without rescanning repositories.")
repo_mesh = sub.add_parser("repo-mesh", help="Inventory repository mirrors and write safe synchronization artifacts.")
repo_mesh.add_argument("--ecosystem-root", default="G:/_codex-git")
repo_mesh.add_argument("--project-root", default="G:/_codex-git/tudo-para-ia-mais-humana")
@@ -287,10 +288,12 @@ def _write_text(path: Path, text: str) -> str:
def command_mcp_contract_artifacts(args: argparse.Namespace) -> int:
project_root = Path(args.project_root)
central = Path(args.central_platform_folder) if args.central_platform_folder else None
scans = scan_ecosystem(Path(args.ecosystem_root))
cells = build_matrix(scans)
reports = build_platform_reports(scans, cells)
rulebook = evaluate_rulebook(reports)
rulebook = None
if not args.no_scan:
scans = scan_ecosystem(Path(args.ecosystem_root))
cells = build_matrix(scans)
reports = build_platform_reports(scans, cells)
rulebook = evaluate_rulebook(reports)
contracts = build_mcp_contract_report(rulebook)
ledger = build_mcp_transit_ledger(contracts)
admin_routes = administration_route_readiness_payload()
@@ -325,6 +328,7 @@ def command_mcp_contract_artifacts(args: argparse.Namespace) -> int:
"coverageCount": len(contracts.coverage),
"transitRecords": ledger.records_count,
"administrationRoutes": admin_routes["contractsCount"],
"scanMode": "generated_catalog_only" if args.no_scan else "ecosystem_scan",
"centralError": central_error,
"generatedFiles": written,
}