toga-ai 1.0.410 → 1.0.411

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,9 @@ updated: 2026-07-21
28
28
  - **Share button made real** (src/lib/shareMailto.ts, CallSummary.tsx): Send opens the visitor's mail client via mailto: with recipient/subject/summary body. BDR suite 131 tests green, tsc + eslint clean.
29
29
  - **Parity audit (info → BDR)**: everything ported; enrichment was net-new in BOTH repos; visit route intentionally dropped; TOGA_PUBLIC_TOKEN_URL and NEXT_PUBLIC_ENV are dead even in info.
30
30
  - **Vapi API diagnostics work** with the bearer const at worker2/Worker/Ai/Bdr/Vapi.php:6 (GET /call/{id} endedReason, GET /assistant/{id} config).
31
- - /capture published 4 doc updates (web-funnel-app, safe-call-loop-testing, vapi-webhook-handler, vapi-integration).
31
+ - /capture published 4 doc updates (web-funnel-app, safe-call-loop-testing, vapi-webhook-handler, vapi-integration) + a delta capture for the deploy findings below.
32
+ - **Amplify app EXISTS now** (tcox deployed): branch `_dev-sandbox` at dev-sandbox.d65bvvjrww97g.amplifyapp.com. **Root cause of "guard notice despite valid ?hsContactId" found and fixed**: old amplify.yml only handled `_production`/`_beta` with `cp` of committed .env files (which rightly don't exist) and had no `_dev-sandbox` case — every deploy shipped with ZERO server env vars → HubSpot prefetch throws → empty lead ref → guard blocks. Fix committed (`e17d804`): official Amplify recipe `env | grep -E '^(HUBSPOT_|TOGA_|NEXT_PUBLIC_|RATE_LIMIT_)' >> .env.production` at build; the 7 vars live in the Amplify console (values: info/.env.local + TOGA_WORKER_URL=https://worker.togahub.com/ + GA id).
33
+ - **Deployed-site triage method** proven: probe `GET <site>/api/contact?hsContactId=<id>` — 500 "Failed to fetch contact" = server env missing; 400 = bad id; contact JSON = env fine (then suspect the rate-limiter's hsContactId-stripping soft-degrade).
32
34
 
33
35
  ## What did NOT work — DO NOT RETRY THESE
34
36
  - **Answering the test call silently** → 8 seconds of mutual silence, Vapi `endedReason=customer-ended-call`, empty transcript. The healthcare assistant uses `firstMessageMode=assistant-waits-for-user` (deliberate: first-phoneme timing for voicemail/iPhone screening). **Testers must say "Hello?" first.**
@@ -48,8 +50,9 @@ updated: 2026-07-21
48
50
  ## Current file state
49
51
  | File | Status | Notes |
50
52
  |------|--------|-------|
51
- | BDR enrichment + prefill (hubspot/toga/leadSink/page + tests) | committed by tcox (BDR-Phase-2), merge state to _dev-sandbox unverified | live-proven on contact 248 |
52
- | BDR fast-dial + anon guard + share (workerDialer, callbackService, CallNow, Schedule, schema, default, shareMailto, CallSummary, .env.example + 3 test files) | UNCOMMITTED in C:\WWW\BDR | 131 tests green; suggested msg: "feat: fast dial, anonymous submit guard, real share via mailto" |
53
+ | BDR enrichment + prefill | committed `6a97dd1` on `_dev-sandbox` | live-proven on contact 248 |
54
+ | BDR fast-dial + anon guard + share | committed `6d52b53` on `_dev-sandbox` | 131 tests green |
55
+ | BDR amplify.yml env fix | committed `e17d804` on `_dev-sandbox`, pushed (build triggered) | official env-passthrough recipe; branch model: **_dev-sandbox is source of truth, BDR-Phase-2 retired** |
53
56
  | BDR/.env.local | TOGA_WORKER_URL added (local only) | dev server restart needed to load |
54
57
  | dbchanges2 feature/ai-bdr-test-campaign (e99a367) | pushed; PR must be CLOSED UNMERGED | superseded + buggy (see above) |
55
58
  | Prod Client_True data | campaign 2 dateEnd=2026-07-28; all campaign-2 contacts isOkayToCall=0 EXCEPT 248 | restore = go-live switch; exclude ids 120/132/134/146/155 |
@@ -62,12 +65,12 @@ updated: 2026-07-21
62
65
  - **Anonymous submits blocked with notice** (matches info) per tcox's directive that anything diverging from info needs correcting.
63
66
 
64
67
  ## Blockers
65
- - **Amplify app still doesn't exist** (ClickUp 868kdf4tj, Jeff) — 7 env vars now: the 5 server-side + NEXT_PUBLIC_GA_MEASUREMENT_ID + TOGA_WORKER_URL.
68
+ - **Amplify env vars must be saved in the console BEFORE a build starts** (vars added mid-build don't reach it — "Redeploy this version" required). At save time: awaiting tcox confirming the 7 vars are in the console + a green build of `e17d804`. Deployed `/api/contact` still returned 500 at last probe.
66
69
  - **ContactAttempts ACL grant** (backend, DB config only) — gates real summaries + live status.
67
- - **Business decision on the restore SQL** (resumes cold-calling ~70 prospects).
70
+ - **Business decision on the restore SQL** (resumes cold-calling ~70 prospects; exclude DNC ids 120/132/134/146/155).
68
71
 
69
72
  ## Exact next step
70
- > In `C:\WWW\BDR`: commit the uncommitted batch ("feat: fast dial, anonymous submit guard, real share via mailto"), push to BDR-Phase-2, merge to _dev-sandbox. Then restart the dev server (`npm run dev`) and submit Call Now — the phone should ring within seconds (fast-dial's first live test). If it takes ~a minute instead, check the dev console for a `[workerDialer]` warning: that means the worker's direct-action endpoint rejected the trigger and the cron fallback placed the call.
73
+ > Confirm the 7 env vars are saved in the Amplify console, then redeploy branch `_dev-sandbox` (build must START after the vars are saved). When green, probe `https://dev-sandbox.d65bvvjrww97g.amplifyapp.com/api/contact?hsContactId=131770626674` — contact JSON = fixed. Then open `https://dev-sandbox.d65bvvjrww97g.amplifyapp.com/?hsContactId=131770626674` and submit Call Now: this is simultaneously the deployed smoke test AND the fast-dial first live run (phone rings in seconds from +1 331-244-5958 — ANSWER AND SPEAK FIRST).
71
74
 
72
75
  ---
73
76
  _Saved by /session-save on 2026-07-21_
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toga-ai",
3
- "version": "1.0.410",
3
+ "version": "1.0.411",
4
4
  "description": "TOGA Technology Team Claude Knowledge System — shared AI coding harness with skills, knowledge base CLI, and project installer for Claude Code.",
5
5
  "keywords": [
6
6
  "claude",