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/heartbeat_state.sh
#!/usr/bin/env bash
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'
auth=(-H "Authorization: Bearer $AUTH_TOKEN")
fetch(){ curl -fsS "${auth[@]}" "$1"; }
fetch_post(){ curl -fsS -X POST "${auth[@]}" -H 'Content-Type: application/json' "$1" -d "$2"; }
health=$(fetch "$BASE_URL/healthz")
boards=$(fetch "$BASE_URL/api/v1/agent/boards")
all_tasks=$(fetch "$BASE_URL/api/v1/agent/boards/$BOARD_ID/tasks")
inbox=$(fetch "$BASE_URL/api/v1/agent/boards/$BOARD_ID/tasks?status=inbox")
inprog=$(fetch "$BASE_URL/api/v1/agent/boards/$BOARD_ID/tasks?status=in_progress")
review=$(fetch "$BASE_URL/api/v1/agent/boards/$BOARD_ID/tasks?status=review")
hb=$(fetch_post "$BASE_URL/api/v1/agent/heartbeat" "{\"agent_name\":\"$AGENT_NAME\",\"agent_id\":\"$AGENT_ID\",\"board_id\":\"$BOARD_ID\"}")
board_mem=$(fetch "$BASE_URL/api/v1/agent/boards/$BOARD_ID/memory?limit=10")
group_snap=$(fetch "$BASE_URL/api/v1/boards/$BOARD_ID/group-snapshot?include_self=true")
group_mem=$(fetch "$BASE_URL/api/v1/boards/$BOARD_ID/group-memory?limit=10")
printf 'health_ok=%s\n' "$(printf '%s' "$health" | jq -r '.ok')"
printf 'boards_total=%s\n' "$(printf '%s' "$boards" | jq -r '.total')"
printf 'board_objective=%s\n' "$(printf '%s' "$boards" | jq -r --arg id "$BOARD_ID" '.items[] | select(.id==$id) | (.objective // "null")')"
printf 'board_status=%s\n' "$(printf '%s' "$boards" | jq -r --arg id "$BOARD_ID" '.items[] | select(.id==$id) | (.status // "null")')"
printf 'goal_confirmed=%s\n' "$(printf '%s' "$boards" | jq -r --arg id "$BOARD_ID" '.items[] | select(.id==$id) | .goal_confirmed')"
printf 'group_id=%s\n' "$(printf '%s' "$boards" | jq -r --arg id "$BOARD_ID" '.items[] | select(.id==$id) | (.board_group_id // "null")')"
printf 'tasks_total=%s\n' "$(printf '%s' "$all_tasks" | jq -r '.total')"
printf 'inbox_total=%s\n' "$(printf '%s' "$inbox" | jq -r '.total')"
printf 'in_progress_total=%s\n' "$(printf '%s' "$inprog" | jq -r '.total')"
printf 'review_total=%s\n' "$(printf '%s' "$review" | jq -r '.total')"
printf 'heartbeat_last_seen_at=%s\n' "$(printf '%s' "$hb" | jq -r '.last_seen_at')"
printf 'board_memory_latest=%s\n' "$(printf '%s' "$board_mem" | jq -r '([.items[] | select(.is_chat==false)][0].created_at) // "none"')"
printf 'group_snapshot_boards=%s\n' "$(printf '%s' "$group_snap" | jq -r '(.boards | length)')"
printf 'group_memory_latest=%s\n' "$(printf '%s' "$group_mem" | jq -r '.items[0].created_at // "none"')"
printf 'group_memory_latest_preview=%s\n' "$(printf '%s' "$group_mem" | jq -r '.items[0].content // ""' | tr '\n' ' ' | cut -c1-260)"