mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 08:24:20 +01:00
The managed Supabase Cloud project (ohkueislstxomdjavyhs) is retired; the self-hosted instance at supabase.orangecat.ch on the Hetzner box is the single source of truth. Repoint the image host + setup scripts, rewrite the agent/dev guidance to use the self-host directly (not the Supabase MCP, which only reaches the retired cloud), update active docs, exit retired cloud-Management-API scripts behind a RETIRED guard, env-ify direct-connect scripts, gitignore .env-backups, and add a founder-run DECOMMISSION-CLOUD runbook. No live code path references the managed project anymore. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
26 lines
1.0 KiB
Bash
26 lines
1.0 KiB
Bash
#!/bin/bash
|
|
|
|
SERVICE_KEY="${SUPABASE_SERVICE_ROLE_KEY}"
|
|
BASE_URL="${NEXT_PUBLIC_SUPABASE_URL:?NEXT_PUBLIC_SUPABASE_URL is required (self-hosted: https://supabase.orangecat.ch) - managed cloud retired}"
|
|
|
|
echo "=== Listing all messaging-related functions ==="
|
|
curl -s "${BASE_URL}/rest/v1/rpc/" \
|
|
-H "apikey: ${SERVICE_KEY}" \
|
|
-H "Authorization: Bearer ${SERVICE_KEY}" 2>&1 | grep -i "message\|conversation\|chat\|read" || echo "Could not list"
|
|
|
|
echo ""
|
|
echo "=== Testing mark_conversation_read ==="
|
|
curl -s "${BASE_URL}/rest/v1/rpc/mark_conversation_read" \
|
|
-H "apikey: ${SERVICE_KEY}" \
|
|
-H "Authorization: Bearer ${SERVICE_KEY}" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"p_conversation_id": "39084687-d46f-48ca-a577-1fa0c1d4d7e2"}' | jq .
|
|
|
|
echo ""
|
|
echo "=== Testing send_message ==="
|
|
curl -s "${BASE_URL}/rest/v1/rpc/send_message" \
|
|
-H "apikey: ${SERVICE_KEY}" \
|
|
-H "Authorization: Bearer ${SERVICE_KEY}" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"p_conversation_id": "39084687-d46f-48ca-a577-1fa0c1d4d7e2", "p_content": "Test message"}' | jq .
|