← back to Nationalrealestate
fix(tsc): broker_website_discovery — verifyAgentSite param license_state (unbreaks repo-wide tsc)
db793c98dc0dd7417ef25d45118bd8a7bbd032bf · 2026-08-21 06:35:14 -0700 · Steve Abrams
Pre-existing TS2345 at lines 183/259: BrokerRow has license_state but verifyAgentSite
required 'state'. Renamed the param + prompt usage to license_state. Repo-wide tsc now 0 errors.
Found + fixed under /yoloforever cycle 2 (Cody hole #3). Local only, no push.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
M src/enrich/broker_website_discovery.ts
Diff
commit db793c98dc0dd7417ef25d45118bd8a7bbd032bf
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Fri Aug 21 06:35:14 2026 -0700
fix(tsc): broker_website_discovery — verifyAgentSite param license_state (unbreaks repo-wide tsc)
Pre-existing TS2345 at lines 183/259: BrokerRow has license_state but verifyAgentSite
required 'state'. Renamed the param + prompt usage to license_state. Repo-wide tsc now 0 errors.
Found + fixed under /yoloforever cycle 2 (Cody hole #3). Local only, no push.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
src/enrich/broker_website_discovery.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/enrich/broker_website_discovery.ts b/src/enrich/broker_website_discovery.ts
index bb05e68..6f10d58 100644
--- a/src/enrich/broker_website_discovery.ts
+++ b/src/enrich/broker_website_discovery.ts
@@ -123,7 +123,7 @@ async function searchWeb(q: string): Promise<{ hits: Hit[]; engine: string }> {
// LOCAL identity gate — pick the ONE candidate that is THIS agent's own site, or none.
async function verifyAgentSite(
- agent: { name: string; firm: string | null; city: string | null; state: string },
+ agent: { name: string; firm: string | null; city: string | null; license_state: string },
candidates: Hit[],
): Promise<{ index: number; confidence: number }> {
if (!candidates.length) return { index: -1, confidence: 0 };
@@ -131,7 +131,7 @@ async function verifyAgentSite(
const prompt = `You are verifying real-estate agent websites. The agent is:
name: ${agent.name}
firm: ${agent.firm || '(unknown)'}
- city/state: ${agent.city || '?'}, ${agent.state}
+ city/state: ${agent.city || '?'}, ${agent.license_state}
Here are candidate search results (index. domain — title):
${list}
← 58652bd auto-data-snapshot: 2026-08-21T03:25:40 (1 data files) — dat
·
back to Nationalrealestate
·
chore: v0.21.0 (session close — Whatcom feed + tsc fix) 7e7a803 →