thumbgate 1.40.2 → 1.40.5

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.
Files changed (49) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.well-known/mcp/server-card.json +1 -1
  3. package/README.md +2 -2
  4. package/adapters/claude/.mcp.json +3 -3
  5. package/adapters/forge/forge.yaml +3 -3
  6. package/adapters/future-agi/.mcp.json +1 -1
  7. package/adapters/future-agi/config.toml +1 -1
  8. package/adapters/future-agi/opencode.json +1 -1
  9. package/adapters/herdr/herdr-plugin.toml +2 -2
  10. package/adapters/mcp/server-stdio.js +4 -2
  11. package/adapters/opencode/opencode.json +1 -1
  12. package/config/github-about.json +1 -1
  13. package/config/post-deploy-marketing-pages.json +1 -1
  14. package/package.json +30 -7
  15. package/public/about.html +2 -2
  16. package/public/admin.html +329 -47
  17. package/public/case-studies.html +1 -0
  18. package/public/dashboard.html +7 -6
  19. package/public/diagnostic.html +15 -12
  20. package/public/index.html +210 -78
  21. package/public/install.html +9 -8
  22. package/public/js/connect-panel.js +437 -0
  23. package/public/numbers.html +2 -2
  24. package/public/preview.html +42 -0
  25. package/public/pricing.html +55 -10
  26. package/scripts/auto-promote-gates.js +16 -1
  27. package/scripts/billing.js +189 -4
  28. package/scripts/cap-hit-counter.js +47 -0
  29. package/scripts/checkout-human-gate.js +248 -0
  30. package/scripts/checkout-session-count.js +115 -0
  31. package/scripts/feedback-loop.js +8 -1
  32. package/scripts/first-block-upsell.js +187 -0
  33. package/scripts/gates-engine.js +37 -108
  34. package/scripts/human-feedback.js +42 -0
  35. package/scripts/ops-log.js +91 -0
  36. package/scripts/ops-report.js +174 -0
  37. package/scripts/owner-admin.js +373 -26
  38. package/scripts/owner-telemetry.js +142 -0
  39. package/scripts/rate-limiter.js +8 -2
  40. package/scripts/statusline-human-counts.js +132 -0
  41. package/scripts/statusline-links.js +13 -3
  42. package/scripts/statusline-local-stats.js +5 -3
  43. package/scripts/statusline.sh +31 -3
  44. package/scripts/telemetry-analytics.js +4 -0
  45. package/scripts/tool-contract-validator.js +13 -3
  46. package/scripts/tool-registry.js +1 -1
  47. package/scripts/utm-source-summary.js +88 -0
  48. package/server.json +2 -2
  49. package/src/api/server.js +613 -107
package/public/admin.html CHANGED
@@ -101,6 +101,30 @@
101
101
  background: var(--accent);
102
102
  color: var(--bg);
103
103
  }
104
+ .banner {
105
+ font-size: 18px;
106
+ padding: 14px 18px;
107
+ margin: 0 0 20px;
108
+ border: 1px solid var(--line);
109
+ border-left-width: 8px;
110
+ border-radius: 10px;
111
+ }
112
+ .banner.green {
113
+ border-left-color: #4ade80;
114
+ }
115
+ .banner.amber {
116
+ border-left-color: #fbbf24;
117
+ }
118
+ .banner.red {
119
+ border-left-color: #f87171;
120
+ }
121
+ .block {
122
+ margin: 0 0 22px;
123
+ }
124
+ .block h3 {
125
+ margin: 0 0 6px;
126
+ font-size: 16px;
127
+ }
104
128
  .panel {
105
129
  background: var(--panel);
106
130
  border: 1px solid var(--line);
@@ -247,6 +271,7 @@
247
271
  'use strict';
248
272
  const content = document.getElementById('content');
249
273
  const sections = [
274
+ 'money',
250
275
  'overview',
251
276
  'stripe',
252
277
  'data',
@@ -254,13 +279,14 @@
254
279
  'observability',
255
280
  ];
256
281
  const titles = {
282
+ money: 'Money',
257
283
  overview: 'Overview',
258
284
  stripe: 'Stripe records',
259
285
  data: 'Hosted data',
260
286
  analytics: 'Analytics',
261
287
  observability: 'Observability',
262
288
  };
263
- let current = 'overview';
289
+ let current = 'money';
264
290
  let resource = 'customers';
265
291
  let subscriptionId = null;
266
292
  let nextCursor = null;
@@ -274,8 +300,29 @@
274
300
  function label(value) {
275
301
  return String(value)
276
302
  .replace(/([a-z])([A-Z])/g, '$1 $2')
303
+ .replace(/([a-zA-Z])(\d)/g, '$1 $2')
277
304
  .replaceAll('_', ' ');
278
305
  }
306
+ // Money tab wording: plain words, never field names.
307
+ const CHECKOUT_WORDS = {
308
+ started: 'Started',
309
+ human: 'Started by people',
310
+ completedHuman: 'Completed by people',
311
+ paidHuman: 'Paid by people',
312
+ bot: 'Started by bots',
313
+ notClassified: 'Not classified (no bot check on record)',
314
+ internal: 'Owner and test checkouts',
315
+ };
316
+ const BASIS_WORDS = {
317
+ stripe_paid_and_active: 'people with a paid, unrefunded ThumbGate checkout in the past year, plus active subscribers, counted once each; owner and test purchases excluded',
318
+ stripe_paid_and_active_partial: 'people with a paid, unrefunded ThumbGate checkout in the past year, plus active subscribers (only the first records Stripe returned were counted), counted once each; owner and test purchases excluded',
319
+ stripe_active_subscriptions_excluding_owner: 'active Stripe subscriptions, owner excluded',
320
+ stripe_active_subscriptions_first_100_only: 'active Stripe subscriptions (first 100 only), owner excluded',
321
+ unavailable: 'not available right now',
322
+ };
323
+ function basis(value) {
324
+ return BASIS_WORDS[value] || 'not available right now';
325
+ }
279
326
  function date(value) {
280
327
  if (!value) return 'Unknown';
281
328
  const d = new Date(typeof value === 'number' ? value * 1000 : value);
@@ -336,7 +383,7 @@
336
383
  });
337
384
  return button;
338
385
  }
339
- function cards(parent, values) {
386
+ function cards(parent, values, named = false) {
340
387
  const grid = element('div', undefined, 'cards');
341
388
  for (const [key, value] of Object.entries(values)) {
342
389
  const card = element('div', undefined, 'card');
@@ -346,7 +393,7 @@
346
393
  value === null || value === undefined ? 'Unknown' : value,
347
394
  'value',
348
395
  ),
349
- element('div', label(key), 'label'),
396
+ element('div', named ? key : label(key), 'label'),
350
397
  );
351
398
  grid.append(card);
352
399
  }
@@ -380,11 +427,11 @@
380
427
  wrap.append(t);
381
428
  parent.append(wrap);
382
429
  }
383
- function detail(parent, title, value) {
430
+ function detail(parent, title, value, words = {}) {
384
431
  const block = element('details');
385
432
  block.append(element('summary', title));
386
433
  const rows = Object.entries(value || {}).map(([key, val]) => ({
387
- key: label(key),
434
+ key: words[key] || label(key),
388
435
  value: typeof val === 'object' ? JSON.stringify(val) : val,
389
436
  }));
390
437
  table(
@@ -402,7 +449,216 @@
402
449
  ? 'Unknown'
403
450
  : String(v.total) + (v.complete ? '' : ' (partial)');
404
451
  }
452
+ // Observability tab: plain sentences, times in the owner's own clock, every number labelled or explained.
453
+ function when(value) {
454
+ const d = new Date(value);
455
+ if (!value || Number.isNaN(d.getTime())) return null;
456
+ const clock = { hour: 'numeric', minute: '2-digit', hour12: true };
457
+ const sameDay = d.toDateString() === new Date().toDateString();
458
+ return sameDay
459
+ ? d.toLocaleTimeString([], clock)
460
+ : d.toLocaleString([], { month: 'short', day: 'numeric', ...clock });
461
+ }
462
+ function spanWords(seconds) {
463
+ const unit = (n, word) => n + ' ' + word + (n === 1 ? '' : 's');
464
+ if (seconds < 60) return 'under a minute';
465
+ if (seconds < 3600) return unit(Math.floor(seconds / 60), 'minute');
466
+ if (seconds < 86400) {
467
+ const h = Math.floor(seconds / 3600);
468
+ const m = Math.floor((seconds % 3600) / 60);
469
+ return unit(h, 'hour') + (m ? ' ' + unit(m, 'minute') : '');
470
+ }
471
+ const d = Math.floor(seconds / 86400);
472
+ const h = Math.floor((seconds % 86400) / 3600);
473
+ return unit(d, 'day') + (h ? ' ' + unit(h, 'hour') : '');
474
+ }
475
+ function renderObservability(parent, data) {
476
+ const r = data && data.report;
477
+ if (!r) {
478
+ parent.append(
479
+ element('p', 'This server did not send an observability report.', 'empty'),
480
+ );
481
+ return;
482
+ }
483
+ const block = (title) => {
484
+ const box = element('div', undefined, 'block');
485
+ box.append(element('h3', title));
486
+ parent.append(box);
487
+ return box;
488
+ };
489
+ const note = (box, words) => box.append(element('p', words, 'muted'));
490
+ const facts = (box, values) => cards(box, values, true);
491
+ const since = (stamp) => (when(stamp) ? ' since ' + when(stamp) : '');
492
+ parent.append(element('p', r.headline.sentence, 'banner ' + r.headline.level));
493
+
494
+ const running = block('Running');
495
+ if (r.runningFor.seconds === null) note(running, r.runningFor.reason);
496
+ else
497
+ running.append(
498
+ element(
499
+ 'p',
500
+ 'Running for ' + spanWords(r.runningFor.seconds) + since(r.runningFor.since) + '.',
501
+ ),
502
+ );
503
+
504
+ const up = block('Uptime');
505
+ if (r.uptime.percent === null) {
506
+ note(up, r.uptime.reason + (r.uptime.since ? ' Heartbeat started' + since(r.uptime.since) + '.' : ''));
507
+ } else {
508
+ facts(up, { 'Up over the last 30 days': r.uptime.percent + '%' });
509
+ note(up, 'Measured over ' + r.uptime.observedDays + ' days' + since(r.uptime.since) + ', from the ' + r.uptime.source + '.');
510
+ if (r.uptime.lastOutage)
511
+ facts(up, {
512
+ 'Last outage': when(r.uptime.lastOutage.startedAt) + ', for ' + spanWords(r.uptime.lastOutage.minutes * 60),
513
+ });
514
+ else note(up, 'No outage recorded since measuring began.');
515
+ }
516
+
517
+ const errs = block('Errors');
518
+ if (r.errors.reason) note(errs, r.errors.reason);
519
+ else {
520
+ facts(errs, {
521
+ 'Errors in the last hour': r.errors.lastHour,
522
+ 'Errors in the last 24 hours': r.errors.last24Hours,
523
+ });
524
+ note(errs, 'Counted' + since(r.errors.since) + ', from the ' + r.errors.source + '.');
525
+ table(
526
+ errs,
527
+ [
528
+ ['What went wrong', (e) => e.what + (e.status ? ' (HTTP ' + e.status + ')' : '')],
529
+ ['Times in 24 hours', (e) => e.count],
530
+ ['Last seen', (e) => when(e.lastSeenAt) || 'time not recorded'],
531
+ ],
532
+ r.errors.top,
533
+ );
534
+ }
535
+
536
+ const speed = block('Speed');
537
+ if (r.speed.reason) note(speed, r.speed.reason);
538
+ else {
539
+ table(
540
+ speed,
541
+ [
542
+ ['Area', (g) => g.name],
543
+ ['Typical response', (g) => g.typicalMs + ' ms'],
544
+ ['Slowest 5% of responses', (g) => g.slowestFivePercentMs + ' ms'],
545
+ ['Requests measured', (g) => g.samples],
546
+ ],
547
+ r.speed.groups,
548
+ );
549
+ note(speed, 'Measured' + since(r.speed.since) + ' by this server; the numbers restart at each deploy.');
550
+ }
551
+
552
+ const deploy = block('Last deploy');
553
+ const deployLine = element('p');
554
+ const deployWhen = when(r.lastDeploy.startedAt);
555
+ deployLine.append(
556
+ document.createTextNode(
557
+ (deployWhen ? 'Deployed ' + deployWhen : 'Deploy time not reported') +
558
+ (r.lastDeploy.commitTitle ? ': ' + r.lastDeploy.commitTitle + ' ' : '. '),
559
+ ),
560
+ );
561
+ if (r.lastDeploy.shortSha) {
562
+ const link = element('a', r.lastDeploy.shortSha);
563
+ if (r.lastDeploy.commitUrl) {
564
+ link.href = r.lastDeploy.commitUrl;
565
+ link.rel = 'noopener noreferrer';
566
+ link.target = '_blank';
567
+ }
568
+ deployLine.append(link);
569
+ }
570
+ deploy.append(deployLine);
571
+ if (r.lastDeploy.reason) note(deploy, r.lastDeploy.reason);
572
+
573
+ const pay = block('Payments plumbing');
574
+ if (r.webhooks.failures24h !== null)
575
+ facts(pay, { 'Failed Stripe notifications in 24 hours': r.webhooks.failures24h });
576
+ if (r.webhooks.lastArrivedAt)
577
+ facts(pay, { 'Last Stripe notification arrived': when(r.webhooks.lastArrivedAt) });
578
+ if (r.webhooks.reason) note(pay, r.webhooks.reason);
579
+
580
+ const sign = block('Sign-in');
581
+ if (r.signIn.reason) note(sign, r.signIn.reason);
582
+ else {
583
+ facts(sign, { 'Failed sign-ins in 24 hours': r.signIn.failed24h });
584
+ if (r.signIn.reasons.length)
585
+ note(
586
+ sign,
587
+ 'Most common: ' + r.signIn.reasons.map((x) => x.words + ' (' + x.count + ')').join('; ') + '.',
588
+ );
589
+ }
590
+
591
+ const disk = block('Disk');
592
+ if (r.disk.reason) note(disk, r.disk.reason);
593
+ else
594
+ facts(disk, {
595
+ 'Data disk': r.disk.usedGb + ' GB of ' + r.disk.capacityGb + ' GB used (' + r.disk.percent + '%)',
596
+ });
597
+ }
405
598
  function render(parent, section, data) {
599
+ if (section === 'money') {
600
+ const checkouts = data.checkouts7d;
601
+ const traffic = data.traffic30d;
602
+ const why = data.reasons || {};
603
+ // A card never shows a bare "Unknown": a missing number shows the reason the source gave.
604
+ const shown = (value, reason, suffix = '') =>
605
+ value === null || value === undefined
606
+ ? reason || 'Source not available right now'
607
+ : String(value) + suffix;
608
+ cards(
609
+ parent,
610
+ {
611
+ 'Paying customers': shown(data.payingCustomers, why.payingCustomers, ' · from Stripe'),
612
+ 'Active Pro subscriptions': shown(data.activePro, why.activePro, ' · from Stripe'),
613
+ 'Checkouts started (7 days)': shown(checkouts ? checkouts.started : null, why.checkouts),
614
+ 'Real people (7 days)': shown(checkouts ? checkouts.human : null, why.checkouts),
615
+ 'Bots (7 days)': shown(checkouts ? checkouts.bot : null, why.checkouts),
616
+ 'Not classified (7 days)': shown(checkouts ? checkouts.notClassified : null, why.checkouts),
617
+ 'Owner and test (7 days)': shown(checkouts ? checkouts.internal : null, why.checkouts),
618
+ 'Visitors (30 days)': shown(traffic ? traffic.visitors : null, why.visitors),
619
+ 'Page views (30 days)': shown(traffic ? traffic.pageViews : null, why.visitors),
620
+ 'Checkout starts seen on the site (30 days)': shown(traffic ? traffic.checkoutStarts : null, why.visitors),
621
+ },
622
+ true,
623
+ );
624
+ parent.append(element('h3', 'Revenue · past 30 days'));
625
+ if (data.revenueLast30Days === null || data.revenueLast30Days === undefined)
626
+ parent.append(element('p', why.revenue || 'Source not available right now', 'notice'));
627
+ else
628
+ table(
629
+ parent,
630
+ [
631
+ ['Currency', (r) => r.currency],
632
+ ['Booked revenue', (r) => money(r.amount, r.currency)],
633
+ ],
634
+ Object.entries(data.revenueLast30Days).map(
635
+ ([currency, amount]) => ({ currency, amount }),
636
+ ),
637
+ );
638
+ parent.append(
639
+ element(
640
+ 'p',
641
+ 'Paying customers: ' +
642
+ basis(data.payingCustomersBasis) +
643
+ '. Active Pro: ' +
644
+ basis(data.activeProBasis) +
645
+ '. Revenue is the total of those payments after refunds.',
646
+ 'muted',
647
+ ),
648
+ );
649
+ if (data.checkouts7d) detail(parent, 'Checkout sessions, last 7 days', data.checkouts7d, CHECKOUT_WORDS);
650
+ if (data.checkouts30d) detail(parent, 'Checkout sessions, last 30 days', data.checkouts30d, CHECKOUT_WORDS);
651
+ const leads = data.leadsBySource;
652
+ if (leads) {
653
+ detail(parent, 'Signups by source', leads.signups);
654
+ detail(parent, 'Setup Sprint leads by source', leads.workflowSprint?.bySource);
655
+ detail(parent, 'Newsletter by source', leads.newsletter?.bySource);
656
+ } else {
657
+ parent.append(element('p', 'Signups and leads: ' + (why.leads || 'source not available right now'), 'notice'));
658
+ }
659
+ for (const note of data.notes || [])
660
+ parent.append(element('p', note, 'muted'));
661
+ }
406
662
  if (section === 'overview') {
407
663
  cards(parent, {
408
664
  version: data.health?.version,
@@ -552,12 +808,63 @@
552
808
  }
553
809
  if (section === 'analytics') {
554
810
  const external = data.revenue?.external || {};
555
- cards(parent, {
556
- visitors: data.trafficMetrics?.visitors,
557
- checkoutStarts: data.trafficMetrics?.checkoutStarts,
558
- emailSignups: data.signups?.emailSignups,
559
- externalPaidOrders: external.paidOrders,
560
- });
811
+ const traffic = data.trafficMetrics;
812
+ const waiting = 'Billing totals still calculating, refresh in a minute';
813
+ const shown = (value, fallback) =>
814
+ value === null || value === undefined ? fallback : String(value);
815
+ cards(
816
+ parent,
817
+ {
818
+ 'Visitors (30 days)': shown(traffic?.visitors, 'Telemetry store empty'),
819
+ 'Page views (30 days)': shown(traffic?.pageViews, 'Telemetry store empty'),
820
+ 'Call to action clicks (30 days)': shown(traffic?.ctaClicks, 'Telemetry store empty'),
821
+ 'Checkout starts (30 days)': shown(traffic?.checkoutStarts, 'Telemetry store empty'),
822
+ 'Paid confirmations (30 days)': shown(traffic?.checkoutPaidConfirmations, 'Telemetry store empty'),
823
+ 'Email signups': shown(data.signups?.emailSignups, waiting),
824
+ 'External paid orders': shown(external.paidOrders, waiting),
825
+ },
826
+ true,
827
+ );
828
+ if (Array.isArray(data.daily) && data.daily.length) {
829
+ parent.append(element('h3', 'Visitors per day · past 30 days'));
830
+ const peak = Math.max(1, ...data.daily.map((d) => d.visitors));
831
+ const width = 600;
832
+ const height = 120;
833
+ const step = width / data.daily.length;
834
+ const ns = 'http://www.w3.org/2000/svg';
835
+ const chart = document.createElementNS(ns, 'svg');
836
+ chart.setAttribute('viewBox', '0 0 ' + width + ' ' + height);
837
+ chart.setAttribute('role', 'img');
838
+ chart.setAttribute('aria-label', 'Visitors per day for the past 30 days');
839
+ chart.style.width = '100%';
840
+ chart.style.maxHeight = '160px';
841
+ data.daily.forEach((d, i) => {
842
+ const bar = document.createElementNS(ns, 'rect');
843
+ const h = Math.max(1, Math.round((d.visitors / peak) * (height - 4)));
844
+ bar.setAttribute('x', String(i * step + 1));
845
+ bar.setAttribute('y', String(height - h));
846
+ bar.setAttribute('width', String(Math.max(1, step - 2)));
847
+ bar.setAttribute('height', String(h));
848
+ bar.setAttribute('fill', 'currentColor');
849
+ const tip = document.createElementNS(ns, 'title');
850
+ tip.textContent = d.date + ': ' + d.visitors + ' visitors, ' + d.pageViews + ' page views';
851
+ bar.append(tip);
852
+ chart.append(bar);
853
+ });
854
+ parent.append(chart);
855
+ table(
856
+ parent,
857
+ [
858
+ ['Day', (r) => r.date],
859
+ ['Visitors', (r) => r.visitors],
860
+ ['Page views', (r) => r.pageViews],
861
+ ['Call to action clicks', (r) => r.ctaClicks],
862
+ ['Checkout starts', (r) => r.checkoutStarts],
863
+ ['Paid confirmations', (r) => r.checkoutPaidConfirmations],
864
+ ],
865
+ [...data.daily].reverse(),
866
+ );
867
+ }
561
868
  parent.append(
562
869
  element('h3', 'External booked revenue · past 30 days'),
563
870
  );
@@ -589,7 +896,7 @@
589
896
  detail(parent, label(key), data[key]);
590
897
  detail(
591
898
  parent,
592
- 'Internal, test and unknown exclusions',
899
+ 'Internal, test and unidentified exclusions',
593
900
  external.excluded,
594
901
  );
595
902
  detail(
@@ -599,34 +906,7 @@
599
906
  );
600
907
  }
601
908
  if (section === 'observability') {
602
- cards(parent, {
603
- version: data.version,
604
- build: data.buildSha,
605
- uptimeSeconds: Math.floor(data.uptime || 0),
606
- persistedTelemetryLastMinute: data.telemetry?.events,
607
- });
608
- parent.append(
609
- element(
610
- 'p',
611
- 'Telemetry observed for ' +
612
- (data.telemetry?.windowSeconds ?? 0) +
613
- ' seconds; one-second precision. Process start ' +
614
- date(data.processStartedAt) +
615
- '. Deployment time unavailable. Error retention resets on restart.',
616
- 'muted',
617
- ),
618
- );
619
- detail(parent, 'Deployment identity', data.deployment);
620
- detail(parent, 'Volume filesystem bytes', data.disk);
621
- table(
622
- parent,
623
- [
624
- ['Time', (r) => date(r.timestamp)],
625
- ['Status', (r) => r.status],
626
- ['Route category', (r) => r.route],
627
- ],
628
- data.recentErrors || [],
629
- );
909
+ renderObservability(parent, data);
630
910
  }
631
911
  }
632
912
  function controls() {
@@ -706,7 +986,9 @@
706
986
  if (request !== activeLoad) return;
707
987
  if (!response.ok)
708
988
  throw new Error(
709
- response.status === 404
989
+ response.status === 403
990
+ ? 'This account is not on the owner list.'
991
+ : response.status === 404
710
992
  ? 'This page is unavailable. Sign in through the usual ThumbGate login and try again.'
711
993
  : response.status === 429
712
994
  ? 'Another collection is running. Try again shortly.'
@@ -757,12 +1039,12 @@
757
1039
  loading.className = 'notice';
758
1040
  }
759
1041
  }
760
- document.getElementById('logout').addEventListener('click', async () => {
761
- const response = await fetch('/v1/auth/session', {
762
- method: 'DELETE',
763
- credentials: 'same-origin',
764
- });
765
- if (response.ok) location.assign('/');
1042
+ document.getElementById('logout').addEventListener('click', () => {
1043
+ const form = document.createElement('form');
1044
+ form.method = 'POST';
1045
+ form.action = '/logout';
1046
+ document.body.append(form);
1047
+ form.submit();
766
1048
  });
767
1049
  controls();
768
1050
  load();
@@ -115,6 +115,7 @@ thumbgate@1.29.2 → 0 holes</pre>
115
115
  <p><strong>Problem.</strong> Free-tier daily block caps + warn-by-default posture could downgrade irreversible actions to warnings after the cap.</p>
116
116
  <p><strong>Action.</strong> Split <em>how many</em> blocks free users get from <em>which</em> actions can never be discounted. Named catastrophic IDs stay deny regardless of tier.</p>
117
117
  <p><strong>Result.</strong> Upgrade pressure remains on negotiable gates; irreversible classes are not for sale.</p>
118
+ <p><strong>Update (16 Nov 2026).</strong> The daily block quota has since been removed entirely: a rule that denies now denies every time, on every tier. Free-tier limits cover only how many rules and feedback captures you can have.</p>
118
119
  </article>
119
120
 
120
121
  <article id="evasion-matrix">
@@ -1031,12 +1031,13 @@ function disconnectKey() {
1031
1031
  document.getElementById('dashboardContent').style.display = 'none';
1032
1032
  var onboardingEl = document.getElementById('firstBlockOnboarding');
1033
1033
  if (onboardingEl) onboardingEl.style.display = 'none';
1034
- return projectFetch('/v1/auth/session', { method: 'DELETE', credentials: 'same-origin' })
1035
- .catch(function() {})
1036
- .finally(function() {
1037
- if (disconnectEl) disconnectEl.disabled = false;
1038
- window.location.assign('/dashboard?noauto=1');
1039
- });
1034
+ // The server ends the session, clears the cookie and answers with a redirect to the landing page.
1035
+ var logoutForm = document.createElement('form');
1036
+ logoutForm.method = 'POST';
1037
+ logoutForm.action = '/logout';
1038
+ document.body.appendChild(logoutForm);
1039
+ logoutForm.submit();
1040
+ return Promise.resolve();
1040
1041
  }
1041
1042
 
1042
1043
  function renderFreeTierTalkToUsHtml(workflow) {
@@ -3,11 +3,11 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>ThumbGate Setup Sprint — $499 | Self-Improving Firewall</title>
7
- <meta name="description" content="Self-improving firewall for AI agents. Managed implementation for one repeated AI-agent workflow failure: one configured local gate, one regression test, and rollout and rollback proof.">
6
+ <title>Stop Your AI Coding Agent Repeating Mistakes — $499 Setup Sprint | ThumbGate</title>
7
+ <meta name="description" content="Your coding agent keeps making the same mistake. The $499 Setup Sprint blocks it before the tool runs, with a regression test that proves it. One repeated mistake, one local workflow, rollout and rollback proof.">
8
8
  <link rel="canonical" href="__APP_ORIGIN__/diagnostic">
9
9
  <link rel="alternate" type="text/markdown" title="ThumbGate LLM context" href="__APP_ORIGIN__/llm-context.md">
10
- <meta property="og:title" content="ThumbGate Setup Sprint — $499">
10
+ <meta property="og:title" content="Stop Your AI Coding Agent Repeating Mistakes — $499 Setup Sprint">
11
11
  <meta property="og:description" content="Send one repeated AI-agent workflow failure. Get one configured gate, a regression test, and rollout and rollback proof.">
12
12
  <meta property="og:url" content="__APP_ORIGIN__/diagnostic">
13
13
  <meta property="og:type" content="website">
@@ -26,6 +26,8 @@
26
26
  --white: #ffffff;
27
27
  }
28
28
  * { box-sizing: border-box; }
29
+ .offer-points { margin: 16px 0; padding-left: 20px; }
30
+ .offer-points li { margin: 6px 0; }
29
31
  body {
30
32
  margin: 0;
31
33
  min-height: 100vh;
@@ -289,13 +291,14 @@ footer { padding: 32px 0 44px; color: var(--muted); }
289
291
  <div class="hero">
290
292
  <div>
291
293
  <div class="eyebrow">Setup Sprint · $499 one-time for one workflow</div>
292
- <h1>One repeated agent mistake. One configured gate.</h1>
293
- <p class="lede">ThumbGate checks proposed tool calls before execution in supported hook integrations. The $499 Setup Sprint turns one recurring failure in a supported local workflow into a configured gate, a regression test, and rollout and rollback evidence.</p>
294
- <div class="offer-promise" data-offer-promise>
295
- <p><strong>One workflow gate, configured and regression-tested. $499 once. Delivered in two business days after access, for a supported failure.</strong></p>
296
- <p>Supported failure: one repeated agent mistake in one local workflow, in a supported hook integration, that can be reduced to one ThumbGate gate and one regression test.</p>
297
- <p>Refund: if the failure cannot be reduced to one supported gate, we refund the $499 order.</p>
298
- </div>
294
+ <h1>Your coding agent keeps making the same mistake. We make it stop.</h1>
295
+ <p class="lede">ThumbGate checks each tool call your agent proposes before it runs. The $499 Setup Sprint turns one repeated mistake in one local workflow, on a <a href="/install#install">supported integration</a>, into a configured gate and a regression test.</p>
296
+ <ul class="offer-promise offer-points" data-offer-promise>
297
+ <li><strong>The outcome:</strong> that mistake is blocked before the tool runs, with a regression test that proves it.</li>
298
+ <li><strong>The guarantee:</strong> if we can't turn it into a gate, you get the $499 back.</li>
299
+ <li><strong>The speed:</strong> two business days, counted from when we have access and your workflow materials.</li>
300
+ <li><strong>Your part:</strong> a short intake and one 60-minute working review.</li>
301
+ </ul>
299
302
  <div class="actions">
300
303
  <form class="diagnostic-pay-form" action="/go/diagnostic-pay" method="POST" data-diagnostic-pay-form>
301
304
  <input type="hidden" name="utm_source" value="diagnostic_page">
@@ -320,7 +323,7 @@ footer { padding: 32px 0 44px; color: var(--muted); }
320
323
  </div>
321
324
  <form id="intake" class="intake-card" action="/v1/intake/workflow-sprint" method="POST" data-team-intake-form data-diagnostic-intake-form>
322
325
  <h2>Check workflow fit</h2>
323
- <p>Use this before checkout if you are unsure the repeated action can be reduced to one supported local gate.</p>
326
+ <p>Use this before checkout if you are unsure the repeated action can be reduced to one local gate.</p>
324
327
  <input type="hidden" name="ctaId" value="diagnostic_page_intake">
325
328
  <input type="hidden" name="ctaPlacement" value="diagnostic_page">
326
329
  <input type="hidden" name="utmMedium" value="diagnostic_intake">
@@ -342,7 +345,7 @@ footer { padding: 32px 0 44px; color: var(--muted); }
342
345
  <option>We need an independent proof checklist first</option>
343
346
  </select>
344
347
  <button type="submit" data-revenue-cta data-cta-id="diagnostic_page_submit" data-cta-placement="intake">Submit for fit check</button>
345
- <p class="hint" data-diagnostic-payment-hint>Ready to pay now? Use the $499 managed-gate checkout above. If the workflow is not a supported fit, we refund the order instead of opening a larger consulting scope.</p>
348
+ <p class="hint" data-diagnostic-payment-hint>Ready to pay now? Use the $499 managed-gate checkout above. If the workflow is not a fit, we refund the order instead of opening a larger consulting scope.</p>
346
349
  </form>
347
350
  </div>
348
351
  <section data-oceans-pain>