thumbgate 1.40.5 → 1.40.6

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/public/admin.html CHANGED
@@ -306,13 +306,19 @@
306
306
  // Money tab wording: plain words, never field names.
307
307
  const CHECKOUT_WORDS = {
308
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)',
309
+ human: 'Started, browser-classified',
310
+ completedHuman: 'Completed, browser-classified',
311
+ paidHuman: 'Paid, browser-classified',
312
+ bot: 'Started, bot-classified',
313
+ notClassified: 'Insufficient classification evidence (no bot check on record)',
314
314
  internal: 'Owner and test checkouts',
315
315
  };
316
+ const SITE_START_WORDS = {
317
+ pro_checkout_direct_stripe: 'Direct Stripe link opened',
318
+ checkout_start: 'Checkout started',
319
+ checkout_bootstrap: 'Checkout page loaded',
320
+ diagnostic_checkout_confirmed: 'Diagnostic checkout confirmed',
321
+ };
316
322
  const BASIS_WORDS = {
317
323
  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
324
  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',
@@ -444,6 +450,162 @@
444
450
  );
445
451
  parent.append(block);
446
452
  }
453
+ // How long a measurement has really run, in words ("about 1 day"), never a fixed window the data does not cover.
454
+ function periodWords(days) {
455
+ if (!Number.isFinite(days)) return 'length not measured';
456
+ if (days < 1) return 'less than 1 day';
457
+ const n = Math.round(days * 10) / 10;
458
+ return 'about ' + n + (n === 1 ? ' day' : ' days');
459
+ }
460
+ // A conversion rate with no denominator is not zero; it is not applicable.
461
+ function conversionRows(funnel) {
462
+ const stages = funnel?.stageCounts || {};
463
+ const rates = funnel?.conversionRates || {};
464
+ const row = (name, rate, denominator, none) => ({
465
+ name,
466
+ value:
467
+ !Number.isFinite(denominator) || denominator === 0
468
+ ? 'N/A, ' + none
469
+ : Number.isFinite(rate)
470
+ ? Math.round(rate * 1000) / 10 + '%'
471
+ : 'N/A, not reported',
472
+ });
473
+ return [
474
+ row('Acquisition to activation', rates.acquisitionToActivation, stages.acquisition, 'no measured acquisition events'),
475
+ row('Activation to paid', rates.activationToPaid, stages.activation, 'no measured activations'),
476
+ row('Acquisition to paid', rates.acquisitionToPaid, stages.acquisition, 'no measured acquisition events'),
477
+ ];
478
+ }
479
+ function funnelTable(parent, funnel) {
480
+ if (!funnel) return;
481
+ parent.append(element('h3', 'Funnel conversion'));
482
+ table(parent, [['Step', (r) => r.name], ['Rate', (r) => r.value]], conversionRows(funnel));
483
+ parent.append(
484
+ element(
485
+ 'p',
486
+ 'A lead is one distinct acquisition event identity (an acquisition, trace, visitor, session or install id) from a real checkout step; synthetic checkout sessions are excluded. ' +
487
+ 'An activation is the first call made with an API key. Free local use without a key is not measured, so a 0 here means none observed, not none happened.',
488
+ 'muted',
489
+ ),
490
+ );
491
+ }
492
+ const STATE_WORDS = {
493
+ ok: 'Verified',
494
+ verified_zero: 'Verified zero',
495
+ partial: 'Partial',
496
+ stale: 'Last verified value',
497
+ unavailable: 'Unavailable, the source failed',
498
+ unresolved: 'Unresolved, not collected yet',
499
+ };
500
+ function freshnessTable(parent, fresh) {
501
+ if (!fresh) return;
502
+ const names = {
503
+ paid: 'Paid checkouts (Stripe)',
504
+ subscriptions: 'Active subscriptions (Stripe)',
505
+ checkouts: 'Checkout sessions (Stripe)',
506
+ traffic: 'Site visits (telemetry)',
507
+ leads: 'Signups and leads (ledgers)',
508
+ };
509
+ const rows = Object.entries(names)
510
+ .filter(([key]) => fresh[key])
511
+ .map(([key, name]) => ({
512
+ name,
513
+ observed: when(fresh[key].collectedAt) || 'not collected',
514
+ state: fresh[key].stale ? 'Last verified value, the source did not answer' : 'Current',
515
+ }));
516
+ parent.append(element('h3', 'Source freshness'));
517
+ table(parent, [['Source', (r) => r.name], ['Source observed', (r) => r.observed], ['State', (r) => r.state]], rows);
518
+ parent.append(
519
+ element(
520
+ 'p',
521
+ 'Display refreshed ' + (when(fresh.displayRefreshedAt) || 'just now') +
522
+ (Number.isFinite(fresh.telemetryCacheSeconds) && Number.isFinite(fresh.billingSummaryCacheSeconds)
523
+ ? '. Site visits are cached for ' + fresh.telemetryCacheSeconds + ' seconds and the billing summary for ' + fresh.billingSummaryCacheSeconds / 60 + ' minutes.'
524
+ : '.'),
525
+ 'muted',
526
+ ),
527
+ );
528
+ }
529
+ // One sentence naming the first stage that is stuck, with the numbers that show it and what they cannot show.
530
+ function describeObstacle(fields, funnel) {
531
+ const paying = fields?.['money.paying_customers']?.value;
532
+ const panel = fields?.['money.checkout_bot_check']?.value;
533
+ const since = panel?.sinceBotCheck;
534
+ const stages = funnel?.stageCounts || {};
535
+ const leads = funnel?.uniqueAcquisitionLeads;
536
+ if (!Number.isFinite(paying)) return 'Paying customers could not be read right now, so no obstacle is named without evidence.';
537
+ if (paying > 0) return 'Money is arriving: ' + paying + ' paying customers.';
538
+ const parts = [];
539
+ if (Number.isFinite(leads) && leads > 0 && stages.activation === 0)
540
+ parts.push(leads + ' acquisition leads and 0 measured activations: no lead has made a first API-key call (free local use is not measured).');
541
+ if (since && since.human === 0)
542
+ parts.push('Since the bot check on ' + (panel.botCheckBeganLabel || 'its start date') + ', ' + since.started + ' checkout sessions started and 0 are classified as a browser (' + since.bot + ' bot-classified, ' + since.internal + ' owner or test).');
543
+ else if (since && since.human > 0)
544
+ parts.push(since.human + ' browser-classified checkout sessions since the bot check, and 0 paying customers.');
545
+ return parts.length ? parts.join(' ') : 'There is not enough classified evidence yet to name an obstacle.';
546
+ }
547
+ function metricValue(m) {
548
+ if (!m) return 'Not reported';
549
+ if (m.value === null || m.value === undefined) return m.reason || 'Unavailable';
550
+ if (typeof m.value === 'object') {
551
+ const entries = Object.entries(m.value);
552
+ return entries.length ? entries.map(([c, a]) => money(a, c)).join(', ') : 'None in this window';
553
+ }
554
+ return String(m.value);
555
+ }
556
+ function metricRows(fields, keys) {
557
+ return keys.filter((key) => fields?.[key]).map((key) => {
558
+ const m = fields[key];
559
+ return {
560
+ name: m.label,
561
+ value: metricValue(m),
562
+ state: STATE_WORDS[m.status] || label(m.status),
563
+ observed: when(m.status === 'stale' ? m.lastVerifiedAt : m.collectedAt) || 'not collected',
564
+ };
565
+ });
566
+ }
567
+ // First screen: verified money, measured activation and the biggest evidenced obstacle, read from the same JSON an agent reads.
568
+ function renderOverview(parent, data) {
569
+ const mine = activeLoad;
570
+ const box = element('div');
571
+ parent.append(box);
572
+ box.append(element('p', 'Loading verified money and measured activation…', 'muted'));
573
+ const read = (url) =>
574
+ fetch(url, { credentials: 'same-origin', cache: 'no-store' }).then((r) => (r.ok ? r.json() : null)).catch(() => null);
575
+ Promise.all([read('/v1/admin/summary'), read('/v1/admin/analytics')]).then(([summary, analytics]) => {
576
+ if (mine !== activeLoad) return;
577
+ box.replaceChildren();
578
+ const fields = summary?.data?.fields;
579
+ const funnel = analytics?.data?.funnel;
580
+ box.append(element('h3', 'Verified external money'));
581
+ if (fields)
582
+ table(
583
+ box,
584
+ [['Metric', (r) => r.name], ['Value', (r) => r.value], ['State', (r) => r.state], ['Source observed', (r) => r.observed]],
585
+ metricRows(fields, ['money.paying_customers', 'money.active_pro', 'money.revenue_30d', 'money.subscription_invoices_30d']),
586
+ );
587
+ else box.append(element('p', 'The money summary is unavailable right now. No zero is inferred.', 'notice'));
588
+ box.append(element('h3', 'Measured activation'));
589
+ if (funnel) {
590
+ cards(
591
+ box,
592
+ {
593
+ 'Unique acquisition leads': funnel.uniqueAcquisitionLeads,
594
+ 'Acquisition events': funnel.stageCounts?.acquisition,
595
+ 'Measured activations': funnel.stageCounts?.activation,
596
+ 'Paid customers': funnel.uniquePaidCustomers,
597
+ 'Excluded synthetic checkout sessions': funnel.excludedSyntheticCheckoutSessions,
598
+ },
599
+ true,
600
+ );
601
+ funnelTable(box, funnel);
602
+ } else box.append(element('p', 'The funnel is unavailable right now. No zero is inferred.', 'notice'));
603
+ box.append(element('h3', 'Biggest evidenced obstacle'));
604
+ box.append(element('p', describeObstacle(fields, funnel)));
605
+ if (summary?.data?.freshness)
606
+ box.append(element('p', 'Display refreshed ' + (when(summary.data.freshness.displayRefreshedAt) || 'just now') + '.', 'muted'));
607
+ });
608
+ }
447
609
  function count(v) {
448
610
  return v?.total === null || v?.total === undefined
449
611
  ? 'Unknown'
@@ -505,7 +667,7 @@
505
667
  if (r.uptime.percent === null) {
506
668
  note(up, r.uptime.reason + (r.uptime.since ? ' Heartbeat started' + since(r.uptime.since) + '.' : ''));
507
669
  } else {
508
- facts(up, { 'Up over the last 30 days': r.uptime.percent + '%' });
670
+ facts(up, { ['Up during the observed period, ' + periodWords(r.uptime.observedDays)]: r.uptime.percent + '%' });
509
671
  note(up, 'Measured over ' + r.uptime.observedDays + ' days' + since(r.uptime.since) + ', from the ' + r.uptime.source + '.');
510
672
  if (r.uptime.lastOutage)
511
673
  facts(up, {
@@ -611,17 +773,54 @@
611
773
  'Paying customers': shown(data.payingCustomers, why.payingCustomers, ' · from Stripe'),
612
774
  'Active Pro subscriptions': shown(data.activePro, why.activePro, ' · from Stripe'),
613
775
  '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),
776
+ 'Observed visitor identifiers, excluding bot, internal and test (30 days)': shown(traffic ? traffic.realVisitors : null, why.visitors),
777
+ 'All observed visitor identifiers (30 days)': shown(traffic ? traffic.visitors : null, why.visitors),
778
+ 'Landing page views (30 days)': shown(traffic ? traffic.pageViews : null, why.visitors),
620
779
  'Checkout starts seen on the site (30 days)': shown(traffic ? traffic.checkoutStarts : null, why.visitors),
621
780
  },
622
781
  true,
623
782
  );
624
- parent.append(element('h3', 'Revenue · past 30 days'));
783
+ parent.append(element('h3', 'Checkout sessions · past 30 days'));
784
+ const panel = data.checkoutBotCheck;
785
+ if (!panel) parent.append(element('p', why.checkouts || 'Source not available right now', 'notice'));
786
+ else {
787
+ const since = panel.sinceBotCheck;
788
+ cards(
789
+ parent,
790
+ {
791
+ 'Sessions with insufficient classification evidence (30 days)': String(panel.notClassified),
792
+ 'Browser-classified checkout sessions since the bot check': String(since.human),
793
+ 'Bot-classified checkout sessions since the bot check': String(since.bot),
794
+ 'Owner and test since the bot check': String(since.internal),
795
+ },
796
+ true,
797
+ );
798
+ const first = panel.firstClassifiedAt ? when(panel.firstClassifiedAt) : null;
799
+ parent.append(
800
+ element(
801
+ 'p',
802
+ 'The bot check began ' +
803
+ panel.botCheckBeganLabel +
804
+ '. Sessions created before it carry no classification, so they cannot be called browser or bot. A browser-classified session means the click came from a browser user agent; it is not proof of a person. ' +
805
+ (first ? 'The first session with a bot check result was created ' + first + '. ' : 'No session has a bot check result yet. ') +
806
+ since.started +
807
+ ' sessions were created since the bot check began.',
808
+ 'muted',
809
+ ),
810
+ );
811
+ const gap = panel.siteVersusStripe;
812
+ if (gap) {
813
+ parent.append(
814
+ element(
815
+ 'p',
816
+ 'Checkout starts seen on the site (' + gap.siteStarts + ') against checkout sessions in Stripe (' + gap.stripeSessions + '): difference ' + gap.difference + '. ' + gap.reason,
817
+ 'muted',
818
+ ),
819
+ );
820
+ detail(parent, 'Site checkout starts by kind', gap.siteStartsByType, SITE_START_WORDS);
821
+ }
822
+ }
823
+ parent.append(element('h3', 'One-time checkout revenue · past 30 days'));
625
824
  if (data.revenueLast30Days === null || data.revenueLast30Days === undefined)
626
825
  parent.append(element('p', why.revenue || 'Source not available right now', 'notice'));
627
826
  else
@@ -629,7 +828,7 @@
629
828
  parent,
630
829
  [
631
830
  ['Currency', (r) => r.currency],
632
- ['Booked revenue', (r) => money(r.amount, r.currency)],
831
+ ['Checkout revenue after refunds', (r) => money(r.amount, r.currency)],
633
832
  ],
634
833
  Object.entries(data.revenueLast30Days).map(
635
834
  ([currency, amount]) => ({ currency, amount }),
@@ -642,10 +841,12 @@
642
841
  basis(data.payingCustomersBasis) +
643
842
  '. Active Pro: ' +
644
843
  basis(data.activeProBasis) +
645
- '. Revenue is the total of those payments after refunds.',
844
+ '. Revenue is the total of completed Checkout Sessions created in the last 30 days, after refunds. ' +
845
+ 'Subscription renewal invoices are not read, so recurring revenue is not included: subscription invoices are not collected yet.',
646
846
  'muted',
647
847
  ),
648
848
  );
849
+ freshnessTable(parent, data.freshness);
649
850
  if (data.checkouts7d) detail(parent, 'Checkout sessions, last 7 days', data.checkouts7d, CHECKOUT_WORDS);
650
851
  if (data.checkouts30d) detail(parent, 'Checkout sessions, last 30 days', data.checkouts30d, CHECKOUT_WORDS);
651
852
  const leads = data.leadsBySource;
@@ -660,15 +861,16 @@
660
861
  parent.append(element('p', note, 'muted'));
661
862
  }
662
863
  if (section === 'overview') {
663
- cards(parent, {
864
+ renderOverview(parent, data);
865
+ detail(parent, 'Build and runtime', {
664
866
  version: data.health?.version,
665
867
  build: data.health?.buildSha,
666
- uptimeSeconds: Math.floor(data.health?.uptime || 0),
868
+ runningFor: spanWords(Math.floor(data.health?.uptime || 0)),
667
869
  });
668
870
  parent.append(
669
871
  element(
670
872
  'p',
671
- 'Select a section to load its current source. Stripe resources are fetched one page at a time.',
873
+ 'This console is read-only. The same numbers are available as JSON at /v1/admin/summary. Select a section to load its current source; Stripe resources are fetched one page at a time.',
672
874
  'muted',
673
875
  ),
674
876
  );
@@ -815,8 +1017,9 @@
815
1017
  cards(
816
1018
  parent,
817
1019
  {
818
- 'Visitors (30 days)': shown(traffic?.visitors, 'Telemetry store empty'),
819
- 'Page views (30 days)': shown(traffic?.pageViews, 'Telemetry store empty'),
1020
+ 'Observed visitor identifiers, excluding bot, internal and test (30 days)': shown(traffic?.realVisitors, 'Telemetry store empty'),
1021
+ 'All observed visitor identifiers (30 days)': shown(traffic?.visitors, 'Telemetry store empty'),
1022
+ 'Landing page views (30 days)': shown(traffic?.pageViews, 'Telemetry store empty'),
820
1023
  'Call to action clicks (30 days)': shown(traffic?.ctaClicks, 'Telemetry store empty'),
821
1024
  'Checkout starts (30 days)': shown(traffic?.checkoutStarts, 'Telemetry store empty'),
822
1025
  'Paid confirmations (30 days)': shown(traffic?.checkoutPaidConfirmations, 'Telemetry store empty'),
@@ -825,6 +1028,16 @@
825
1028
  },
826
1029
  true,
827
1030
  );
1031
+ parent.append(
1032
+ element(
1033
+ 'p',
1034
+ 'A visitor identifier is counted once from any site event (a click, a checkout step, a page view), while landing page views count page-view events only, so identifiers can exceed page views. ' +
1035
+ (traffic && Number.isFinite(traffic.pageViewers)
1036
+ ? traffic.pageViewers + ' of the identifiers viewed a landing page.'
1037
+ : ''),
1038
+ 'muted',
1039
+ ),
1040
+ );
828
1041
  if (Array.isArray(data.daily) && data.daily.length) {
829
1042
  parent.append(element('h3', 'Visitors per day · past 30 days'));
830
1043
  const peak = Math.max(1, ...data.daily.map((d) => d.visitors));
@@ -885,6 +1098,7 @@
885
1098
  'muted',
886
1099
  ),
887
1100
  );
1101
+ funnelTable(parent, data.funnel);
888
1102
  for (const key of [
889
1103
  'funnel',
890
1104
  'signups',
package/public/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <meta name="generator" content="ThumbGate">
7
7
  <meta name="author" content="Igor Ganapolsky">
8
- <meta name="thumbgate-version" content="1.40.5">
8
+ <meta name="thumbgate-version" content="1.40.6">
9
9
  __GOOGLE_SITE_VERIFICATION_META__
10
10
  <link rel="icon" type="image/png" href="/thumbgate-icon.png">
11
11
  <link rel="canonical" href="__APP_ORIGIN__/">
@@ -1065,7 +1065,7 @@ next decision recorded before execution</pre>
1065
1065
 
1066
1066
  <footer>
1067
1067
  <div class="shell footer-inner">
1068
- <span>ThumbGate · MIT License · npm v1.40.5</span>
1068
+ <span>ThumbGate · MIT License · npm v1.40.6</span>
1069
1069
  <div class="footer-links">
1070
1070
  <a href="https://github.com/IgorGanapolsky/ThumbGate" target="_blank" rel="noopener">GitHub</a>
1071
1071
  <a href="/guide">Technical setup</a>
@@ -1177,11 +1177,6 @@ next decision recorded before execution</pre>
1177
1177
  };
1178
1178
  window.plausible('pro_offer_click', { props: props });
1179
1179
  sendFirstPartyTelemetry('cta_click', props);
1180
- try {
1181
- if (window.posthog && typeof window.posthog.capture === 'function') {
1182
- window.posthog.capture('pro_offer_click', props);
1183
- }
1184
- } catch (_) {}
1185
1180
  }
1186
1181
 
1187
1182
  document.querySelectorAll('[data-offer-link]').forEach(function (link) {
@@ -1204,11 +1199,6 @@ next decision recorded before execution</pre>
1204
1199
  window.plausible('checkout_start', { props: props });
1205
1200
  sendGa4Event('begin_checkout', props);
1206
1201
  sendFirstPartyTelemetry('checkout_start', props);
1207
- try {
1208
- if (window.posthog && typeof window.posthog.capture === 'function') {
1209
- window.posthog.capture('checkout_start', props);
1210
- }
1211
- } catch (_) {}
1212
1202
  });
1213
1203
  }
1214
1204
 
@@ -140,7 +140,7 @@ __GA_BOOTSTRAP__
140
140
  <a class="btn-secondary" href="/diagnostic?utm_source=install_page&utm_medium=owned_page&utm_campaign=marketplace_distribution">Harden one workflow</a>
141
141
  </div>
142
142
  <div class="proof-strip" aria-label="Verified live distribution surfaces">
143
- <div class="proof"><strong>npm</strong><span>thumbgate@1.40.5</span></div>
143
+ <div class="proof"><strong>npm</strong><span>thumbgate@1.40.6</span></div>
144
144
  <div class="proof"><strong>VS Code</strong><span>Marketplace version live</span></div>
145
145
  <div class="proof"><strong>Open VSX</strong><span>Antigravity-compatible path</span></div>
146
146
  <div class="proof"><strong>MCP Registry</strong><span>1.27.20 is latest</span></div>
@@ -154,12 +154,12 @@ __GA_BOOTSTRAP__
154
154
  <p class="section-lede">Use the local CLI path for immediate enforcement. Use marketplace installs where your editor supports them. Use the diagnostic path when you need a human-reviewed gate map for one risky workflow. New install: <a href="/guides/progressive-wiring">prove the pipe first</a> (doctor green, empty dashboard OK) before expecting a gate to fire.</p>
155
155
  <div class="grid">
156
156
  <article class="card" id="quickstart"><h3>First gate block in one command</h3><p>Promote your first prevention rule, watch ThumbGate block a repeat mistake live, and unlock the built-in safety rule pack + 3 custom block rules on the Free tier (7-day local Pro trial included).</p><pre><code>npx thumbgate quickstart</code></pre></article>
157
- <article class="card"><h3>CLI and MCP-compatible agents</h3><p>Fastest path for Claude Code, Cursor, Codex, Gemini CLI, Amp, Cline, OpenCode, and local MCP-compatible agents.</p><pre><code>npx -y thumbgate@1.40.5 init --agent claude
158
- npx -y thumbgate@1.40.5 doctor
159
- npx -y thumbgate@1.40.5 doctor --fix</code></pre></article>
160
- <article class="card"><h3>Claude Desktop</h3><p>Use the npm-backed MCP server today. The Claude Desktop `.mcpb` directory submission packet is prepared separately.</p><pre><code>claude mcp add thumbgate -- npx --yes --package thumbgate@1.40.5 thumbgate serve</code></pre></article>
161
- <article class="card"><h3>Cursor</h3><p>The public Cursor Marketplace listing is not live yet. Use the CLI wiring while the dashboard submission is resolved.</p><pre><code>npx -y thumbgate@1.40.5 init --agent cursor</code></pre></article>
162
- <article class="card"><h3>Codex</h3><p>Use the local adapter now. Public Codex self-serve plugin publishing is not open yet, so the GitHub Release asset is the distribution proof.</p><pre><code>npx -y thumbgate@1.40.5 init --agent codex</code></pre></article>
157
+ <article class="card"><h3>CLI and MCP-compatible agents</h3><p>Fastest path for Claude Code, Cursor, Codex, Gemini CLI, Amp, Cline, OpenCode, and local MCP-compatible agents.</p><pre><code>npx -y thumbgate@1.40.6 init --agent claude
158
+ npx -y thumbgate@1.40.6 doctor
159
+ npx -y thumbgate@1.40.6 doctor --fix</code></pre></article>
160
+ <article class="card"><h3>Claude Desktop</h3><p>Use the npm-backed MCP server today. The Claude Desktop `.mcpb` directory submission packet is prepared separately.</p><pre><code>claude mcp add thumbgate -- npx --yes --package thumbgate@1.40.6 thumbgate serve</code></pre></article>
161
+ <article class="card"><h3>Cursor</h3><p>The public Cursor Marketplace listing is not live yet. Use the CLI wiring while the dashboard submission is resolved.</p><pre><code>npx -y thumbgate@1.40.6 init --agent cursor</code></pre></article>
162
+ <article class="card"><h3>Codex</h3><p>Use the local adapter now. Public Codex self-serve plugin publishing is not open yet, so the GitHub Release asset is the distribution proof.</p><pre><code>npx -y thumbgate@1.40.6 init --agent codex</code></pre></article>
163
163
  <article class="card" id="grok"><h3>Grok</h3><p>Grok Build CLI. There is no Grok store listing. This command adds the npm server. <code>npx thumbgate init</code> also writes the Claude-style config Grok reads.</p><pre><code>grok mcp add thumbgate -- npx -y thumbgate mcp</code></pre></article>
164
164
  <article class="card" id="hermes"><h3>Hermes</h3><p>Local hook for Nous Research Hermes. Merge <code>adapters/hermes/config.yaml</code> into <code>~/.hermes/config.yaml</code>. There is no Hermes directory listing.</p><pre><code>npx --yes --package thumbgate thumbgate hermes-gate</code></pre></article>
165
165
  </div>
@@ -170,7 +170,7 @@ npx -y thumbgate@1.40.5 doctor --fix</code></pre></article>
170
170
  <h2>Verified public surfaces.</h2>
171
171
  <p class="section-lede">These are the surfaces safe to claim in public copy right now. Pending surfaces are listed so buyers do not get sent to dead marketplace pages.</p>
172
172
  <div class="status-list">
173
- <div class="status"><span class="badge live">LIVE</span><div><strong><a href="https://www.npmjs.com/package/thumbgate">npm package</a></strong><span>`thumbgate@1.40.5` is the canonical runtime install.</span></div></div>
173
+ <div class="status"><span class="badge live">LIVE</span><div><strong><a href="https://www.npmjs.com/package/thumbgate">npm package</a></strong><span>`thumbgate@1.40.6` is the canonical runtime install.</span></div></div>
174
174
  <div class="status"><span class="badge live">LIVE</span><div><strong><a href="https://marketplace.visualstudio.com/items?itemName=igorganapolsky.thumbgate">VS Code Marketplace</a></strong><span>Marketplace version-list API includes `1.27.20`.</span></div></div>
175
175
  <div class="status"><span class="badge live">LIVE</span><div><strong><a href="https://open-vsx.org/extension/igorganapolsky/thumbgate">Open VSX</a></strong><span>Public registry latest version is `1.27.20`; use this path for VS Code-compatible IDEs that consume Open VSX.</span></div></div>
176
176
  <div class="status"><span class="badge live">LIVE</span><div><strong><a href="https://registry.modelcontextprotocol.io/v0/servers?search=thumbgate">MCP Registry</a></strong><span>Public search returns `io.github.IgorGanapolsky/thumbgate` version `1.27.20` as latest.</span></div></div>
package/public/learn.html CHANGED
@@ -311,6 +311,14 @@
311
311
  </div>
312
312
 
313
313
  <div class="article-grid">
314
+ <a href="/learn/okta-mcp-governance-per-tool-call-gates" class="article-card">
315
+ <h3>Okta Governs the MCP Connection. Who Gates the Tool Call?</h3>
316
+ <p>Okta for AI Agents puts agent registration and MCP servers under one policy. A connection grant still lets every tool on the server run. ThumbGate gates each call before it fires.</p>
317
+ <span class="article-tag">Okta</span>
318
+ <span class="article-tag">MCP Governance</span>
319
+ <span class="article-tag">Per-Tool Gates</span>
320
+ </a>
321
+
314
322
  <a href="/learn/five-walls-enterprise-agent-deployment" class="article-card">
315
323
  <h3>The 5 Walls Between Demo Agents and Deployed Ones: The Infrastructure Blueprint</h3>
316
324
  <p>InfoWorld's breakdown of the 5 walls stalling enterprise AI agents: authentication, data scale, action safety, orchestration state, and trust.</p>
@@ -26,7 +26,7 @@
26
26
  "alternateName": "thumbgate",
27
27
  "applicationCategory": "DeveloperApplication",
28
28
  "operatingSystem": "Cross-platform, Node.js >=18.18.0",
29
- "softwareVersion": "1.40.5",
29
+ "softwareVersion": "1.40.6",
30
30
  "url": "https://thumbgate-production.up.railway.app/numbers",
31
31
  "dateModified": "2026-11-12",
32
32
  "creator": {
@@ -201,7 +201,7 @@
201
201
  <main class="container">
202
202
  <h1>The Numbers</h1>
203
203
  <p class="subtitle">Generated first-party operational snapshot from the ThumbGate runtime. This is not customer traction, install volume, revenue, or proof that a configured gate has fired.</p>
204
- <div class="freshness">Updated: 2026-11-12 · Version 1.40.5</div>
204
+ <div class="freshness">Updated: 2026-11-12 · Version 1.40.6</div>
205
205
  <div class="truth-note"><strong>Read this first:</strong> configured checks are inventory. Recorded blocks and warnings are usage evidence. This snapshot currently reports 8,602 recorded hard-block event(s) and 2 recorded warning event(s).</div>
206
206
 
207
207
  <h2>Gate enforcement</h2>
@@ -49,7 +49,7 @@
49
49
  </ul>
50
50
  </div>
51
51
  <h2>Refunds</h2>
52
- <p>Pro subscription refunds follow the <a href="/terms">Terms of Service</a>. Self-serve Pro: new paid subscribers may request a refund within <strong>7-day</strong> of the initial charge if the product is unusable for a documented platform defect we cannot remediate; thereafter renewals are non-refundable except as required by law. Managed $499 Workflow Gate refunds are defined in Terms (refunded in full only when discovery shows the workflow cannot be reduced to a supported gate, subject to any disclosed diagnostic fee).</p>
52
+ <p>Pro subscription refunds follow the <a href="/terms">Terms of Service</a>. Self-serve Pro: new paid subscribers may request a refund within <strong>7 days</strong> of the initial charge if the product is unusable because of a documented platform defect we cannot remediate; after that, renewals are non-refundable except as required by law. Managed $499 Workflow Gate refunds are defined in Terms (refunded in full only when discovery shows the workflow cannot be reduced to a supported gate, subject to any disclosed diagnostic fee).</p>
53
53
  <h2>Status</h2>
54
54
  <p>API health: <a href="https://thumbgate-production.up.railway.app/health">/health</a>. Open-source issues: <a href="https://github.com/IgorGanapolsky/ThumbGate/issues">GitHub Issues</a>.</p>
55
55
  <h2>Security</h2>
package/public/terms.html CHANGED
@@ -70,7 +70,7 @@
70
70
  <p>Free tiers, open-source local binaries, and promotional trials are provided strictly "AS-IS" without SLA, indemnification, or support obligations.</p>
71
71
 
72
72
  <h3>2.4 Refunds</h3>
73
- <p>Recurring subscription fees are non-refundable except as required by law. The <strong>$499 Workflow Gate</strong> is refundable only if technical discovery determines that your workflow cannot be reduced to a supported ThumbGate gate, subject to a non-refundable diagnostic fee as described in Section 3.</p>
73
+ <p>A new self-serve Pro subscriber may request a refund within <strong>7 days</strong> of the initial charge if the product is unusable because of a documented platform defect we cannot remediate. After that, recurring subscription fees are non-refundable except as required by law. The <strong>$499 Workflow Gate</strong> is refundable only if technical discovery determines that your workflow cannot be reduced to a supported ThumbGate gate, subject to a non-refundable diagnostic fee as described in Section 3.</p>
74
74
 
75
75
  <h3>2.5 Acceptable Use Policy (AUP)</h3>
76
76
  <p>You shall NOT use the Services to violate law, tamper with third-party security, reverse-engineer proprietary cloud components, submit malicious payloads, or conduct unauthorized scraping or spam.</p>
@@ -7,7 +7,15 @@ const fs = require('fs');
7
7
  const path = require('path');
8
8
  const { resolveFeedbackDir } = require('./feedback-paths');
9
9
 
10
+ // Free keeps at most this many learned rules on disk (and enforces the first FREE_TIER_MAX_GATES of them). Pro is not capped:
11
+ // the site promises Pro keeps every learned rule active. Stale rules still expire after the rule TTL, which bounds the file.
10
12
  const MAX_AUTO_GATES = 10;
13
+
14
+ // The most auto-promoted gates to keep for this caller. `options.isPro` (boolean or function) lets a test pick the tier.
15
+ function autoGateLimit(options = {}) {
16
+ const pro = typeof options.isPro === 'function' ? options.isPro() : typeof options.isPro === 'boolean' ? options.isPro : require('./rate-limiter').isProTier();
17
+ return pro ? Infinity : MAX_AUTO_GATES;
18
+ }
11
19
  // 1+ failure auto-promotes to a warning gate. Cold buyers expect "one 👎 → blocked next time"
12
20
  // — a 2-capture threshold made first-capture invisible and broke the activation loop. Block
13
21
  // escalation still requires 3 captures (BLOCK_THRESHOLD) so noise doesn't auto-hard-block.
@@ -573,8 +581,9 @@ function forcePromote(context, action = 'block', options = {}) {
573
581
  data.gates = data.gates.filter((existing) => existing.id !== gateId || existing.projectKey !== project.projectKey);
574
582
  data.gates.unshift(gate);
575
583
 
576
- if (data.gates.length > MAX_AUTO_GATES) {
577
- data.gates = data.gates.slice(0, MAX_AUTO_GATES);
584
+ const keepLimit = autoGateLimit(options);
585
+ if (data.gates.length > keepLimit) {
586
+ data.gates = data.gates.slice(0, keepLimit);
578
587
  }
579
588
 
580
589
  data.promotionLog = data.promotionLog || [];
@@ -709,7 +718,7 @@ function promote(feedbackLogPath, options) {
709
718
  }
710
719
 
711
720
  // Enforce max limit — rotate oldest
712
- if (data.gates.length >= MAX_AUTO_GATES) {
721
+ if (data.gates.length >= autoGateLimit(opts)) {
713
722
  const removed = data.gates.shift();
714
723
  promotions.push({ type: 'rotated', removedGateId: removed.id });
715
724
  }
@@ -808,6 +817,7 @@ module.exports = {
808
817
  getRuleTtlDays,
809
818
  getRuleTtlMs,
810
819
  MAX_AUTO_GATES,
820
+ autoGateLimit,
811
821
  WARN_THRESHOLD,
812
822
  BLOCK_THRESHOLD,
813
823
  WINDOW_DAYS,
@@ -22,6 +22,10 @@
22
22
 
23
23
  const { getOwnerEmails } = require('./bot-detection');
24
24
 
25
+ // When the human-click gate went live: 2026-11-18 7:04 PM ET. Sessions created before it carry no user-agent class.
26
+ const BOT_CHECK_BEGAN_AT = '2026-11-19T00:04:00.000Z';
27
+ const BOT_CHECK_BEGAN_LABEL = '18 Nov 2026, 7:04 PM ET';
28
+
25
29
  function classifySession(session, { ownerEmails = [] } = {}) {
26
30
  const metadata = (session && session.metadata) || {};
27
31
  if (metadata.source === 'internal_audit') return 'internal';
@@ -112,4 +116,4 @@ if (require.main === module) {
112
116
  });
113
117
  }
114
118
 
115
- module.exports = { classifySession, countSessions, listSessions, parseArgs };
119
+ module.exports = { classifySession, countSessions, listSessions, parseArgs, BOT_CHECK_BEGAN_AT, BOT_CHECK_BEGAN_LABEL };
@@ -19,7 +19,9 @@ const { refreshStatuslineCache } = require('./hook-thumbgate-cache-updater');
19
19
  const SYNC_STATE_FILE = 'claude-feedback-sync-state.json';
20
20
  const DEFAULT_RECENT_FEEDBACK_LIMIT = 1000;
21
21
  const DEFAULT_PROCESSED_ID_LIMIT = 4096;
22
- const DUPLICATE_WINDOW_MS = 5 * 60 * 1000;
22
+ // Same typed prompt seen by the live hook and by this history sync: event
23
+ // timestamps are seconds apart. A repeat later than this is a new thumbs-down.
24
+ const DUPLICATE_WINDOW_MS = 30 * 1000;
23
25
  // At this length, identical text + signal is a re-surfaced prompt, not a
24
26
  // repeated sentiment; shorter bare signals stay window-bound.
25
27
  const IDENTICAL_TEXT_DEDUP_MIN_LENGTH = 20;
@@ -229,7 +231,7 @@ function hasMatchingFeedbackEntry(candidate, feedbackEntries) {
229
231
  return true;
230
232
  }
231
233
 
232
- const feedbackTimestamp = Date.parse(entry.timestamp || '');
234
+ const feedbackTimestamp = Date.parse((entry.sourceEvent && entry.sourceEvent.timestamp) || entry.timestamp || '');
233
235
  if (!Number.isFinite(feedbackTimestamp) || !Number.isFinite(candidate.timestampMs)) {
234
236
  return true;
235
237
  }