auto-sync: tudo-para-ia-mais-humana 2026-05-04 14:58:32
This commit is contained in:
@@ -49,6 +49,7 @@ from .repository_mesh_runtime import (
|
||||
from .repository_mesh_semantic import write_repository_mesh_semantic_state
|
||||
from .repository_mesh_readiness import build_mesh_readiness_report, write_readiness_artifacts
|
||||
from .repository_mesh_gitea import build_gitea_mesh_plan, write_gitea_plan_artifacts
|
||||
from .router000_exit_orders import run_router000_exit_orders
|
||||
from .scanner import environment_summary, scan_ecosystem
|
||||
from .storage import table_counts
|
||||
from .targeted_sync_audit import run_targeted_sync_audit
|
||||
@@ -182,6 +183,15 @@ def build_parser() -> argparse.ArgumentParser:
|
||||
institutional_assurance.add_argument("--plugin-auth-attempt", default="")
|
||||
institutional_assurance.add_argument("--no-central", action="store_true")
|
||||
institutional_assurance.add_argument("--limit", type=int, default=40)
|
||||
router000_orders = sub.add_parser("router000-exit-orders", help="Write Router 000 output service orders into affected central folders.")
|
||||
router000_orders.add_argument("--ecosystem-root", default="G:/_codex-git")
|
||||
router000_orders.add_argument("--project-root", default="G:/_codex-git/tudo-para-ia-mais-humana")
|
||||
router000_orders.add_argument(
|
||||
"--central-projects-root",
|
||||
default="G:/_codex-git/nucleo-gestao-operacional/central-de-ordem-de-servico/projects",
|
||||
)
|
||||
router000_orders.add_argument("--executive-limit", type=int, default=5)
|
||||
router000_orders.add_argument("--managerial-limit", type=int, default=5)
|
||||
return parser
|
||||
|
||||
|
||||
@@ -677,6 +687,22 @@ def command_institutional_assurance(args: argparse.Namespace) -> int:
|
||||
return 0
|
||||
|
||||
|
||||
def command_router000_exit_orders(args: argparse.Namespace) -> int:
|
||||
report, records = run_router000_exit_orders(
|
||||
ecosystem_root=Path(args.ecosystem_root),
|
||||
project_root=Path(args.project_root),
|
||||
central_projects_root=Path(args.central_projects_root),
|
||||
executive_limit=int(args.executive_limit),
|
||||
managerial_limit=int(args.managerial_limit),
|
||||
)
|
||||
payload = {
|
||||
"report": report.to_dict(),
|
||||
"generatedFiles": [record.path for record in records],
|
||||
}
|
||||
print(json.dumps(payload, ensure_ascii=False, indent=2))
|
||||
return 0
|
||||
|
||||
|
||||
def main(argv: list[str] | None = None) -> int:
|
||||
parser = build_parser()
|
||||
args = parser.parse_args(argv)
|
||||
@@ -728,6 +754,8 @@ def main(argv: list[str] | None = None) -> int:
|
||||
return command_canonical_migration_plan(args)
|
||||
if args.command == "institutional-assurance":
|
||||
return command_institutional_assurance(args)
|
||||
if args.command == "router000-exit-orders":
|
||||
return command_router000_exit_orders(args)
|
||||
parser.error(f"unknown command: {args.command}")
|
||||
return 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user