auto-sync: tudo-para-ia-mais-humana 2026-05-02 07:24:14

This commit is contained in:
2026-05-02 07:24:14 -03:00
parent 0951751ebe
commit 89e69ff7bd
22 changed files with 156891 additions and 5347 deletions

View File

@@ -10,6 +10,7 @@ from .models import as_plain_data
from .central_consolidation import run_consolidated_report
from .central_materialization import run_central_materialization
from .canonical_identity import identity_graph_payload, run_canonical_identity_graph
from .canonical_migration import migration_plan_payload, run_canonical_migration_plan
from .matrix import build_global_recommendations, build_matrix, build_platform_reports
from .mcp_contract import build_mcp_contract_report, build_mcp_execute_probe, mcp_provider_compact_json, mcp_provider_payload
from .mcp_contract import (
@@ -153,6 +154,14 @@ def build_parser() -> argparse.ArgumentParser:
default="G:/_codex-git/nucleo-gestao-operacional/central-de-ordem-de-servico/projects/15_repo_tudo-para-ia-mais-humana-platform",
)
canonical_identity.add_argument("--no-generated", action="store_true", help="Build graph from runtime targets instead of generated registry.")
canonical_migration = sub.add_parser("canonical-migration-plan", help="Write canonical-name migration controls and MCP acceptance cases.")
canonical_migration.add_argument("--project-root", default="G:/_codex-git/tudo-para-ia-mais-humana")
canonical_migration.add_argument(
"--central-platform-folder",
default="G:/_codex-git/nucleo-gestao-operacional/central-de-ordem-de-servico/projects/15_repo_tudo-para-ia-mais-humana-platform",
)
canonical_migration.add_argument("--no-generated", action="store_true", help="Build acceptance cases from runtime repository targets.")
canonical_migration.add_argument("--limit", type=int, default=40)
return parser
@@ -609,6 +618,17 @@ def command_canonical_identity(args: argparse.Namespace) -> int:
return 0
def command_canonical_migration_plan(args: argparse.Namespace) -> int:
central_platform_folder = Path(args.central_platform_folder) if args.central_platform_folder else None
plan = run_canonical_migration_plan(
project_root=Path(args.project_root),
central_platform_folder=central_platform_folder,
use_generated=not bool(args.no_generated),
)
print(json.dumps(migration_plan_payload(plan, limit_cases=int(args.limit)), ensure_ascii=False, indent=2))
return 0
def main(argv: list[str] | None = None) -> int:
parser = build_parser()
args = parser.parse_args(argv)
@@ -654,6 +674,8 @@ def main(argv: list[str] | None = None) -> int:
return command_central_materialization(args)
if args.command == "canonical-identity":
return command_canonical_identity(args)
if args.command == "canonical-migration-plan":
return command_canonical_migration_plan(args)
parser.error(f"unknown command: {args.command}")
return 2