Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -140,22 +140,22 @@ The script self-bootstraps on `DOMContentLoaded`:
the URL and merges them with the stored first-touch attribution.
- Persists merged attribution to `localStorage["__tcm_attr"]` so multi-page
flows hit the same lead source.
- Auto-binds any `<form data-toolctrl-lead>` on the page — submitting
- Auto-binds any `<form data-hivegrid-lead>` on the page — submitting
POSTs to `/api/leads/capture` instead of the form's action.
Imperative API exposed as `window.toolctrlMarketing`:
Imperative API exposed as `window.hivegridMarketing`:
```js
toolctrlMarketing.captureLead({
hivegridMarketing.captureLead({
email: "alice@example.com",
firstName: "Alice",
source: "blog-cta",
});
toolctrlMarketing.bindFormById("lead-form");
toolctrlMarketing.bindFormsByAttr();
toolctrlMarketing.getAttribution(); // → merged first-touch object
toolctrlMarketing.resetAttribution(); // wipes localStorage cache
hivegridMarketing.bindFormById("lead-form");
hivegridMarketing.bindFormsByAttr();
hivegridMarketing.getAttribution(); // → merged first-touch object
hivegridMarketing.resetAttribution(); // wipes localStorage cache
```
Custom events on bound forms:
@@ -179,9 +179,9 @@ The SDK is hand-minified to stay under the 3 KB gzipped budget (currently
## CLI
```
toolctrl-cli leads list [--status new] [--limit 50]
toolctrl-cli leads export [--out leads.csv] [--status qualified]
toolctrl-cli leads delete --id <leadId> # DSGVO right-to-be-forgotten
hivegrid-cli leads list [--status new] [--limit 50]
hivegrid-cli leads export [--out leads.csv] [--status qualified]
hivegrid-cli leads delete --id <leadId> # DSGVO right-to-be-forgotten
```
## Configuration
@@ -201,7 +201,7 @@ to actually gate submissions; the secret alone is not enough.
- `MARKETING_ALLOWED_ORIGINS=` empties the allowlist → all browser captures
are rejected with 403 while leaving the admin UI usable for triage.
- Drop the `Lead` + `LeadEvent` tables to wipe captured data (no other
tables reference them today). Export with `toolctrl-cli leads export`
tables reference them today). Export with `hivegrid-cli leads export`
first.
---
@@ -223,7 +223,7 @@ layers:
that handler is not currently bootstrapped from `apps/worker/src/index.ts`.
3. **Attribution reports** — `/admin/marketing-funnels` aggregates leads
+ acquisitions by source, campaign, utm_source, conversionPath. Mirror
via `toolctrl-cli marketing funnel|attribution`.
via `hivegrid-cli marketing funnel|attribution`.
## Signed lead-token
@@ -347,8 +347,8 @@ captured, conversions, conversion rate) plus four breakdowns: campaign,
utm_source, source-label, conversionPath. Reads via `dbRead`
(replica-routed). CLI mirror:
- `toolctrl-cli marketing funnel --days 30`
- `toolctrl-cli marketing attribution --dimension campaign --days 30 --limit 25`
- `hivegrid-cli marketing funnel --days 30`
- `hivegrid-cli marketing attribution --dimension campaign --days 30 --limit 25`
## Configuration (Phase 2)