Compare commits
1 commit
ab28d5baeb
...
ccbaec37ca
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ccbaec37ca |
1 changed files with 4 additions and 1 deletions
|
|
@ -46,7 +46,10 @@ WORKTREE="/tmp/${PROJECT_NAME}-planner-run"
|
|||
log() { echo "[$(date -u +%Y-%m-%dT%H:%M:%S)Z] $*" >> "$LOG_FILE"; }
|
||||
|
||||
# Ensure AGENT_IDENTITY is set for profile functions
|
||||
AGENT_IDENTITY="${FORGE_PLANNER_TOKEN:+$(curl -sf -H "Authorization: token ${FORGE_PLANNER_TOKEN}" "${FORGE_URL:-http://localhost:3000}/api/v1/user" 2>/dev/null | jq -r '.login // empty' 2>/dev/null || true):${AGENT_IDENTITY:-}}"
|
||||
if [ -z "${AGENT_IDENTITY:-}" ] && [ -n "${FORGE_PLANNER_TOKEN:-}" ]; then
|
||||
AGENT_IDENTITY=$(curl -sf -H "Authorization: token ${FORGE_PLANNER_TOKEN}" \
|
||||
"${FORGE_URL:-http://localhost:3000}/api/v1/user" 2>/dev/null | jq -r '.login // empty' 2>/dev/null || true)
|
||||
fi
|
||||
|
||||
# ── Guards ────────────────────────────────────────────────────────────────
|
||||
check_active planner
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue