@elitedcs/ghl-mcp 3.1.1 → 3.2.0

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.2.0 — Deep trigger typing
4
+
5
+ **173 tools across 36 modules. Bundle: 248.4 KB.**
6
+
7
+ v3.1.0 made all 57 native trigger types READ cleanly via a permissive fallback. v3.2.0 deeply types 9 more of the most common ones — `form_submission`, `opportunity_created`, `opportunity_changed`, `opportunity_status_changed`, `payment_received`, `inbound_webhook`, `mailgun_email_event`, `note_add`, `task_added` — bringing typed coverage from **4 / 57 (7%) to 13 / 57 (23%)**.
8
+
9
+ For Claude that means: when you ask it to read, build, or edit a workflow using one of these triggers, it now knows the discriminated trigger type AND the field paths each one supports (e.g., `opportunity.pipelineId`, `opportunity.monetaryValue`, `form.id`, `mailgun.event`, etc.). Less guessing, fewer rejected payloads.
10
+
11
+ ### Shared trigger-schema module
12
+ - `src/trigger-schemas.ts` (NEW): single source of truth for `WorkflowTriggerSchema`. Both the read path (`workflow-builder-client.ts`) and the write path (`tools/workflow-builder.ts`) now import from this module instead of duplicating definitions.
13
+ - Bundle shrank from 249.7 KB → 248.4 KB thanks to the dedup.
14
+
15
+ ### Field paths documented per trigger
16
+ - Each typed trigger's `field` is `z.string()` with a `.describe()` listing the known field paths (extracted from `templates/trigger-schemas.json`, captured 2026-05-14). Permissive enough that new GHL fields don't crash reads, structured enough that the LLM knows what fields exist.
17
+
18
+ ### Coverage delta
19
+ | State | Typed | Reachable-but-untyped | Total |
20
+ |---|---:|---:|---:|
21
+ | Before v3.1.0 | 4 | 0 (reads crashed) | 57 |
22
+ | v3.1.0 | 4 | 53 | 57 |
23
+ | v3.2.0 | **13** | **44** | 57 |
24
+
25
+ ### Round-trip verified
26
+ - Real `form_submission` workflow from QA Test Clinic v3 parses cleanly through the new typed variant.
27
+ - 8 synthetic typed-trigger samples match their respective variants and are correctly rejected by sibling variants (discrimination works as expected).
28
+
29
+ ### Files changed
30
+ - `src/trigger-schemas.ts` — NEW: 13 typed trigger variants + `UnknownTriggerSchema` fallback in a single module.
31
+ - `src/workflow-builder-client.ts` — removed inline trigger schemas, imports from shared module.
32
+ - `src/tools/workflow-builder.ts` — removed inline trigger schemas, imports from shared module.
33
+
3
34
  ## 3.1.1 — Auto-update visibility
4
35
 
5
36
  **173 tools across 36 modules. Bundle: 249.7 KB.**
package/README.md CHANGED
@@ -350,7 +350,7 @@ Re-run setup_ghl_mcp with workflow builder:
350
350
 
351
351
  **Supported action types:** `sms`, `email`, `add_contact_tag`, `remove_contact_tag`, `update_contact_field`, `wait`, `if_else`, `webhook`, `create_opportunity`, `custom_code`, `add_notes`, `internal_notification`, `task-notification`, `remove_from_workflow`, and more.
352
352
 
353
- **Supported trigger types:** All 57 native GHL trigger types read cleanly (form_submission, payment_received, opportunity_created/changed/status_changed, inbound_webhook, contact_tag, appointment, customer_reply, and 50 more). 4 are deeply typed; the rest pass through a permissive schema so workflows never fail to read regardless of trigger type. Plus 434 marketplace trigger entries across 85 third-party apps — query them via `get_trigger_registry`.
353
+ **Supported trigger types:** All 57 native GHL trigger types read cleanly. **13 are deeply typed** with documented field paths (contact_tag, customer_reply, appointment, pipeline_stage_updated, form_submission, opportunity_created, opportunity_changed, opportunity_status_changed, payment_received, inbound_webhook, mailgun_email_event, note_add, task_added). The other 44 pass through a permissive schema so workflows never fail to read regardless of trigger type. Plus 434 marketplace trigger entries across 85 third-party apps — query them via `get_trigger_registry`.
354
354
 
355
355
  ### Pipeline Builder (5 tools) — Internal API
356
356