auto-sync: tudo-para-ia-mais-humana 2026-05-02 06:24:21
This commit is contained in:
@@ -594,6 +594,21 @@ def command_central_materialization(args: argparse.Namespace) -> int:
|
||||
return 0
|
||||
|
||||
|
||||
def command_canonical_identity(args: argparse.Namespace) -> int:
|
||||
central_platform_folder = Path(args.central_platform_folder) if args.central_platform_folder else None
|
||||
graph, records = run_canonical_identity_graph(
|
||||
project_root=Path(args.project_root),
|
||||
central_platform_folder=central_platform_folder,
|
||||
use_generated=not bool(args.no_generated),
|
||||
)
|
||||
payload = {
|
||||
"graph": identity_graph_payload(graph, limit_cases=20),
|
||||
"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)
|
||||
@@ -637,6 +652,8 @@ def main(argv: list[str] | None = None) -> int:
|
||||
return command_mcp_admin_route_acceptance(args)
|
||||
if args.command == "central-materialization":
|
||||
return command_central_materialization(args)
|
||||
if args.command == "canonical-identity":
|
||||
return command_canonical_identity(args)
|
||||
parser.error(f"unknown command: {args.command}")
|
||||
return 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user