Canon 0.6.0 freeze: ITC-CAP draft, AVT catalog, joinable review
Finish ITC-WP-0013 (AttributeValueType under ITC-DATA) and ITC-WP-0014 T02/T03/T05/T06/T07. Capability contract schemas, live-catalog review CLI, landscape/kernel-map pointers. Sit on this version.
This commit is contained in:
parent
7805560a60
commit
d453e17952
44 changed files with 1485 additions and 137 deletions
|
|
@ -24,6 +24,7 @@ from .service import (
|
|||
profile_inspect,
|
||||
profile_validate,
|
||||
read_view,
|
||||
review_capability_record,
|
||||
review_kit,
|
||||
validate_canon,
|
||||
write_validation_report,
|
||||
|
|
@ -105,6 +106,13 @@ def build_parser() -> argparse.ArgumentParser:
|
|||
profile_graph_cmd.add_argument("--format", choices=["json", "mermaid"], default="json")
|
||||
profile_graph_cmd.set_defaults(handler=_profile_graph)
|
||||
|
||||
capability_review = sub.add_parser(
|
||||
"capability-review",
|
||||
help="Review a consumer capability record against the live catalog",
|
||||
)
|
||||
capability_review.add_argument("record")
|
||||
capability_review.set_defaults(handler=_capability_review)
|
||||
|
||||
api = sub.add_parser("api", help="Run the read-only local API")
|
||||
api.add_argument("--host", default="127.0.0.1")
|
||||
api.add_argument("--port", type=int, default=8765)
|
||||
|
|
@ -195,6 +203,10 @@ def _graph(args: argparse.Namespace) -> dict[str, Any]:
|
|||
return artifact_graph(_root(args), output_format=args.format)
|
||||
|
||||
|
||||
def _capability_review(args: argparse.Namespace) -> dict[str, Any]:
|
||||
return review_capability_record(args.record, _root(args))
|
||||
|
||||
|
||||
def _profile_inspect(args: argparse.Namespace) -> dict[str, Any]:
|
||||
return profile_inspect(args.profile, _root(args))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue