Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .opencode/skill/iris-platform/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ iris schedules list --agent-id <new-agent-id>
|----------|---------|
| `IRIS_API_KEY` | Authentication token (or use `iris auth login`) |
| `IRIS_USER_ID` | Your numeric user ID (needed for agents, bloqs, workflows) |
| `IRIS_FL_API_URL` | Override API base (default: `https://apiv2.heyiris.io`) |
| `IRIS_FL_API_URL` | Override API base (default: `https://raichu.heyiris.io`) |
| `IRIS_API_URL` | Override IRIS API URL (default: `https://iris-api.heyiris.io`) |

---
Expand Down
14 changes: 7 additions & 7 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ case "${1:-status}" in
-H "Authorization: Bearer $_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"name\": \"$_HLABEL\", \"capabilities\": {\"docker\": $_HDOCK}}" \
"https://apiv2.heyiris.io/api/v1/hive/register-node" 2>/dev/null || echo '{}')
"https://raichu.heyiris.io/api/v1/hive/register-node" 2>/dev/null || echo '{}')
_NKEY=$(echo "$_RESP" | jq -r '.node_key // empty' 2>/dev/null || \
echo "$_RESP" | python3 -c "import sys,json; print(json.load(sys.stdin).get('node_key',''))" 2>/dev/null || \
echo "$_RESP" | sed -n 's/.*"node_key"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')
Expand Down Expand Up @@ -1126,7 +1126,7 @@ case "${1:-status}" in
-H "Authorization: Bearer $SDK_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"name\": \"$HOSTNAME_LABEL\", \"capabilities\": {\"docker\": $HAS_DOCKER}}" \
"https://apiv2.heyiris.io/api/v1/hive/register-node" 2>/dev/null || echo "000")
"https://raichu.heyiris.io/api/v1/hive/register-node" 2>/dev/null || echo "000")
RESP=$(cat "$REG_TMP" 2>/dev/null || echo '{}'); rm -f "$REG_TMP"
NODE_KEY=$(echo "$RESP" | jq -r '.node_key // empty' 2>/dev/null || \
echo "$RESP" | python3 -c "import sys,json; print(json.load(sys.stdin).get('node_key',''))" 2>/dev/null || \
Expand Down Expand Up @@ -1211,7 +1211,7 @@ CYAN='\033[0;36m'; GREEN='\033[0;32m'; RED='\033[0;31m'; MUTED='\033[0;2m'; NC='
IRIS_DIR="$HOME/.iris"
SDK_ENV="$IRIS_DIR/sdk/.env"
CONFIG_JSON="$IRIS_DIR/config.json"
API_BASE="https://apiv2.heyiris.io"
API_BASE="https://raichu.heyiris.io"

# Parse flags
PRE_TOKEN="" ; PRE_USER_ID=""
Expand Down Expand Up @@ -2071,7 +2071,7 @@ ENVFILE
-H "Authorization: Bearer $SDK_TOKEN" \
-H "Content-Type: application/json" \
--data-raw "{\"name\": \"$(echo "$HOSTNAME_LABEL" | sed 's/[\"\\]/\\&/g')\", \"capabilities\": {\"docker\": $HAS_DOCKER}}" \
"https://apiv2.heyiris.io/api/v1/hive/register-node" 2>/dev/null || echo '{}')
"https://raichu.heyiris.io/api/v1/hive/register-node" 2>/dev/null || echo '{}')
NODE_KEY=$(json_field "$NODE_RESPONSE" "node_key")
if [ -n "$NODE_KEY" ] && [ "$NODE_KEY" != "null" ]; then
mkdir -p "$HOME/.iris"
Expand Down Expand Up @@ -2106,7 +2106,7 @@ if [ "$tty_available" = "true" ] && [ -z "$pre_token" ]; then
echo -e ""
echo -e "${MUTED} Sending verification code to ${NC}${USER_EMAIL}${MUTED}...${NC}"

SEND_RESPONSE=$(curl -s --max-time 15 -X POST https://apiv2.heyiris.io/api/v1/auth/send-login-code \
SEND_RESPONSE=$(curl -s --max-time 15 -X POST https://raichu.heyiris.io/api/v1/auth/send-login-code \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data-raw "{\"email\": \"$(echo "$USER_EMAIL" | sed 's/[\"\\]/\\&/g')\", \"method\": \"with_login_code\", \"expiration_minutes\": 30, \"auto_create\": true}" 2>/dev/null || echo '{"success":false,"error":"Network error"}')
Expand Down Expand Up @@ -2134,7 +2134,7 @@ if [ "$tty_available" = "true" ] && [ -z "$pre_token" ]; then
echo -e ""
echo -e "${MUTED} Verifying...${NC}"

LOGIN_RESPONSE=$(curl -s --max-time 15 -X POST https://apiv2.heyiris.io/api/v1/auth/login-with-code \
LOGIN_RESPONSE=$(curl -s --max-time 15 -X POST https://raichu.heyiris.io/api/v1/auth/login-with-code \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data-raw "{
Expand Down Expand Up @@ -2180,7 +2180,7 @@ ENVFILE
-H "Authorization: Bearer $SDK_TOKEN" \
-H "Content-Type: application/json" \
--data-raw "{\"name\": \"$(echo "$HOSTNAME_LABEL" | sed 's/[\"\\]/\\&/g')\", \"capabilities\": {\"docker\": $HAS_DOCKER}}" \
"https://apiv2.heyiris.io/api/v1/hive/register-node" 2>/dev/null || echo '{}')
"https://raichu.heyiris.io/api/v1/hive/register-node" 2>/dev/null || echo '{}')
NODE_KEY=$(json_field "$NODE_RESPONSE" "node_key")
if [ -n "$NODE_KEY" ] && [ "$NODE_KEY" != "null" ]; then
mkdir -p "$HOME/.iris"
Expand Down
2 changes: 1 addition & 1 deletion install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ $ErrorActionPreference = "Stop"
$IRIS_DIR = "$env:USERPROFILE\.iris"
$SDK_ENV = "$IRIS_DIR\sdk\.env"
$CONFIG_JSON = "$IRIS_DIR\config.json"
$API_BASE = "https://apiv2.heyiris.io"
$API_BASE = "https://raichu.heyiris.io"

function Get-JsonField {
param([string]$Json, [string]$Field)
Expand Down
2 changes: 1 addition & 1 deletion packages/opencode/src/cli/cmd/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const AuthListCommand = cmd({

const IRIS_DIR = path.join(os.homedir(), ".iris")
const SDK_ENV_PATH = path.join(IRIS_DIR, "sdk", ".env")
const IRIS_AUTH_API = process.env.IRIS_AUTH_API_URL ?? "https://apiv2.heyiris.io"
const IRIS_AUTH_API = process.env.IRIS_AUTH_API_URL ?? "https://raichu.heyiris.io"

async function irisLoginStatus(): Promise<{ authenticated: boolean; token?: string; userId?: string }> {
try {
Expand Down
Loading
Loading