Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions dream-server/dream-cli
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,30 @@ cmd_audit() {
python3 "$INSTALL_DIR/scripts/audit-extensions.py" --project-dir "$INSTALL_DIR" "${script_args[@]}"
}

cmd_audit() {
check_install
sr_load

local -a script_args=()
while [[ $# -gt 0 ]]; do
case "$1" in
--json|--strict)
script_args+=("$1")
;;
--help|-h)
python3 "$INSTALL_DIR/scripts/audit-extensions.py" --help
return 0
;;
*)
script_args+=("$(resolve_service "$1")")
;;
esac
shift
done

python3 "$INSTALL_DIR/scripts/audit-extensions.py" --project-dir "$INSTALL_DIR" "${script_args[@]}"
}

#=============================================================================
# Extension Management Commands
#=============================================================================
Expand Down Expand Up @@ -1524,7 +1548,7 @@ ${CYAN}Commands:${NC}
chat "<message>" Quick chat with the LLM
benchmark Run a quick performance test
doctor [report] Run diagnostics and write JSON report
audit [extensions] Audit extension manifests and compose contracts
audit [service] Audit extension manifests and feature contracts
help Show this help

${CYAN}Preset Commands:${NC}
Expand Down Expand Up @@ -1591,8 +1615,7 @@ ${CYAN}Examples:${NC}
dream restart stt # Restart Whisper (via alias)
dream chat "What is 2+2?" # Quick LLM test
dream config edit # Edit .env file
dream audit # Audit every extension contract
dream audit --json whisper # Audit one service as JSON
dream audit --json whisper # Audit one extension as JSON

${CYAN}Environment:${NC}
DREAM_HOME Installation directory (default: ~/dream-server)
Expand Down
Loading
Loading