Skip to content

fix(update): iris update now purges stale DO URLs from config - #32

Merged
mayoalexander merged 15 commits into
mainfrom
dev
May 14, 2026
Merged

mayoalexander merged 15 commits into
mainfrom
dev

Conversation

@mayoalexander

Copy link
Copy Markdown

Summary

  • iris update now fixes ~/.iris/config.json if it still points to dead DO/heyiris endpoints
  • Combined with the bridge git pull that already happens during update, clients get both new daemon code AND fixed config

Context

Clients running iris update got the new CLI binary but their daemon config still pointed to fl-iris-api-v5-mnmol.ondigitalocean.app. This caused ENOTFOUND on daemon start — 3 separate bug reports (#95615, #95614, #94207).

Test plan

  • Set api_url to https://fl-iris-api-v5-mnmol.ondigitalocean.app in ~/.iris/config.json
  • Run iris update → config should be rewritten to https://freelabel.net

🤖 Generated with Claude Code

mayoalexander and others added 15 commits May 13, 2026 17:29
- --calendar flag passes calendar_id to create_event (e.g. 'primary', 'work@group...')
- Shows Calendar ID in output when specified
- Fix: home → homeDir typo in installation/index.ts

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
--calendar now accepts friendly names (e.g. "Meetings") — resolves
via get_calendars API with exact then fuzzy match. Falls back to raw
ID if it contains @ or is "primary". Shows available calendars on
mismatch. --account shown in output for clarity.

Usage: iris leads meet 65 --at ... --account [email protected] --calendar Meetings

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Recap emails now focus only on production progress — what was built,
what's next, what we need from the client. No pricing, billing, or
agreement mentions.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- `iris venues search "concert venues Dallas TX"` — Serper Places search via iris-api
- `iris venues search ... --save` — auto-create venue records from results
- `iris venues enrich <id>` — backfill Google Places data (rating, phone, address)
- `iris venues enrich all` — batch enrich all venues missing data
- `iris venues delete --force/-y` — skip confirmation (MCP/Cowork compatible)
- Added --force/-y to ALL 15 platform delete commands for MCP/Cowork compatibility:
  app, atlas-datasets, automation, boards, brands, hive, leads, outreach-campaign,
  outreach, products, programs, services, som-campaign, venues, workflows

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…action items

Shows lowest-pulse leads first with per-lead stats (tasks pending/overdue,
requirements passing/total, KB count, meeting score) and top 3 prioritized
CLI commands to improve each lead's pulse.

Fixed task/requirement endpoint parsing (tasks wrapped in .data.tasks,
requirements at top level not .data).

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Adds recap status updates (72h throttle, production-only), prepare
dashboard (tasks/reqs/KB/meetings + 3 actions), and updated signal
weights including deal_health and meeting_engagement at 7% each.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- search dedup: shows [EXISTS xN] / [NEW] badges, increments search_count on save
- list --sort trending|rating|newest with search count badges
- get shows search_count + last_searched_at
- discover <artist>: AI-powered venue discovery via similar artist touring patterns
  uses deepResearch + searchPlaces, groups results by city, --save to persist

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
CLI was passing full query as both query and location params, causing
SearchService to send "query in query" to Serper. Now extracts location
hint from last 2 words of query.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Replaces the Serper-dependent discover command with a thin wrapper around
the proven venue-outreach.spec.ts Playwright pipeline (Eventbrite + DDG).
No API credits needed. Full pipeline: AI tour-seed → discover → enrich → email.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Add "In Negotiation" and "Negotiating" to pulse-all default statuses
- Relax eligibility filter: Negotiating leads with phone numbers pass
  even with social-only emails (hand-picked, not scraped)
- Payment gates remain hardcoded to Won only — no billing impact
- Tested on Propane (anomalyco#21658) and Trapaholics (anomalyco#21665)

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Clients installed before Railway migration have old daemon.js with no
stale-URL migration and config.json pointing to dead DO endpoints.
Now daemonctl start: git pulls latest code, fixes config URLs, then
launches. Also purges all main.heyiris.io / apiv2.heyiris.io /
ondigitalocean.app refs from scaffold docs that client AI agents read.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
iris update now fixes ~/.iris/config.json if it still points to dead
DO/heyiris endpoints. Combined with the bridge git pull that already
happens, clients get both new daemon code AND fixed config in one go.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings May 14, 2026 16:56
@mayoalexander
mayoalexander merged commit b760afd into main May 14, 2026
0 of 3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the IRIS CLI upgrade flow to repair stale daemon API URLs in the user config after an iris update.

Changes:

  • Adds a post-update config rewrite for stale DigitalOcean and heyiris API URLs.
  • Logs when the daemon config URL is fixed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +102 to +107
// Fix stale API URLs in daemon config (pre-Railway migration)
const configFile = `${home}/.iris/config.json`
const fixResult = await $`test -f ${configFile} && grep -qE 'ondigitalocean\\.app|main\\.heyiris\\.io|apiv2\\.heyiris\\.io' ${configFile} 2>/dev/null && sed -i.bak -e 's|https://[^"]*ondigitalocean\\.app[^"]*|https://freelabel.net|g' -e 's|https://main\\.heyiris\\.io[^"]*|https://freelabel.net|g' -e 's|https://apiv2\\.heyiris\\.io[^"]*|https://freelabel.net|g' ${configFile} && rm -f ${configFile}.bak && echo "config-fixed"`.nothrow().quiet().text()
if (fixResult.includes("config-fixed")) {
prompts.log.info("Fixed stale API URL → freelabel.net")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants