HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //tmp/hb_check3.sh
set -euo pipefail
BASE_URL='https://altaira.panomity.com/mc'
AUTH_TOKEN='ztbHKAe1UYI66HCFvSAyo4wrAAD6frNCyAZ67aKVeSE'
BOARD_ID='2857b7e4-abd0-41ae-8185-4bc3c37cfee1'
AGENT_ID='e4c57543-6899-4be1-b449-f6cf886c39f8'
AGENT_NAME='altaira'
HDR=(-H "Authorization: Bearer $AUTH_TOKEN")
json() { curl -fsS "${HDR[@]}" "$1"; }
post() { curl -fsS -X POST "${HDR[@]}" -H 'Content-Type: application/json' "$1" -d "$2"; }
HEALTH=$(curl -fsS "$BASE_URL/healthz")
BOARDS=$(json "$BASE_URL/api/v1/agent/boards")
TASKS=$(json "$BASE_URL/api/v1/agent/boards/$BOARD_ID/tasks")
INBOX=$(json "$BASE_URL/api/v1/agent/boards/$BOARD_ID/tasks?status=inbox")
INPROG=$(json "$BASE_URL/api/v1/agent/boards/$BOARD_ID/tasks?status=in_progress")
REVIEW=$(json "$BASE_URL/api/v1/agent/boards/$BOARD_ID/tasks?status=review")
MEM=$(json "$BASE_URL/api/v1/agent/boards/$BOARD_ID/memory?is_chat=false&limit=5")
GROUP=$(json "$BASE_URL/api/v1/boards/$BOARD_ID/group-memory?limit=8")
HB=$(post "$BASE_URL/api/v1/agent/heartbeat" "{\"agent_id\":\"$AGENT_ID\",\"agent_name\":\"$AGENT_NAME\",\"board_id\":\"$BOARD_ID\"}")
jq -n \
  --argjson health "$HEALTH" \
  --argjson boards "$BOARDS" \
  --argjson tasks "$TASKS" \
  --argjson inbox "$INBOX" \
  --argjson inprog "$INPROG" \
  --argjson review "$REVIEW" \
  --argjson mem "$MEM" \
  --argjson group "$GROUP" \
  --argjson hb "$HB" \
  '{health:$health,board:($boards.items[]|select(.id=="'"$BOARD_ID"'")),tasks_total:$tasks.total,inbox_total:$inbox.total,in_progress_total:$inprog.total,review_total:$review.total,latest_board_memory:($mem.items[0]//null),latest_group_memory:($group.items[0]//null),heartbeat:$hb}'