Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
4b7a4a2
refactor(cli): extract sandbox live state helpers
cv May 2, 2026
2ce87dd
refactor(cli): extract sandbox skill install action
cv May 2, 2026
4cd3cf3
refactor(cli): extract sandbox connect action
cv May 3, 2026
e9dd46e
refactor(cli): extract sandbox status action
cv May 3, 2026
aab6c86
refactor(cli): extract sandbox doctor action
cv May 3, 2026
8908521
refactor(cli): extract sandbox destroy action
cv May 3, 2026
56e4f05
refactor(cli): extract sandbox rebuild action
cv May 3, 2026
8bf1958
refactor(cli): extract upgrade sandboxes action
cv May 3, 2026
38eb84d
refactor(cli): remove runtime bridge
cv May 3, 2026
b2ad5da
refactor(cli): remove legacy dispatch fallbacks
cv May 3, 2026
edd2650
refactor(cli): expose explicit main entrypoint
cv May 3, 2026
a15da95
refactor(cli): add oclif examples for utility commands
cv May 3, 2026
4f57ebb
refactor(cli): validate logs flags with oclif
cv May 3, 2026
8b2d077
refactor(cli): improve sandbox diagnostic command metadata
cv May 3, 2026
a09cc51
refactor(cli): tighten policy and channel parser validation
cv May 3, 2026
75857dc
refactor(cli): improve snapshot command metadata
cv May 3, 2026
11c0676
refactor(cli): require skill install path in oclif
cv May 3, 2026
05f9eca
refactor(cli): add lifecycle confirmation flag aliases
cv May 3, 2026
4ebeae4
refactor(cli): split share into oclif subcommands
cv May 3, 2026
7d72437
Revert "refactor(cli): split share into oclif subcommands"
cv May 3, 2026
0ee5ca5
refactor(cli): split share into oclif subcommands
cv May 3, 2026
928219c
refactor(cli): model debug flags with oclif
cv May 3, 2026
36cce5e
refactor(cli): model onboard flags with oclif
cv May 3, 2026
702afb1
docs: sync oclif UX command reference
cv May 3, 2026
3224350
refactor(cli): extract public argv normalizer
cv May 3, 2026
cd4cdb8
refactor(cli): rename oclif dispatch module
cv May 3, 2026
9499ca6
refactor(cli): normalize policy command ids
cv May 3, 2026
42028ef
test(cli): require oclif command metadata
cv May 3, 2026
a05c6b3
refactor(cli): return typed debug parse results
cv May 3, 2026
1875fe9
refactor(cli): add public command display ids
cv May 3, 2026
36f1dbe
refactor(cli): use oclif summaries in root help
cv May 3, 2026
78bfd5a
refactor(cli): table-drive sandbox dispatch
cv May 3, 2026
96ce61f
refactor(cli): normalize gateway token command id
cv May 3, 2026
266ebc9
refactor(cli): render public oclif help
cv May 3, 2026
dc98994
refactor(cli): add shared oclif command base
cv May 3, 2026
d0d2a70
refactor(cli): use oclif flag relationships
cv May 3, 2026
8396c06
refactor(cli): pass lifecycle typed options
cv May 3, 2026
1532b19
refactor(cli): parse durations with oclif flags
cv May 3, 2026
7c0445a
refactor(cli): project public help through oclif
cv May 3, 2026
3978c32
test(cli): cover oclif metadata routing helpers
cv May 3, 2026
591eabb
test(cli): cover global oclif command adapters
cv May 3, 2026
8a6ecbc
test(cli): cover sandbox oclif command adapters
cv May 3, 2026
e5aa22f
refactor(cli): split share oclif commands
cv May 3, 2026
e179336
test(cli): narrow sandbox logs coverage ignores
cv May 3, 2026
a629813
test(cli): cover remaining global oclif adapters
cv May 3, 2026
c5954e7
test(cli): cover credentials oclif adapter
cv May 3, 2026
3380de9
test(cli): cover runtime utility helpers
cv May 3, 2026
f60a190
test(cli): improve global adapter coverage
cv May 3, 2026
78a16d1
merge: sync simple global adapter coverage
cv May 3, 2026
a58dc90
merge: sync credentials adapter coverage
cv May 3, 2026
034454f
merge: include credentials adapter coverage
cv May 3, 2026
28bc497
merge: sync combined global adapter coverage
cv May 3, 2026
e9ed6ba
test(cli): cover global action facade
cv May 3, 2026
00b288c
merge: sync global action facade coverage
cv May 3, 2026
7bd5f32
test(cli): stabilize coverage dist sourcemaps
cv May 4, 2026
d4b55d9
test(cli): rebaseline clean-dist function coverage
cv May 4, 2026
b872474
refactor(cli): extract maintenance image helpers
cv May 4, 2026
4965762
refactor(cli): extract upgrade sandbox helpers
cv May 4, 2026
9acd660
refactor(cli): extract sandbox destroy helpers
cv May 4, 2026
cc0eaa1
refactor(cli): extract sandbox logs helpers
cv May 4, 2026
847e115
refactor(cli): extract policy channel helpers
cv May 4, 2026
b6c0f5a
test(cli): allow clean coverage variance
cv May 4, 2026
5c98bd1
merge: sync coverage stabilization
cv May 4, 2026
4754f3e
merge: sync maintenance helper extraction
cv May 4, 2026
96f0758
merge: sync upgrade helper extraction
cv May 4, 2026
b6bd105
merge: sync destroy helper extraction
cv May 4, 2026
98fb75d
merge: sync logs helper extraction
cv May 4, 2026
5920d5b
test(cli): keep destroy helpers outside coverage ratchet
cv May 4, 2026
64d1646
merge: sync destroy helper coverage boundary
cv May 4, 2026
717c482
test(cli): keep logs helpers outside coverage ratchet
cv May 4, 2026
688074f
merge: sync logs helper coverage boundary
cv May 4, 2026
1314270
test(cli): keep policy channel helpers outside coverage ratchet
cv May 4, 2026
79d81c2
refactor(cli): group oclif core modules
cv May 4, 2026
5453a89
refactor(cli): split oclif commands by command tree
cv May 4, 2026
bbc297f
test(cli): reset credential command helper cache
cv May 4, 2026
25224c1
test(cli): avoid generic warning assertion in debug output
cv May 4, 2026
1ed9256
refactor(cli): group pure domain helpers
cv May 4, 2026
51799e4
refactor(cli): group openshell adapters
cv May 4, 2026
0b1e877
test(cli): enforce initial layer import boundaries
cv May 4, 2026
91d750b
refactor(cli): group sandbox actions
cv May 4, 2026
4321d63
refactor(cli): group global actions
cv May 4, 2026
5bc2242
test(cli): format layer boundary checker
cv May 4, 2026
073225e
ci(prek): tolerate unmatched biome format chunks
cv May 4, 2026
29a26ae
refactor(cli): group state modules
cv May 4, 2026
523e2d9
refactor(cli): group docker adapters
cv May 4, 2026
f25fcce
Merge branch 'test/layer-import-boundaries' into refactor/layer-sandb…
cv May 4, 2026
301b0a7
Merge branch 'refactor/layer-sandbox-actions' into refactor/layer-glo…
cv May 4, 2026
668235a
Merge branch 'refactor/layer-global-actions' into refactor/layer-stat…
cv May 4, 2026
392bebb
Merge branch 'refactor/layer-state-modules' into refactor/layer-docke…
cv May 4, 2026
e25e0a3
refactor(cli): discover oclif commands by pattern
cv May 6, 2026
bb7ebc3
refactor(cli): move coredns patcher behind internal command
cv May 6, 2026
489198d
refactor(cli): move dns proxy setup behind internal command
cv May 6, 2026
b5cdf50
refactor(uninstall): extract plan domain helpers
cv May 6, 2026
cc93aae
fix(uninstall): allow optional host env fields in plan tests
cv May 6, 2026
aa0f853
refactor(uninstall): run uninstall through internal command
cv May 6, 2026
cf416a4
fix(cli): locate node for uninstall wrapper
cv May 6, 2026
359fefd
test(cli): exclude source-tested uninstall helpers from coverage ratchet
cv May 6, 2026
f729544
refactor(cli): wrap debug script with TypeScript command
cv May 6, 2026
1f8e88b
merge(main): reconcile debug shell wrapper
cv May 6, 2026
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
383 changes: 20 additions & 363 deletions scripts/debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,376 +2,33 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Collect NemoClaw diagnostic information for bug reports.
#
# Outputs to stdout and optionally writes a tarball.
# Compatibility wrapper for the TypeScript NemoClaw debug collector.
#
# Usage:
# ./scripts/debug.sh # full diagnostics to stdout
# ./scripts/debug.sh --quick # minimal diagnostics
# ./scripts/debug.sh --sandbox mybox # target a specific sandbox
# ./scripts/debug.sh --output /tmp/diag.tar.gz # also save tarball
# nemoclaw debug [--quick] [--output path] # via CLI wrapper
#
# Can also be run without cloning:
# curl -fsSL https://raw.githubusercontent.com/NVIDIA/NemoClaw/main/scripts/debug.sh | bash -s -- --quick
# ./scripts/debug.sh [--quick] [--sandbox NAME] [--output PATH]
# nemoclaw debug [--quick] [--sandbox NAME] [--output PATH]

set -euo pipefail

# ── Setup ────────────────────────────────────────────────────────

GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
CYAN='\033[0;36m'
NC='\033[0m'

info() { echo -e "${GREEN}[debug]${NC} $1"; }
warn() { echo -e "${YELLOW}[debug]${NC} $1"; }
fail() {
echo -e "${RED}[debug]${NC} $1"
exit 1
}
section() { echo -e "\n${CYAN}═══ $1 ═══${NC}\n"; }

# ── Parse flags ──────────────────────────────────────────────────

SANDBOX_NAME="${NEMOCLAW_SANDBOX:-${SANDBOX_NAME:-}}"
QUICK=false
OUTPUT=""

while [ $# -gt 0 ]; do
case "$1" in
--sandbox)
SANDBOX_NAME="${2:?--sandbox requires a name}"
shift 2
;;
--quick)
QUICK=true
shift
;;
--output | -o)
OUTPUT="${2:?--output requires a path}"
shift 2
;;
--help | -h)
cat <<'USAGE'
Usage: scripts/debug.sh [OPTIONS]

Collect NemoClaw diagnostic information for bug reports.

Options:
--sandbox NAME Target sandbox (default: $NEMOCLAW_SANDBOX or auto-detect)
--quick Collect minimal diagnostics only
--output PATH Write tarball to PATH (e.g. /tmp/nemoclaw-debug.tar.gz)
--help Show this help

Examples:
nemoclaw debug
nemoclaw debug --quick
nemoclaw debug --output /tmp/diag.tar.gz
curl -fsSL https://raw.githubusercontent.com/NVIDIA/NemoClaw/main/scripts/debug.sh | bash -s -- --quick
USAGE
exit 0
;;
*)
fail "Unknown option: $1 (see --help)"
;;
esac
done

# ── Helpers ──────────────────────────────────────────────────────

TMPDIR_BASE="${TMPDIR:-/tmp}"
COLLECT_DIR=$(mktemp -d "${TMPDIR_BASE}/nemoclaw-debug-XXXXXX")
SANDBOX_SSH_CONFIG=""
SANDBOX_SSH_KNOWN=""
cleanup() {
rm -rf "$COLLECT_DIR"
if [ -n "$SANDBOX_SSH_CONFIG" ]; then
rm -f "$SANDBOX_SSH_CONFIG"
fi
if [ -n "$SANDBOX_SSH_KNOWN" ]; then
rm -f "$SANDBOX_SSH_KNOWN"
fi
}
trap cleanup EXIT

# Platform detection
IS_MACOS=false
if [ "$(uname -s)" = "Darwin" ]; then
IS_MACOS=true
fi

# Detect timeout binary (GNU coreutils; gtimeout on macOS via brew)
TIMEOUT_BIN=""
if command -v timeout >/dev/null 2>&1; then
TIMEOUT_BIN="timeout"
elif command -v gtimeout >/dev/null 2>&1; then
TIMEOUT_BIN="gtimeout"
fi

SCRIPT_DIR=""
REPO_ROOT=""
ONBOARD_SESSION_HELPER=""
SCRIPT_PATH="${BASH_SOURCE[0]:-}"
if [ -n "$SCRIPT_PATH" ] && [ -f "$SCRIPT_PATH" ]; then
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_PATH")" && pwd)"
REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
ONBOARD_SESSION_HELPER="${REPO_ROOT}/dist/lib/onboard-session.js"
fi

# Redact known sensitive patterns from stdin.
# Primary path: delegate to the compiled TypeScript redact module.
# Fallback: minimal sed for environments without node or dist/.
# Ref: https://github.com/NVIDIA/NemoClaw/issues/2381
redact() {
if command -v node &>/dev/null && [ -n "$REPO_ROOT" ] && [ -f "${REPO_ROOT}/dist/lib/redact.js" ]; then
node -e "
const {redactFull} = require(process.argv[1]);
let d = '';
process.stdin.on('data', c => d += c);
process.stdin.on('end', () => process.stdout.write(redactFull(d)));
" "${REPO_ROOT}/dist/lib/redact"
else
sed -E \
-e 's/(NVIDIA_API_KEY|API_KEY|TOKEN|SECRET|PASSWORD|CREDENTIAL|_KEY)=\S+/\1=<REDACTED>/gi' \
-e 's/nvapi-[A-Za-z0-9_-]{10,}/<REDACTED>/g' \
-e 's/nvcf-[A-Za-z0-9_-]{10,}/<REDACTED>/g' \
-e 's/ghp_[A-Za-z0-9_-]{10,}/<REDACTED>/g' \
-e 's/sk-[A-Za-z0-9_-]{20,}/<REDACTED>/g' \
-e 's/(Bearer )[^ ]+/\1<REDACTED>/gi'
fi
}

# Run a command, print output, and save to a file in the collect dir.
# Silently skips commands that are not found. Output is redacted for secrets.
collect() {
local label="$1"
shift
local filename
filename=$(echo "$label" | tr ' /' '_-')
local outfile="${COLLECT_DIR}/${filename}.txt"

if ! command -v "$1" &>/dev/null; then
echo " ($1 not found, skipping)" | tee "$outfile"
return 0
fi

local rc=0
local tmpout="${outfile}.raw"
if [ -n "$TIMEOUT_BIN" ]; then
"$TIMEOUT_BIN" 30 "$@" >"$tmpout" 2>&1 || rc=$?
else
"$@" >"$tmpout" 2>&1 || rc=$?
fi

redact <"$tmpout" >"$outfile"
rm -f "$tmpout"

cat "$outfile"
if [ "$rc" -ne 0 ]; then
echo " (command exited with non-zero status)"
fi
}

# ── Auto-detect sandbox name if not given ────────────────────────

if [ -z "$SANDBOX_NAME" ]; then
if command -v openshell &>/dev/null; then
SANDBOX_NAME=$(
openshell sandbox list 2>/dev/null \
| awk 'NF { if (tolower($1) == "name") next; print $1; exit }'
) || true
fi
SANDBOX_NAME="${SANDBOX_NAME:-default}"
fi

# ── Collect diagnostics ──────────────────────────────────────────

info "Collecting diagnostics for sandbox '${SANDBOX_NAME}'..."
info "Quick mode: ${QUICK}"
[ -n "$OUTPUT" ] && info "Tarball output: ${OUTPUT}"
echo ""

# -- System basics --

section "System"
collect "date" date
collect "uname" uname -a
collect "uptime" uptime
if [ "$IS_MACOS" = true ]; then
# shellcheck disable=SC2016
collect "memory" sh -c 'echo "Physical: $(($(sysctl -n hw.memsize) / 1048576)) MB"; vm_stat'
else
collect "free" free -m
fi

if [ "$QUICK" = false ]; then
collect "df" df -h
fi

# -- Processes --

section "Processes"
if [ "$IS_MACOS" = true ]; then
collect "ps-cpu" sh -c 'ps -eo pid,ppid,comm,%mem,%cpu | sort -k5 -rn | head -30'
else
collect "ps-cpu" sh -c 'ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head -30'
fi

if [ "$QUICK" = false ]; then
if [ "$IS_MACOS" = true ]; then
collect "ps-mem" sh -c 'ps -eo pid,ppid,comm,%mem,%cpu | sort -k4 -rn | head -30'
collect "top" sh -c 'top -l 1 | head -50'
else
collect "ps-mem" sh -c 'ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head -30'
collect "top" sh -c 'top -b -n 1 | head -50'
fi
fi

# -- GPU --

section "GPU"
collect "nvidia-smi" nvidia-smi

if [ "$QUICK" = false ]; then
collect "nvidia-smi-dmon" nvidia-smi dmon -s pucvmet -c 10
collect "nvidia-smi-query" nvidia-smi --query-gpu=name,utilization.gpu,utilization.memory,memory.total,memory.used,temperature.gpu,power.draw --format=csv
fi

# -- Docker --

section "Docker"
collect "docker-ps" docker ps -a
collect "docker-stats" docker stats --no-stream

if [ "$QUICK" = false ]; then
collect "docker-info" docker info
collect "docker-df" docker system df
fi

# Collect logs for NemoClaw-related containers
for cid in $(docker ps -a --filter "label=com.nvidia.nemoclaw" --format '{{.Names}}' 2>/dev/null || true); do
collect "docker-logs-${cid}" docker logs --tail 200 "$cid"
if [ "$QUICK" = false ]; then
collect "docker-inspect-${cid}" docker inspect "$cid"
fi
done

# -- OpenShell --

section "OpenShell"
collect "openshell-status" openshell status
collect "openshell-sandbox-list" openshell sandbox list
collect "openshell-sandbox-get" openshell sandbox get "$SANDBOX_NAME"
collect "openshell-logs" openshell logs "$SANDBOX_NAME"

if [ "$QUICK" = false ]; then
collect "openshell-gateway-info" openshell gateway info
fi

# -- Onboard session state --

section "Onboard Session"
if [ -n "$ONBOARD_SESSION_HELPER" ] && [ -f "$ONBOARD_SESSION_HELPER" ] && command -v node >/dev/null 2>&1; then
# shellcheck disable=SC2016
collect "onboard-session-summary" node -e '
const helper = require(process.argv[1]);
const summary = helper.summarizeForDebug();
if (!summary) {
process.stdout.write("No onboard session state found.\n");
process.exit(0);
}
process.stdout.write(`${JSON.stringify(summary, null, 2)}\n`);
' "$ONBOARD_SESSION_HELPER"
else
echo " (onboard session helper not available, skipping)"
fi

# -- Sandbox internals (via SSH using openshell ssh-config) --

if command -v openshell &>/dev/null \
&& openshell sandbox list 2>/dev/null \
| awk 'NF { if (tolower($1) == "name") next; print $1 }' \
| grep -Fxq -- "$SANDBOX_NAME"; then
section "Sandbox Internals"

# Build a temporary SSH config so we can run commands inside the sandbox.
# This follows the pattern from OpenShell's own demo.sh.
SANDBOX_SSH_CONFIG=$(mktemp "${TMPDIR_BASE}/nemoclaw-ssh-XXXXXX")
if openshell sandbox ssh-config "$SANDBOX_NAME" >"$SANDBOX_SSH_CONFIG" 2>/dev/null; then
SANDBOX_SSH_HOST="openshell-${SANDBOX_NAME}"
SANDBOX_SSH_KNOWN=$(mktemp "${TMPDIR_BASE}/nemoclaw-ssh-known-XXXXXX")
SANDBOX_SSH_OPTS=(-F "$SANDBOX_SSH_CONFIG" -o StrictHostKeyChecking=accept-new -o "UserKnownHostsFile=$SANDBOX_SSH_KNOWN" -o ConnectTimeout=10)

collect "sandbox-ps" ssh "${SANDBOX_SSH_OPTS[@]}" "$SANDBOX_SSH_HOST" ps -ef
collect "sandbox-free" ssh "${SANDBOX_SSH_OPTS[@]}" "$SANDBOX_SSH_HOST" free -m
if [ "$QUICK" = false ]; then
collect "sandbox-top" ssh "${SANDBOX_SSH_OPTS[@]}" "$SANDBOX_SSH_HOST" 'top -b -n 1 | head -50'
collect "sandbox-gateway-log" ssh "${SANDBOX_SSH_OPTS[@]}" "$SANDBOX_SSH_HOST" tail -200 /tmp/gateway.log
fi
else
warn "Could not generate SSH config for sandbox '${SANDBOX_NAME}', skipping internals"
fi
fi
SCRIPT_PATH="${BASH_SOURCE[0]:-$0}"
case "$SCRIPT_PATH" in
*/*) SCRIPT_DIR="${SCRIPT_PATH%/*}" ;;
*) SCRIPT_DIR="." ;;
esac
SCRIPT_DIR="$(cd "$SCRIPT_DIR" && pwd -P)"
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd -P)"
CLI_JS="${NEMOCLAW_CLI_JS:-$REPO_ROOT/dist/nemoclaw.js}"

# -- Network (full mode only) --

if [ "$QUICK" = false ]; then
section "Network"
if [ "$IS_MACOS" = true ]; then
collect "listening" sh -c 'netstat -anp tcp | grep LISTEN'
collect "ifconfig" ifconfig
collect "routes" netstat -rn
collect "dns-config" scutil --dns
else
collect "ss" ss -ltnp
collect "ip-addr" ip addr
collect "ip-route" ip route
collect "resolv-conf" cat /etc/resolv.conf
if [ -f "$CLI_JS" ]; then
NODE_BIN="${NEMOCLAW_NODE:-${NODE:-}}"
if [ -z "$NODE_BIN" ]; then
NODE_BIN="$(command -v node || true)"
fi
collect "nslookup" nslookup integrate.api.nvidia.com
# shellcheck disable=SC2016
collect "curl-models" sh -c 'code=$(curl -s -o /dev/null -w "%{http_code}" https://integrate.api.nvidia.com/v1/models); echo "HTTP $code"; if [ "$code" -ge 200 ] && [ "$code" -lt 500 ]; then echo "NIM API reachable"; else echo "NIM API unreachable"; exit 1; fi'
collect "lsof-net" sh -c 'lsof -i -P -n 2>/dev/null | head -50'
_dp="$(printf '%s' "${NEMOCLAW_DASHBOARD_PORT:-18789}" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')"
case "$_dp" in *[!0-9]* | '') _dp=18789 ;; esac
[ "$_dp" -ge 1024 ] && [ "$_dp" -le 65535 ] 2>/dev/null || _dp=18789
collect "lsof-dashboard" lsof -i ":${_dp}"
fi

# -- Kernel / IO (full mode only) --

if [ "$QUICK" = false ]; then
section "Kernel / IO"
if [ "$IS_MACOS" = true ]; then
collect "vmstat" vm_stat
collect "iostat" iostat -c 5 -w 1
else
collect "vmstat" vmstat 1 5
collect "iostat" iostat -xz 1 5
if [ -z "$NODE_BIN" ]; then
echo "ERROR: node is required to run NemoClaw diagnostics." >&2
exit 127
fi
exec "$NODE_BIN" "$CLI_JS" debug "$@"
fi

# -- dmesg (always, last 100 lines) --

section "Kernel Messages"
if [ "$IS_MACOS" = true ]; then
collect "system-log" sh -c 'log show --last 5m --predicate "eventType == logEvent" --style compact 2>/dev/null | tail -100'
else
collect "dmesg" sh -c 'dmesg | tail -100'
fi

# ── Produce tarball if requested ─────────────────────────────────

if [ -n "$OUTPUT" ]; then
tar czf "$OUTPUT" -C "$(dirname "$COLLECT_DIR")" "$(basename "$COLLECT_DIR")"
info "Tarball written to ${OUTPUT}"
warn "Known secrets are auto-redacted, but please review for any remaining sensitive data before sharing."
info "Attach this file to your GitHub issue."
fi

echo ""
info "Done. If filing a bug, run with --output and attach the tarball to your issue:"
info " nemoclaw debug --output /tmp/nemoclaw-debug.tar.gz"
exec nemoclaw debug "$@"
Loading
Loading