Skip to content

Commit 7c80a1f

Browse files
fix(install): nuke stale bridge — git pull fails silently on client machines (#33)
* feat(meet): add --calendar flag for calendar selection + fix typecheck - --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]> * feat(meet): resolve calendar by display name + show account in output --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]> * fix(leads): strip pricing/payment language from recap prompts 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]> * fix(som): DJ Outreach V1→V2 in SOM campaign preset Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * feat(venues): search + enrich commands, --force on all delete commands - `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]> * feat(leads): add --prepare flag to pulse-all with tasks, reqs, and 3 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]> * docs(pulse): update recipe with --recap, --prepare, and meeting signal 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]> * feat(venues): touch score tracking + artist discovery CLI - 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]> * fix(venues): fix searchPlaces location duplication causing empty results 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]> * feat(venues): rewire discover to use existing venue-outreach pipeline 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]> * feat(pulse): include Negotiating leads in pulse-all default scorecard - 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]> * fix(daemon): auto-update + purge stale DO URLs on iris-daemon start 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]> * fix(update): purge stale DO URLs in config on iris update 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]> * fix(install): nuke stale bridge on update — git pull fails silently git pull --quiet 2>/dev/null || true swallowed all errors, leaving clients with old daemon.js hardcoded to DO URL. Now: git reset --hard before pull, re-clone on failure, and safety check that daemon.js no longer contains ondigitalocean.app after update. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
1 parent b760afd commit 7c80a1f

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

‎install‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,20 @@ install_bridge() {
997997
if [ -d "$bridge_dir" ] && [ -f "$bridge_dir/index.js" ] && [ -f "$bridge_dir/daemon.js" ]; then
998998
# Update existing installation
999999
print_message info "${MUTED}Bridge already installed, updating...${NC}"
1000-
(cd "$bridge_dir" && git pull --quiet 2>/dev/null && npm install --production --silent 2>/dev/null) || true
1000+
if ! (cd "$bridge_dir" && git reset --hard HEAD 2>/dev/null && git pull --quiet 2>/dev/null && npm install --production --silent 2>/dev/null); then
1001+
# git pull failed (dirty tree, conflicts, detached HEAD) — nuke and re-clone
1002+
print_message info "${MUTED}Bridge update failed, re-cloning...${NC}"
1003+
rm -rf "$bridge_dir"
1004+
git clone --quiet https://github.com/FREELABEL/iris-daemon.git "$bridge_dir" 2>/dev/null && \
1005+
(cd "$bridge_dir" && npm install --production --silent 2>/dev/null) || true
1006+
fi
1007+
# Safety check: if daemon.js still has stale DO URL, force re-clone
1008+
if grep -q 'ondigitalocean\.app' "$bridge_dir/daemon.js" 2>/dev/null; then
1009+
print_message info "${MUTED}Stale daemon detected, re-cloning...${NC}"
1010+
rm -rf "$bridge_dir"
1011+
git clone --quiet https://github.com/FREELABEL/iris-daemon.git "$bridge_dir" 2>/dev/null && \
1012+
(cd "$bridge_dir" && npm install --production --silent 2>/dev/null) || true
1013+
fi
10011014
bridge_updated=true
10021015
else
10031016
# Fresh clone from public repo

0 commit comments

Comments
 (0)