feat: make Core reports commercially production-ready
This commit is contained in:
@@ -76,6 +76,8 @@ Commands:
|
||||
init [--runtime managed|vendored] Adopt/reconfigure CASAN (interactive wizard by default)
|
||||
uninstall [--purge] Remove CASAN from this project (preserves user config)
|
||||
doctor [--client ...] Verify configured hooks, pin, adapters, and VS Code route
|
||||
readiness [--refresh] [--json] Assess Core, Domain Pipeline, and Provider Telemetry
|
||||
domain <status|discover|configure> Manage optional project-owned Domain Pack selection
|
||||
edition <show|set> Show / change the product edition
|
||||
level <show|set 1..4> Deprecated alias for edition
|
||||
verify-harness Verify the resolved harness matches the project pin
|
||||
@@ -90,7 +92,7 @@ Commands:
|
||||
report latest [--json] Show the latest prompt assurance receipt
|
||||
report export [trace] [--format] Export a run/H6 dossier on demand
|
||||
view [trace-id] Open the Core Local Assurance Viewer
|
||||
pipeline [--manifest path] Run the manifest-driven SRS→test pipeline
|
||||
pipeline [--manifest path] Run an optional project-owned SRS→test pipeline
|
||||
dashboard <start|status|stop|open> Run local assurance (Core) or Control Plane
|
||||
version Print version
|
||||
help This help
|
||||
@@ -116,6 +118,10 @@ case "$cmd" in
|
||||
doctor)
|
||||
[[ -f "$DEVKIT_ROOT/casan-init.py" ]] || { echo "casan: doctor requires the casan-devkit package" >&2; exit 1; }
|
||||
exec python3 "$DEVKIT_ROOT/casan-init.py" doctor "$@" ;;
|
||||
readiness)
|
||||
exec python3 "$HARNESS/scripts/python/report_cli.py" --root "$CASAN_APP_ROOT" readiness "$@" ;;
|
||||
domain)
|
||||
exec python3 "$HARNESS/scripts/python/report_cli.py" --root "$CASAN_APP_ROOT" domain "$@" ;;
|
||||
level)
|
||||
[[ -f "$DEVKIT_ROOT/casan-init.py" ]] || { echo "casan: level requires the casan-devkit package" >&2; exit 1; }
|
||||
sub="${1:-show}"; shift || true
|
||||
@@ -180,7 +186,21 @@ case "$cmd" in
|
||||
exec python3 "$HARNESS/scripts/python/report_cli.py" --root "$CASAN_APP_ROOT" view "$@" ;;
|
||||
pipeline)
|
||||
RUNNER="$CASAN_APP_ROOT/scripts/run-casan-pipeline.mjs"
|
||||
[[ -f "$RUNNER" ]] || { echo "casan: pipeline runner is not installed" >&2; exit 1; }
|
||||
if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
|
||||
cat <<'EOF'
|
||||
Usage: casan pipeline [project runner arguments]
|
||||
|
||||
Runs a project-owned manifest-driven SRS→test pipeline when
|
||||
scripts/run-casan-pipeline.mjs exists. The pipeline is an optional Domain Pack
|
||||
capability; CASAN Core prompt assurance and visual reports do not depend on it.
|
||||
EOF
|
||||
exit 0
|
||||
fi
|
||||
if [[ ! -f "$RUNNER" ]]; then
|
||||
echo "CASAN_PIPELINE_NOT_CONFIGURED — no project-owned Domain Pipeline runner was found." >&2
|
||||
echo "Core remains available: use 'casan view' and 'casan readiness'." >&2
|
||||
exit 2
|
||||
fi
|
||||
exec node "$RUNNER" "$@" ;;
|
||||
dashboard)
|
||||
CONTROL_PLANE_SCRIPT="$HARNESS/../casan-control-panel/scripts/control-plane-local.sh"
|
||||
|
||||
Reference in New Issue
Block a user