thumbgate 1.40.8 → 1.40.10

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "thumbgate",
3
3
  "description": "One 👎 becomes a hard rule the agent cannot bypass. Captures thumbs-down feedback, distills it into PreToolUse Pre-Action Checks, enforced across every future Claude Code session.",
4
- "version": "1.40.8",
4
+ "version": "1.40.10",
5
5
  "author": {
6
6
  "name": "Igor Ganapolsky",
7
7
  "email": "ig5973700@gmail.com",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thumbgate",
3
- "version": "1.40.8",
3
+ "version": "1.40.10",
4
4
  "description": "ThumbGate — 👍👎 feedback that teaches your AI agent. Thumbs down a mistake, it never happens again.",
5
5
  "homepage": "https://thumbgate.ai",
6
6
  "transport": "stdio",
@@ -2,17 +2,17 @@
2
2
  "mcpServers": {
3
3
  "thumbgate": {
4
4
  "command": "npx",
5
- "args": ["--yes", "--package", "thumbgate@1.40.8", "thumbgate", "serve"]
5
+ "args": ["--yes", "--package", "thumbgate@1.40.10", "thumbgate", "serve"]
6
6
  }
7
7
  },
8
8
  "hooks": {
9
9
  "preToolUse": {
10
10
  "command": "npx",
11
- "args": ["--yes", "--package", "thumbgate@1.40.8", "thumbgate", "gate-check"]
11
+ "args": ["--yes", "--package", "thumbgate@1.40.10", "thumbgate", "gate-check"]
12
12
  },
13
13
  "userPromptSubmit": {
14
14
  "command": "npx",
15
- "args": ["--yes", "--package", "thumbgate@1.40.8", "thumbgate", "hook-auto-capture"]
15
+ "args": ["--yes", "--package", "thumbgate@1.40.10", "thumbgate", "hook-auto-capture"]
16
16
  }
17
17
  }
18
18
  }
@@ -9,12 +9,12 @@ version: "1"
9
9
  skills:
10
10
  thumbgate-gate-check:
11
11
  description: "ThumbGate PreToolUse gate — blocks known-bad tool calls"
12
- command: "npx --yes --package thumbgate@1.40.8 thumbgate gate-check"
12
+ command: "npx --yes --package thumbgate@1.40.10 thumbgate gate-check"
13
13
  trigger: pre_tool_use
14
14
 
15
15
  thumbgate-feedback:
16
16
  description: "ThumbGate UserPromptSubmit guard & feedback capture — blocks pasted passwords/keys and logs safe prompt context"
17
- command: "npx --yes --package thumbgate@1.40.8 thumbgate hook-auto-capture"
17
+ command: "npx --yes --package thumbgate@1.40.10 thumbgate hook-auto-capture"
18
18
  trigger: user_prompt
19
19
 
20
20
  mcp:
@@ -23,6 +23,6 @@ mcp:
23
23
  args:
24
24
  - "--yes"
25
25
  - "--package"
26
- - "thumbgate@1.40.8"
26
+ - "thumbgate@1.40.10"
27
27
  - "thumbgate"
28
28
  - "serve"
@@ -2,7 +2,7 @@
2
2
  "mcpServers": {
3
3
  "thumbgate": {
4
4
  "command": "npx",
5
- "args": ["--yes", "--package", "thumbgate@1.40.8", "thumbgate", "serve"]
5
+ "args": ["--yes", "--package", "thumbgate@1.40.10", "thumbgate", "serve"]
6
6
  }
7
7
  }
8
8
  }
@@ -1,3 +1,3 @@
1
1
  [mcp.servers.thumbgate]
2
2
  command = "npx"
3
- args = ["--yes", "--package", "thumbgate@1.40.8", "thumbgate", "serve"]
3
+ args = ["--yes", "--package", "thumbgate@1.40.10", "thumbgate", "serve"]
@@ -2,7 +2,7 @@
2
2
  "mcpServers": {
3
3
  "thumbgate": {
4
4
  "command": "npx",
5
- "args": ["--yes", "--package", "thumbgate@1.40.8", "thumbgate", "serve"]
5
+ "args": ["--yes", "--package", "thumbgate@1.40.10", "thumbgate", "serve"]
6
6
  }
7
7
  }
8
8
  }
@@ -1,7 +1,7 @@
1
1
  [plugin]
2
2
  id = "thumbgate-approvals"
3
3
  name = "ThumbGate Approvals"
4
- version = "1.40.8"
4
+ version = "1.40.10"
5
5
  minHerdrVersion = "0.7.0"
6
6
  description = "Pre-action governance, spend guard, and safety approval gates for multi-agent terminal sessions in Herdr."
7
7
  platforms = ["linux", "macos", "windows"]
@@ -12,7 +12,7 @@ category = "Security & Governance"
12
12
 
13
13
  [mcp_server]
14
14
  command = "npx"
15
- args = ["--yes", "--package", "thumbgate@1.40.8", "thumbgate", "serve"]
15
+ args = ["--yes", "--package", "thumbgate@1.40.10", "thumbgate", "serve"]
16
16
 
17
17
  [mcp_server.env]
18
18
  THUMBGATE_ENFORCE_ENTITLEMENTS = "1"
@@ -334,7 +334,7 @@ const {
334
334
  finalizeSession: finalizeFeedbackSession,
335
335
  } = require('../../scripts/feedback-session');
336
336
 
337
- const SERVER_INFO = { name: 'thumbgate-mcp', version: '1.40.8' };
337
+ const SERVER_INFO = { name: 'thumbgate-mcp', version: '1.40.10' };
338
338
  const COMMERCE_CATEGORIES = [
339
339
  'product_recommendation',
340
340
  'brand_compliance',
@@ -7,7 +7,7 @@
7
7
  "npx",
8
8
  "--yes",
9
9
  "--package",
10
- "thumbgate@1.40.8",
10
+ "thumbgate@1.40.10",
11
11
  "thumbgate",
12
12
  "serve"
13
13
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thumbgate",
3
- "version": "1.40.8",
3
+ "version": "1.40.10",
4
4
  "description": "ThumbGate Pre-Action Checks self-improve from ranked lessons and repeated failures, hard-block detected secret leaks, and block matches in strict mode.",
5
5
  "homepage": "https://thumbgate.ai",
6
6
  "repository": {
@@ -763,7 +763,7 @@
763
763
  "test:futureagi-prepost": "node --test tests/futureagi-prepost-gate.test.js",
764
764
  "test:five-walls": "node --test tests/five-walls-governance.test.js",
765
765
  "test:llm-surface-consistency": "node --test tests/llm-surface-consistency.test.js",
766
- "test": "npm run test:python && npm run test:schema && npm run test:loop && npm run test:dpo && npm run test:kto && npm run test:api && npm run test:proof && npm run test:e2e && npm run test:rlaif && npm run test:attribution && npm run test:quality && npm run test:intelligence && npm run test:training-export && npm run test:deployment && npm run test:operational-integrity && npm run test:workflow && npm run test:proof-pack-cadence && npm run test:founder-proof && npm run test:grafana-revenue-evidence && npm run test:billing && npm run test:billing-setup && npm run test:cli && npm run test:watcher && npm run test:autoresearch && npm run test:ops && npm run test:session-analyzer && npm run test:tessl && npm run test:canary && npm run test:gates && npm run test:evoskill && npm run test:gates-hardening && npm run test:workers && npm run test:social-analytics && npm run test:memalign && npm run test:xmemory-lite && npm run test:filesystem-search && npm run test:platform-limits && npm run test:post-video && npm run test:post-everywhere-instagram && npm run test:post-everywhere-channels && npm run test:obsidian-export && npm run test:lesson-db && npm run test:lesson-rotation && npm run test:memory-dedup && npm run test:feedback-quality && npm run test:sync-version && npm run test:release-window && npm run test:check-congruence && npm run test:tool-registry && npm run test:repeat-metric && npm run test:noop-detect && npm run test:action-receipts && npm run test:broker-execution-receipts && npm run test:provider-attestation && npm run test:feedback-to-rules && npm run test:memory-firewall && npm run test:memory-scope-readiness && npm run test:belief-update && npm run test:hosted-config && npm run test:operational-summary && npm run test:operational-dashboard && npm run test:operator-artifacts && npm run test:operator-key-auth && npm run test:cloudflare-sandbox && npm run test:mcp-config && npm run test:mcp-tool-annotations && npm run test:mcp-oauth && npm run test:mcp-oauth-flow && npm run test:plan-gate && npm run test:ai-component-inventory && npm run test:verification-evidence && npm run test:pulse && npm run test:semantic-layer && npm run test:data-pipeline && npm run test:optimize-context && npm run test:principle-extractor && npm run test:analytics-window && npm run test:funnel-analytics && npm run test:experiment-tracker && npm run test:build-metadata && npm run test:context-engine && npm run test:hf-papers && npm run test:marketing-experiment && npm run test:seo-gsd && npm run test:verify-run && npm run test:entitlement && npm run test:export-dpo-pairs && npm run test:export-hf-dataset && npm run test:license && npm run test:imperative-detector && npm run test:audit-pr-bot-contamination && npm run test:stripe-bootstrap-saas-catalog && npm run test:postinstall && npm run test:funnel-invariants && npm run test:cli-telemetry && npm run test:pro-parity && npm run test:model-tier-router && npm run test:computer-use-firewall && npm run test:skill-exporter && npm run test:statusline && npm run test:statusline-cache-aggregate && npm run test:public-repo-hygiene && npm run test:no-internal-orchestration-leaks && npm run test:evolution && npm run test:org-dashboard && npm run test:multi-hop-recall && npm run test:synthetic-dpo && npm run test:thumbgate-skill && npm run test:learn-hub && npm run test:feedback-fallback && npm run test:metaclaw && npm run test:server-lock && npm run test:control-tower && npm run test:pii-scanner && npm run test:data-governance && npm run test:lesson-inference && npm run test:semantic-dedup && npm run test:fs-utils && npm run test:cli-schema && npm run test:explore && npm run test:lesson-reranker && npm run test:lesson-retrieval && npm run test:lesson-graph && npm run test:lesson-semantic-retrieval && npm run test:cross-encoder && npm run test:reflector-agent && npm run test:feedback-session && npm run test:feedback-history-distiller && npm run test:hallucination-detector && npm run test:history-distiller && npm run test:predictive-insights && npm run test:predictive-credible-range && npm run test:prove-predictive-insights && npm run test:statusbar-cli && npm run test:generate-instagram-card && npm run test:instagram-thumbgate-post && npm run test:publish-instagram-thumbgate && npm run test:lesson-synthesis && npm run test:lesson-canonical && npm run test:background-governance && npm run test:memory-migration && npm run test:prompt-dlp && npm run test:ephemeral-store && npm run test:agent-security && npm run test:skill-progressive && npm run test:per-step-scoring && npm run test:weekly-auto-post && npm run test:social-post-hourly && npm run test:social-quality-gate && npm run test:a2ui-engine && npm run test:gate-satisfy && npm run test:money-watcher && npm run test:budget && npm run test:quick-start && npm run test:utm && npm run test:product-feedback && npm run test:feedback-root-consolidator && npm run test:engagement-audit && npm run test:install-growth-automation && npm run test:publish-thumbgate-launch && npm run test:reconcile-thumbgate-campaign && npm run test:reddit-publisher && npm run test:schedule-thumbgate-campaign && npm run test:social-reply-monitor && npm run test:sync-launch-assets && npm run test:ai-search-visibility && npm run test:perplexity && npm run test:vlt && npm run test:hf-context && npm run test:proof-common && npm run test:xss-checkout-escape && npm run test:security-scanner && npm run test:agent-security-central && npm run test:llm-client && npm run test:managed-lesson-agent && npm run test:self-distill && npm run test:meta-agent && npm run test:harness-selector && npm run test:thumbgate-bench && npm run test:seo-guides && npm run test:enforcement-loop && npm run test:cli-agent-experience && npm run test:bot-detection && npm run test:checkout-archived-product-guard && npm run test:postgres-guard && npm run test:checkout-bot-guard && npm run test:checkout-pro-confirmation-gate && npm run test:checkout-human-gate && npm run test:checkout-interstitial-shown-beacon && npm run test:connect-panel && npm run test:first-block-upsell && npm run test:checkout-session-count && npm run test:checkout-utm-attribution && npm run test:utm-source-summary && npm run test:pricing-page-telemetry && npm run test:session-health && npm run test:session-episodes && npm run test:spec-gate && npm run test:decision-trace && npm run test:dashboard-insights && npm run test:telemetry-tracked-link-slug && npm run test:prompt-eval && npm run test:gate-coherence && npm run test:gate-eval && npm run test:high-roi && npm run test:public-static-assets && npm run test:token-savings && npm run test:numbers-page && npm run test:workflow-gate-checkpoint && npm run test:lesson-export-import && npm run test:landing-page-claims && npm run test:competitive-positioning-marketing && npm run test:medium-weekly && npm run test:dashboard-deeplink-e2e && npm run test:public-package-parity && npm run test:token-savings-dashboard && npm run test:cursor-wiring && npm run test:pretooluse-injection && npm run test:recent-corrective-context && npm run test:durability-step && npm run test:mailer && npm run test:brand-assets && npm run test:enforcement-teeth && npm run test:bayes-optimal-gate && npm run test:swarm-coordinator && npm run test:session-report && npm run test:agent-reasoning-traces && npm run test:judge-reward && npm run test:llm-behavior-monitor && npm run test:prompting-os && npm run test:single-use-credential-gate && npm run test:structured-prompt-driven && npm run test:require-evidence-gate && npm run test:universal-claim-evaluator && npm run test:rule-validator && npm run test:bluesky-atproto && npm run test:social-reply-monitor-bluesky && npm run test:bluesky-delete-replies && npm run test:architect-kit-memory-bridge && npm run test:sonar-review-hotspots && npm run test:actionable-remediations && npm run test:gemini-embedding-policy && npm run test:agent-design-governance && npm run test:public-core-boundary && npm run test:hook-stop-verify-deploy && npm run test:hook-stop-anti-claim && npm run test:email-triage-quoting && npm run test:claim-gate-stop && npm run test:feedback-reward-claim-lessons &&npm run test:stop-hook-json-contract && npm run test:plausible-server-events && npm run test:activation-tracker && npm run test:activation-onboarding && npm run test:unified-revenue-rollup && npm run test:conversion-rate-stats && npm run test:external-customer-audit && npm run test:telemetry-export && npm run test:stripe-checkout-diagnostic && npm run test:stripe-business-identity-probe && npm run test:revenue-observability-doctor && npm run test:jsonl-window && npm run test:observability-env && npm run test:glama-mcp && npm run test:prove-glama-mcp && npm run test:public-bundle-ratchet && npm run test:pack-runtime-integrity && npm run test:packed-cli-require-closure && npm run test:hook-self-protection && npm run test:self-protect-enforcement && npm run test:never-bypass-branch-protection && npm run test:stripe-payment-link-update && npm run test:ci-cd-hygiene-audit && npm run test:verify-marketing-pages-deployed && npm run test:install-email-capture && npm run test:install-shim && npm run test:hook-runtime-subcommands && npm run test:implementation-notes && npm run test:enforce-rules-without-daily-cap && npm run test:free-to-paid-conversion-units && npm run test:metrics-real-endpoint && npm run test:cli-trial-and-help && npm run test:cost-cli && npm run test:silent-failure-cluster && npm run test:workos-production-guard && npm run test:partner-landing && npm run test:memory-pyramid && npm run test:proof:truth && node --test tests/adaptive-reliability.test.js && npm run test:mcp-oauth-reviewer && npm run test:dfcx-gate && npm run test:dfcx-gate-server && npm run test:vertex-scorer && npm run test:dashboard-chat && npm run test:gitar-integration && npm run test:secret-redaction && npm run test:discoverable-skills && npm run test:discoverable-skill-skills && npm run test:sync-telemetry && npm run test:leak-scanner && npm run test:team-sync && npm run test:rag-pipeline && npm run test:autonomous-reliability && npm run test:eval-rag && npm run test:async-eval-observability && npm run test:letta-adapter && npm run test:policy-engine-adapter && npm run test:tool-contract-validator && npm run test:check-update && npm run test:hermes-gate && npm run test:memory-provider-enforcement-bridge && npm run test:publisher-credential-guards && npm run test:reddit-browser-notification-watch && npm run test:payment-rails && npm run test:service-checkout-price-integrity && npm run test:cursor-marketplace-doctor && npm run test:github-marketplace-action && npm run test:plugin-hooks-manifest && npm run test:okara-money-promo-automation && npm run test:retrieval-window && npm run test:risk-quality && npm run test:eval-mining && npm run test:state-backup && npm run test:eval-golden && npm run test:task-scope-lease && npm run test:evaluations-page && npm run test:agent-install-paths && npm run test:mcp-gate-check && npm run test:adapter-pins && npm run test:secret-egress && npm run test:harness-tool-names && npm run test:feedback-reward && npm run test:capability-wiring && npm run test:autonomous-mandate && npm run test:memory-near-dupe && npm run test:lesson-retrieval-dedupe-backfill && npm run test:matryoshka-embedding && npm run test:rag-embedding-identity && npm run test:switchyard-router && npm run test:bulk-cloud-tier && npm run test:session-lease && npm run test:compare-agoragentic && npm run test:compare-dirac && npm run test:compare-aperture && npm run test:qwen-adapter && npm run test:qwen38-max-cost-optimizer && npm run test:openai-compatible-embed && npm run test:legal-public-routes && npm run test:gurobi && npm run test:mcp-session-handles && npm run test:agent-egress-policy && npm run test:budget-aware-gates-proof && npm run test:edotenv-rl-gateway && npm run test:rsi-safety-hillclimb && npm run test:research-agent-harness && npm run test:governance-curriculum && npm run test:provider-receipt-contract && npm run test:adaptive-governance-arena && npm run test:gpc-optout && npm run test:override-audit && npm run test:admin-override && npm run test:progressive-wiring && npm run test:security-questionnaire && npm run test:pipeline-compass && npm run test:guide-progressive && npm run test:git-at-scale && npm run test:rule-sprawl && npm run test:hidden-entry && npm run test:solver-parity && npm run test:mcp-writeguard && npm run test:latency-budget && npm run test:gates-tree-scope && npm run test:actor-critic && npm run test:infoq-engage && npm run test:infoq-architect-honesty && npm run test:qwenwork-policy-group && npm run test:hermes-platform && npm run test:future-agi && npm run test:futureagi-prepost && npm run test:five-walls && npm run test:llm-surface-consistency && npm run test:dashboard-oversized-logs && npm run test:agent-action-inventory && npm run test:simatree-data-governance && npm run test:governance-conflict-audit && npm run test:agent-identity-plane && npm run test:mcp-identity-bootstrap && npm run test:alert-noise-ledger && npm run test:webmcp && npm run test:ideabrowser-connector && npm run test:perf-budget && npm run test:agent-loop && npm run test:nvhbm-base-die-gates && npm run test:graphrag-schema-first-multi-hop && npm run test:agentic-prompt-pipelines && npm run test:ai-governance-operating-plan && npm run test:claw-harness-production && npm run test:double-blind-eval-protocol && npm run test:codex-runbook-flywheel && npm run test:explainx-trending && npm run test:graphify && npm run test:tooling-scripts && npm run test:synthetic-customer-panel && npm run test:star-history && npm run test:github-achievement-honesty && npm run test:ai-identity-checklist && npm run test:knowledge-graph-fuse && npm run test:skill-library-compact && npm run test:intent-scope-runtime && npm run test:unicode-tag-block-normalize && npm run test:issue-3702-action-not-substring && npm run test:mantis-critic-review && npm run test:break-glass-gates-propose && npm run test:thumbgate-daily-discoveries-publish && npm run test:agensi-skill-listing && npm run test:tailscale-p2p-adapter && npm run test:siren-mcp && npm run test:vulnerability-diode && npm run test:enterprise-intelligence && npm run test:third-author && npm run test:embeddinggemma && npm run test:session-interactivity && npm run test:operator-framework-page && npm run test:monthly-report && npm run test:checkout-funnel-bot-filter && npm run test:catastrophic-default-deny && npm run test:rule-cap-hit && npm run test:plugin-eval-gate && npm run test:jules-cloud-fleet-dispatcher && npm run test:openrouter-armor-partnership-diode && npm run test:profound-aeo-citation-engine && npm run test:craft-playbook-gate && npm run test:mac-dispatch-loop && npm run test:graphrag-moe-jit-evals && npm run test:egm-goldfish-packet && npm run test:hosted-tenant-isolation && npm run test:owner-admin && npm run test:admin-truth-ui && npm run test:no-orphan-posthog && npm run test:refund-policy-consistency && npm run test:owner-checkout-panel && npm run test:owner-telemetry-visitors && npm run test:project-scope && npm run test:session-context-dedupe",
766
+ "test": "npm run test:python && npm run test:schema && npm run test:loop && npm run test:dpo && npm run test:kto && npm run test:api && npm run test:proof && npm run test:e2e && npm run test:rlaif && npm run test:attribution && npm run test:quality && npm run test:intelligence && npm run test:training-export && npm run test:deployment && npm run test:operational-integrity && npm run test:workflow && npm run test:proof-pack-cadence && npm run test:founder-proof && npm run test:grafana-revenue-evidence && npm run test:billing && npm run test:billing-setup && npm run test:cli && npm run test:watcher && npm run test:autoresearch && npm run test:ops && npm run test:session-analyzer && npm run test:tessl && npm run test:canary && npm run test:gates && npm run test:evoskill && npm run test:gates-hardening && npm run test:workers && npm run test:social-analytics && npm run test:memalign && npm run test:xmemory-lite && npm run test:filesystem-search && npm run test:platform-limits && npm run test:post-video && npm run test:post-everywhere-instagram && npm run test:post-everywhere-channels && npm run test:obsidian-export && npm run test:lesson-db && npm run test:lesson-rotation && npm run test:memory-dedup && npm run test:feedback-quality && npm run test:sync-version && npm run test:release-window && npm run test:check-congruence && npm run test:tool-registry && npm run test:repeat-metric && npm run test:noop-detect && npm run test:action-receipts && npm run test:broker-execution-receipts && npm run test:provider-attestation && npm run test:feedback-to-rules && npm run test:memory-firewall && npm run test:memory-scope-readiness && npm run test:belief-update && npm run test:hosted-config && npm run test:operational-summary && npm run test:operational-dashboard && npm run test:operator-artifacts && npm run test:operator-key-auth && npm run test:cloudflare-sandbox && npm run test:mcp-config && npm run test:mcp-tool-annotations && npm run test:mcp-oauth && npm run test:mcp-oauth-flow && npm run test:plan-gate && npm run test:ai-component-inventory && npm run test:verification-evidence && npm run test:pulse && npm run test:semantic-layer && npm run test:data-pipeline && npm run test:optimize-context && npm run test:principle-extractor && npm run test:analytics-window && npm run test:funnel-analytics && npm run test:experiment-tracker && npm run test:build-metadata && npm run test:context-engine && npm run test:hf-papers && npm run test:marketing-experiment && npm run test:seo-gsd && npm run test:verify-run && npm run test:entitlement && npm run test:export-dpo-pairs && npm run test:export-hf-dataset && npm run test:license && npm run test:imperative-detector && npm run test:audit-pr-bot-contamination && npm run test:stripe-bootstrap-saas-catalog && npm run test:postinstall && npm run test:funnel-invariants && npm run test:cli-telemetry && npm run test:pro-parity && npm run test:model-tier-router && npm run test:computer-use-firewall && npm run test:skill-exporter && npm run test:statusline && npm run test:statusline-cache-aggregate && npm run test:public-repo-hygiene && npm run test:no-internal-orchestration-leaks && npm run test:evolution && npm run test:org-dashboard && npm run test:multi-hop-recall && npm run test:synthetic-dpo && npm run test:thumbgate-skill && npm run test:learn-hub && npm run test:feedback-fallback && npm run test:metaclaw && npm run test:server-lock && npm run test:control-tower && npm run test:pii-scanner && npm run test:data-governance && npm run test:lesson-inference && npm run test:semantic-dedup && npm run test:fs-utils && npm run test:cli-schema && npm run test:explore && npm run test:lesson-reranker && npm run test:lesson-retrieval && npm run test:lesson-graph && npm run test:lesson-semantic-retrieval && npm run test:cross-encoder && npm run test:reflector-agent && npm run test:feedback-session && npm run test:feedback-history-distiller && npm run test:hallucination-detector && npm run test:history-distiller && npm run test:predictive-insights && npm run test:predictive-credible-range && npm run test:prove-predictive-insights && npm run test:statusbar-cli && npm run test:generate-instagram-card && npm run test:instagram-thumbgate-post && npm run test:publish-instagram-thumbgate && npm run test:lesson-synthesis && npm run test:lesson-canonical && npm run test:background-governance && npm run test:memory-migration && npm run test:prompt-dlp && npm run test:ephemeral-store && npm run test:agent-security && npm run test:skill-progressive && npm run test:per-step-scoring && npm run test:weekly-auto-post && npm run test:social-post-hourly && npm run test:social-quality-gate && npm run test:a2ui-engine && npm run test:gate-satisfy && npm run test:money-watcher && npm run test:budget && npm run test:quick-start && npm run test:utm && npm run test:product-feedback && npm run test:feedback-root-consolidator && npm run test:engagement-audit && npm run test:install-growth-automation && npm run test:publish-thumbgate-launch && npm run test:reconcile-thumbgate-campaign && npm run test:reddit-publisher && npm run test:schedule-thumbgate-campaign && npm run test:social-reply-monitor && npm run test:sync-launch-assets && npm run test:ai-search-visibility && npm run test:perplexity && npm run test:vlt && npm run test:hf-context && npm run test:proof-common && npm run test:xss-checkout-escape && npm run test:security-scanner && npm run test:agent-security-central && npm run test:llm-client && npm run test:managed-lesson-agent && npm run test:self-distill && npm run test:meta-agent && npm run test:harness-selector && npm run test:thumbgate-bench && npm run test:seo-guides && npm run test:enforcement-loop && npm run test:cli-agent-experience && npm run test:bot-detection && npm run test:checkout-archived-product-guard && npm run test:postgres-guard && npm run test:checkout-bot-guard && npm run test:checkout-pro-confirmation-gate && npm run test:checkout-human-gate && npm run test:checkout-interstitial-shown-beacon && npm run test:connect-panel && npm run test:first-block-upsell && npm run test:checkout-session-count && npm run test:checkout-utm-attribution && npm run test:utm-source-summary && npm run test:pricing-page-telemetry && npm run test:session-health && npm run test:session-episodes && npm run test:spec-gate && npm run test:decision-trace && npm run test:dashboard-insights && npm run test:telemetry-tracked-link-slug && npm run test:prompt-eval && npm run test:gate-coherence && npm run test:gate-eval && npm run test:high-roi && npm run test:public-static-assets && npm run test:token-savings && npm run test:numbers-page && npm run test:workflow-gate-checkpoint && npm run test:lesson-export-import && npm run test:landing-page-claims && npm run test:competitive-positioning-marketing && npm run test:medium-weekly && npm run test:dashboard-deeplink-e2e && npm run test:public-package-parity && npm run test:token-savings-dashboard && npm run test:cursor-wiring && npm run test:cursor-shell-gate && npm run test:pretooluse-injection && npm run test:recent-corrective-context && npm run test:durability-step && npm run test:mailer && npm run test:brand-assets && npm run test:enforcement-teeth && npm run test:bayes-optimal-gate && npm run test:swarm-coordinator && npm run test:session-report && npm run test:agent-reasoning-traces && npm run test:judge-reward && npm run test:llm-behavior-monitor && npm run test:prompting-os && npm run test:single-use-credential-gate && npm run test:structured-prompt-driven && npm run test:require-evidence-gate && npm run test:universal-claim-evaluator && npm run test:rule-validator && npm run test:bluesky-atproto && npm run test:social-reply-monitor-bluesky && npm run test:bluesky-delete-replies && npm run test:architect-kit-memory-bridge && npm run test:sonar-review-hotspots && npm run test:actionable-remediations && npm run test:gemini-embedding-policy && npm run test:agent-design-governance && npm run test:public-core-boundary && npm run test:hook-stop-verify-deploy && npm run test:hook-stop-anti-claim && npm run test:email-triage-quoting && npm run test:claim-gate-stop && npm run test:feedback-reward-claim-lessons &&npm run test:stop-hook-json-contract && npm run test:plausible-server-events && npm run test:activation-tracker && npm run test:activation-onboarding && npm run test:unified-revenue-rollup && npm run test:conversion-rate-stats && npm run test:external-customer-audit && npm run test:telemetry-export && npm run test:stripe-checkout-diagnostic && npm run test:stripe-business-identity-probe && npm run test:revenue-observability-doctor && npm run test:jsonl-window && npm run test:observability-env && npm run test:glama-mcp && npm run test:prove-glama-mcp && npm run test:public-bundle-ratchet && npm run test:pack-runtime-integrity && npm run test:packed-cli-require-closure && npm run test:hook-self-protection && npm run test:self-protect-enforcement && npm run test:never-bypass-branch-protection && npm run test:stripe-payment-link-update && npm run test:ci-cd-hygiene-audit && npm run test:verify-marketing-pages-deployed && npm run test:install-email-capture && npm run test:install-shim && npm run test:hook-runtime-subcommands && npm run test:implementation-notes && npm run test:enforce-rules-without-daily-cap && npm run test:free-to-paid-conversion-units && npm run test:metrics-real-endpoint && npm run test:cli-trial-and-help && npm run test:cost-cli && npm run test:silent-failure-cluster && npm run test:workos-production-guard && npm run test:partner-landing && npm run test:memory-pyramid && npm run test:proof:truth && node --test tests/adaptive-reliability.test.js && npm run test:mcp-oauth-reviewer && npm run test:dfcx-gate && npm run test:dfcx-gate-server && npm run test:vertex-scorer && npm run test:dashboard-chat && npm run test:gitar-integration && npm run test:secret-redaction && npm run test:discoverable-skills && npm run test:discoverable-skill-skills && npm run test:sync-telemetry && npm run test:leak-scanner && npm run test:team-sync && npm run test:rag-pipeline && npm run test:autonomous-reliability && npm run test:eval-rag && npm run test:async-eval-observability && npm run test:letta-adapter && npm run test:policy-engine-adapter && npm run test:tool-contract-validator && npm run test:check-update && npm run test:hermes-gate && npm run test:memory-provider-enforcement-bridge && npm run test:publisher-credential-guards && npm run test:reddit-browser-notification-watch && npm run test:payment-rails && npm run test:service-checkout-price-integrity && npm run test:cursor-marketplace-doctor && npm run test:github-marketplace-action && npm run test:plugin-hooks-manifest && npm run test:okara-money-promo-automation && npm run test:retrieval-window && npm run test:risk-quality && npm run test:eval-mining && npm run test:state-backup && npm run test:eval-golden && npm run test:task-scope-lease && npm run test:evaluations-page && npm run test:agent-install-paths && npm run test:mcp-gate-check && npm run test:adapter-pins && npm run test:secret-egress && npm run test:harness-tool-names && npm run test:feedback-reward && npm run test:capability-wiring && npm run test:autonomous-mandate && npm run test:memory-near-dupe && npm run test:lesson-retrieval-dedupe-backfill && npm run test:matryoshka-embedding && npm run test:rag-embedding-identity && npm run test:switchyard-router && npm run test:bulk-cloud-tier && npm run test:session-lease && npm run test:compare-agoragentic && npm run test:compare-dirac && npm run test:compare-aperture && npm run test:qwen-adapter && npm run test:qwen38-max-cost-optimizer && npm run test:openai-compatible-embed && npm run test:legal-public-routes && npm run test:gurobi && npm run test:mcp-session-handles && npm run test:agent-egress-policy && npm run test:budget-aware-gates-proof && npm run test:edotenv-rl-gateway && npm run test:rsi-safety-hillclimb && npm run test:research-agent-harness && npm run test:governance-curriculum && npm run test:provider-receipt-contract && npm run test:adaptive-governance-arena && npm run test:gpc-optout && npm run test:override-audit && npm run test:admin-override && npm run test:progressive-wiring && npm run test:security-questionnaire && npm run test:pipeline-compass && npm run test:guide-progressive && npm run test:git-at-scale && npm run test:rule-sprawl && npm run test:hidden-entry && npm run test:solver-parity && npm run test:mcp-writeguard && npm run test:latency-budget && npm run test:gates-tree-scope && npm run test:actor-critic && npm run test:infoq-engage && npm run test:infoq-architect-honesty && npm run test:qwenwork-policy-group && npm run test:hermes-platform && npm run test:future-agi && npm run test:futureagi-prepost && npm run test:five-walls && npm run test:llm-surface-consistency && npm run test:dashboard-oversized-logs && npm run test:agent-action-inventory && npm run test:simatree-data-governance && npm run test:governance-conflict-audit && npm run test:agent-identity-plane && npm run test:mcp-identity-bootstrap && npm run test:alert-noise-ledger && npm run test:webmcp && npm run test:ideabrowser-connector && npm run test:perf-budget && npm run test:agent-loop && npm run test:nvhbm-base-die-gates && npm run test:graphrag-schema-first-multi-hop && npm run test:agentic-prompt-pipelines && npm run test:ai-governance-operating-plan && npm run test:claw-harness-production && npm run test:double-blind-eval-protocol && npm run test:codex-runbook-flywheel && npm run test:explainx-trending && npm run test:graphify && npm run test:tooling-scripts && npm run test:synthetic-customer-panel && npm run test:star-history && npm run test:github-achievement-honesty && npm run test:ai-identity-checklist && npm run test:knowledge-graph-fuse && npm run test:skill-library-compact && npm run test:intent-scope-runtime && npm run test:unicode-tag-block-normalize && npm run test:issue-3702-action-not-substring && npm run test:mantis-critic-review && npm run test:break-glass-gates-propose && npm run test:thumbgate-daily-discoveries-publish && npm run test:agensi-skill-listing && npm run test:tailscale-p2p-adapter && npm run test:siren-mcp && npm run test:vulnerability-diode && npm run test:enterprise-intelligence && npm run test:third-author && npm run test:embeddinggemma && npm run test:session-interactivity && npm run test:operator-framework-page && npm run test:monthly-report && npm run test:checkout-funnel-bot-filter && npm run test:catastrophic-default-deny && npm run test:rule-cap-hit && npm run test:plugin-eval-gate && npm run test:jules-cloud-fleet-dispatcher && npm run test:openrouter-armor-partnership-diode && npm run test:profound-aeo-citation-engine && npm run test:craft-playbook-gate && npm run test:mac-dispatch-loop && npm run test:graphrag-moe-jit-evals && npm run test:egm-goldfish-packet && npm run test:hosted-tenant-isolation && npm run test:owner-admin && npm run test:admin-truth-ui && npm run test:no-orphan-posthog && npm run test:refund-policy-consistency && npm run test:owner-checkout-panel && npm run test:owner-telemetry-visitors && npm run test:project-scope && npm run test:session-context-dedupe",
767
767
  "test:thumbgate-daily-discoveries-publish": "node --test tests/thumbgate-daily-discoveries-publish.test.js",
768
768
  "test:dashboard-oversized-logs": "node --test tests/dashboard-oversized-log-resilience.test.js",
769
769
  "test:python": "python3 -m pytest tests/*.py",
@@ -1188,7 +1188,7 @@
1188
1188
  "prepare": "bash bin/install-hooks.sh >/dev/null 2>&1 || true",
1189
1189
  "install:hooks": "bash bin/install-hooks.sh",
1190
1190
  "test:token-savings-dashboard": "node --test tests/token-savings-dashboard.test.js",
1191
- "test:cursor-wiring": "node --test tests/cursor-wiring.test.js",
1191
+ "test:cursor-wiring": "node --test tests/cursor-wiring.test.js tests/cursor-shell-gate.test.js",
1192
1192
  "test:pretooluse-injection": "node --test tests/pretooluse-lesson-injection.test.js tests/lesson-hook-relevance.test.js",
1193
1193
  "test:recent-corrective-context": "node --test tests/recent-corrective-actions-context.test.js",
1194
1194
  "test:mailer": "node --test tests/mailer.test.js tests/mailer-dns.test.js tests/billing-webhook-email.test.js tests/revenue-email-dispatch.test.js",
@@ -1459,7 +1459,7 @@
1459
1459
  "test:verified-lessons": "node --test tests/verified-lessons.test.js",
1460
1460
  "test:egm-goldfish-packet": "node --test tests/egm-goldfish-packet.test.js",
1461
1461
  "test:hosted-tenant-isolation": "node --test tests/feedback-scope.test.js tests/hosted-tenant-isolation.test.js",
1462
- "test:project-scope": "node --test tests/project-attribution-evidence.test.js tests/project-identity.test.js tests/project-migration.test.js tests/project-gates.test.js tests/project-capture.test.js tests/project-dashboard-api.test.js tests/project-dashboard-browser.test.js tests/project-identity-perf.test.js tests/project-catalog-evidence.test.js tests/project-capture-time-key.test.js",
1462
+ "test:project-scope": "node --test tests/project-attribution-evidence.test.js tests/project-identity.test.js tests/project-migration.test.js tests/project-gates.test.js tests/project-capture.test.js tests/project-dashboard-api.test.js tests/project-dashboard-parity.test.js tests/project-dashboard-browser.test.js tests/project-identity-perf.test.js tests/project-catalog-evidence.test.js tests/project-capture-time-key.test.js",
1463
1463
  "test:project-browser": "THUMBGATE_PROJECT_BROWSER_TEST=1 node --test tests/project-dashboard-browser.test.js",
1464
1464
  "test:owner-telemetry-visitors": "node --test --test-force-exit tests/owner-telemetry-visitors.test.js",
1465
1465
  "test:owner-checkout-panel": "node --test --test-force-exit tests/owner-checkout-panel.test.js",
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.8">
8
+ <meta name="thumbgate-version" content="1.40.10">
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.8</span>
1068
+ <span>ThumbGate · MIT License · npm v1.40.10</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>
@@ -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.8</span></div>
143
+ <div class="proof"><strong>npm</strong><span>thumbgate@1.40.10</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.8 init --agent claude
158
- npx -y thumbgate@1.40.8 doctor
159
- npx -y thumbgate@1.40.8 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.8 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.8 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.8 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.10 init --agent claude
158
+ npx -y thumbgate@1.40.10 doctor
159
+ npx -y thumbgate@1.40.10 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.10 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.10 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.10 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.8 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.8` 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.10` 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>
@@ -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.8",
29
+ "softwareVersion": "1.40.10",
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.8</div>
204
+ <div class="freshness">Updated: 2026-11-12 · Version 1.40.10</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>
@@ -2,11 +2,13 @@
2
2
  'use strict';
3
3
  var selected = new URL(window.location.href).searchParams.get('project');
4
4
  if (selected === 'all') selected = null;
5
+ var selectedDir = selected ? new URL(window.location.href).searchParams.get('projectDir') : null;
5
6
  var loading = null;
6
7
  function url(input) {
7
8
  var target = new URL(input, window.location.origin);
8
9
  if (target.origin !== window.location.origin) return target.href;
9
10
  if (selected) target.searchParams.set('project', selected);
11
+ if (selected && selectedDir) target.searchParams.set('projectDir', selectedDir);
10
12
  return target.pathname + target.search + target.hash;
11
13
  }
12
14
  function mount() {
@@ -19,9 +21,9 @@
19
21
  label.htmlFor = 'projectSwitcher'; label.textContent = 'Project';
20
22
  var select = document.createElement('select');
21
23
  select.id = 'projectSwitcher'; select.style.cssText = 'margin:0 12px;padding:8px;max-width:100%;background:var(--bg-raised,#18181b);color:var(--text,#fafafa);border:1px solid var(--border,#444);border-radius:6px';
22
- var all = document.createElement('option'); all.value = ''; all.textContent = 'All projects'; select.appendChild(all);
24
+ var all = document.createElement('option'); all.value = ''; all.textContent = 'All projects (account-wide, not one project)'; select.appendChild(all);
23
25
  if (selected) { var pending = document.createElement('option'); pending.value = selected; pending.textContent = 'Selected project'; select.appendChild(pending); select.value = selected; }
24
- select.addEventListener('change', function () { var next = new URL(window.location.href); if (select.value) next.searchParams.set('project', select.value); else next.searchParams.delete('project'); window.location.assign(next.href); });
26
+ select.addEventListener('change', function () { var next = new URL(window.location.href); next.searchParams.delete('projectDir'); if (select.value) next.searchParams.set('project', select.value); else next.searchParams.delete('project'); window.location.assign(next.href); });
25
27
  var status = document.createElement('span'); status.id = 'projectStatus'; status.setAttribute('role', 'status');
26
28
  var cards = document.createElement('div'); cards.id = 'projectCards'; cards.style.cssText = 'display:flex;gap:12px;flex-wrap:wrap;margin-top:12px';
27
29
  var sharedGates = document.createElement('p'); sharedGates.id = 'projectGlobalGates';
@@ -40,7 +42,7 @@
40
42
  projects.forEach(function (project) { var option = document.createElement('option'); option.value = project.projectKey; option.textContent = project.projectName; select.appendChild(option); });
41
43
  select.value = selected || '';
42
44
  var current = projects.find(function (project) { return project.projectKey === selected; });
43
- document.getElementById('projectStatus').textContent = current ? current.projectName : 'All projects in this account';
45
+ document.getElementById('projectStatus').textContent = current ? current.projectName : 'Account-wide view: mixes every project and store. Pick a project for its own numbers.';
44
46
  document.getElementById('projectGlobalGates').textContent = (data.globalGateCount || 0) + ' global gates shared across projects';
45
47
  var cards = document.getElementById('projectCards'); cards.replaceChildren();
46
48
  if (!selected) projects.forEach(function (project) {
@@ -29,6 +29,7 @@ const {
29
29
  sessionStartHookCommand,
30
30
  statuslineCommand,
31
31
  userPromptHookCommand,
32
+ cursorShellGateHookCommand,
32
33
  } = require('./hook-runtime');
33
34
  const { installShim } = require('./install-shim');
34
35
 
@@ -134,6 +135,64 @@ function cursorMcpConfigPath() {
134
135
  return path.join(process.cwd(), '.cursor', 'mcp.json');
135
136
  }
136
137
 
138
+ function cursorHooksJsonPath() {
139
+ return path.join(getHome(), '.cursor', 'hooks.json');
140
+ }
141
+
142
+ function isStaleCursorGateCheckHook(entry) {
143
+ const command = String(entry?.command || '');
144
+ return command.includes('thumbgate') && command.includes('gate-check');
145
+ }
146
+
147
+ function wireCursorBeforeShellGate(options = {}) {
148
+ const hooksPath = options.cursorHooksPath || cursorHooksJsonPath();
149
+ const command = cursorShellGateHookCommand();
150
+ const hookEntry = { command, timeout: 10 };
151
+ const added = [];
152
+
153
+ let existing = { hooks: { beforeShellExecution: [] }, version: 1 };
154
+ if (fs.existsSync(hooksPath)) {
155
+ try {
156
+ existing = JSON.parse(fs.readFileSync(hooksPath, 'utf8'));
157
+ } catch {
158
+ return { changed: false, error: `Could not parse ${hooksPath}`, settingsPath: hooksPath, added: [] };
159
+ }
160
+ }
161
+ if (!existing.hooks) existing.hooks = {};
162
+ if (!Array.isArray(existing.hooks.beforeShellExecution)) {
163
+ existing.hooks.beforeShellExecution = [];
164
+ }
165
+
166
+ const beforeShell = existing.hooks.beforeShellExecution;
167
+ const staleRemoved = beforeShell.filter(isStaleCursorGateCheckHook);
168
+ if (staleRemoved.length > 0) {
169
+ existing.hooks.beforeShellExecution = beforeShell.filter((entry) => !isStaleCursorGateCheckHook(entry));
170
+ for (const entry of staleRemoved) {
171
+ added.push({ lifecycle: 'beforeShellExecution (removed stale gate-check)', command: entry.command });
172
+ }
173
+ }
174
+
175
+ const alreadyWired = beforeShell.some((entry) => entry.command === command);
176
+ if (!alreadyWired) {
177
+ existing.hooks.beforeShellExecution.unshift(hookEntry);
178
+ added.unshift({ lifecycle: 'beforeShellExecution', command });
179
+ }
180
+
181
+ const changed = staleRemoved.length > 0 || !alreadyWired;
182
+ if (!changed) {
183
+ return { changed: false, settingsPath: hooksPath, added: [] };
184
+ }
185
+
186
+ if (options.dryRun) {
187
+ return { changed: true, dryRun: true, settingsPath: hooksPath, added };
188
+ }
189
+
190
+ const dir = path.dirname(hooksPath);
191
+ if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
192
+ fs.writeFileSync(hooksPath, JSON.stringify(existing, null, 2) + '\n');
193
+ return { changed: true, settingsPath: hooksPath, added };
194
+ }
195
+
137
196
  function wireCursorHooks(options = {}) {
138
197
  const mcpPath = cursorMcpConfigPath();
139
198
  const dir = path.dirname(mcpPath);
@@ -161,22 +220,51 @@ function wireCursorHooks(options = {}) {
161
220
  command: `${thumbgateServer.command} ${thumbgateServer.args.join(' ')}`,
162
221
  };
163
222
 
223
+ const shellGateOpts = {
224
+ ...options,
225
+ cursorHooksPath: options.cursorHooksPath,
226
+ };
227
+
164
228
  if (options.dryRun) {
165
- return {
166
- changed: before !== after,
229
+ const shellGate = wireCursorBeforeShellGate(shellGateOpts);
230
+ const mcpChanged = before !== after;
231
+ return {
232
+ changed: mcpChanged || shellGate.changed,
167
233
  dryRun: true,
168
- settingsPath: mcpPath,
169
- added: before === after ? [] : [addedEntry],
234
+ settingsPath: shellGate.settingsPath && shellGate.settingsPath !== mcpPath
235
+ ? `${mcpPath}, ${shellGate.settingsPath}`
236
+ : mcpPath,
237
+ added: (mcpChanged ? [addedEntry] : []).concat(shellGate.added || []),
238
+ shellGate,
170
239
  };
171
240
  }
172
241
 
173
242
  if (before === after) {
243
+ const shellGate = wireCursorBeforeShellGate(shellGateOpts);
244
+ if (shellGate.changed) {
245
+ return {
246
+ changed: true,
247
+ settingsPath: shellGate.settingsPath || mcpPath,
248
+ added: shellGate.added || [],
249
+ shellGate,
250
+ };
251
+ }
174
252
  return { changed: false, settingsPath: mcpPath, added: [] };
175
253
  }
176
254
 
177
255
  if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
178
256
  fs.writeFileSync(mcpPath, JSON.stringify(existing, null, 2) + '\n');
179
- return { changed: true, settingsPath: mcpPath, added: [addedEntry] };
257
+ const shellGate = wireCursorBeforeShellGate(shellGateOpts);
258
+ const combinedAdded = [addedEntry].concat(shellGate.added || []);
259
+ const settingsPath = shellGate.settingsPath && shellGate.settingsPath !== mcpPath
260
+ ? `${mcpPath}, ${shellGate.settingsPath}`
261
+ : mcpPath;
262
+ return {
263
+ changed: true,
264
+ settingsPath,
265
+ added: combinedAdded,
266
+ shellGate,
267
+ };
180
268
  }
181
269
 
182
270
  // --- Claude Code wiring ---
@@ -814,6 +814,7 @@ const CLI_COMMANDS = [
814
814
  flags: [],
815
815
  },
816
816
  {
817
+ <<<<<<< HEAD
817
818
  name: 'cuda-gate',
818
819
  aliases: ['cuda-gate-batch'],
819
820
  description: 'CUDA-inspired parallel PreToolUse gate evaluation (SIMT + shared-memory hot cache)',
@@ -836,6 +837,12 @@ const CLI_COMMANDS = [
836
837
  { name: 'json', type: 'boolean', description: 'Output as JSON' },
837
838
  { name: 'memory-dir', type: 'string', description: 'Custom memory directory path' },
838
839
  ],
840
+ =======
841
+ name: 'cursor-shell-gate',
842
+ description: 'Cursor beforeShellExecution hook: map command JSON to gate pipeline and emit permission allow/deny',
843
+ group: 'gates',
844
+ flags: [],
845
+ >>>>>>> c47af0f9f (feat(cursor): add beforeShellExecution adapter for gate-check)
839
846
  },
840
847
  {
841
848
  name: 'force-gate',
@@ -2479,7 +2479,7 @@ function analyzeFeedback(logPath, options = {}) {
2479
2479
  maxLines: Number(options.maxLines) > 0 ? Number(options.maxLines) : 20_000,
2480
2480
  maxBytes: Number(options.maxBytes) > 0 ? Number(options.maxBytes) : 4 * 1024 * 1024,
2481
2481
  });
2482
- if (options.projectKey != null) entries = require('./project-catalog').readProjectRows(feedbackDir, 'feedback-log.jsonl', options);
2482
+ if (options.projectKey != null && !Array.isArray(options.entries)) entries = require('./project-catalog').readProjectRows(feedbackDir, 'feedback-log.jsonl', options);
2483
2483
  const rawTotal = entries.length;
2484
2484
  if (options.humanOnly) {
2485
2485
  // strictHuman (status line) also drops entries scraped from prompt text.
@@ -128,6 +128,10 @@ function codexStatuslineCommand() {
128
128
  return buildCodexPortableHookCommand('statusline-render');
129
129
  }
130
130
 
131
+ function cursorShellGateHookCommand() {
132
+ return `node ${shellQuote(path.join(PKG_ROOT, 'scripts', 'cursor-shell-gate.js'))}`;
133
+ }
134
+
131
135
  module.exports = {
132
136
  buildPortableHookCommand,
133
137
  buildCodexPortableHookCommand,
@@ -148,4 +152,5 @@ module.exports = {
148
152
  sessionStartHookCommand,
149
153
  statuslineCommand,
150
154
  userPromptHookCommand,
155
+ cursorShellGateHookCommand,
151
156
  };
@@ -2,11 +2,27 @@
2
2
 
3
3
  const { readProjectRows, readProjectGates, buildProjectCatalog } = require('./project-catalog');
4
4
 
5
+ // When the caller names the project folder, count feedback exactly as the status line does
6
+ // (same stores, same human filter), so "this project" and the dashboard cannot disagree.
7
+ function projectFeedback(keyedRows, options) {
8
+ if (options.projectDir && options.projectKey && options.projectKey !== 'unassigned') {
9
+ const env = { ...(options.env || process.env) };
10
+ delete env.THUMBGATE_FEEDBACK_DIR;
11
+ delete env.THUMBGATE_PROJECT_DIR;
12
+ const counted = require('./statusline-human-counts').collectHumanRows({ cwd: options.projectDir, projectDir: options.projectDir, env });
13
+ if (counted.projectKey === options.projectKey) {
14
+ const isUp = (row) => ['up', 'positive', 'thumbs_up'].includes(String(row.signal || row.feedback).toLowerCase());
15
+ return counted.rows.map((row) => ({ ...row, signal: isUp(row) ? 'positive' : 'negative' }));
16
+ }
17
+ }
18
+ return keyedRows.filter((row) => !options.humanOnly || !row.reviewOrigin || row.reviewOrigin === 'human');
19
+ }
20
+
5
21
  function generateProjectDashboard(feedbackDir, options = {}) {
6
22
  const dashboard = require('./dashboard');
7
23
  options = { ...options, attribution: options.attribution || require('./project-catalog').accountAttribution(feedbackDir, options) };
8
24
  const rows = (file) => readProjectRows(feedbackDir, file, options);
9
- const feedback = rows('feedback-log.jsonl').filter((row) => !options.humanOnly || !row.reviewOrigin || row.reviewOrigin === 'human');
25
+ const feedback = projectFeedback(rows('feedback-log.jsonl'), options);
10
26
  const memories = rows('memory-log.jsonl');
11
27
  const audit = rows('audit-trail.jsonl');
12
28
  const gates = readProjectGates(feedbackDir, options).filter((gate) => gate.active !== false && gate.enabled !== false).map((gate) => ({ ...gate, name: gate.name || gate.id, scopeLabel: gate.scope === 'global' ? 'Global' : 'Project' }));
@@ -41,7 +57,7 @@ function generateProjectDashboard(feedbackDir, options = {}) {
41
57
  const unavailableMetrics = ['analytics', 'billing', 'prevention', 'harness', 'health', 'delegation', 'observability', 'instrumentation', 'readiness', 'agentSurfaceInventory', 'backgroundAgents', 'regulatedProof', 'interventionPolicy', 'decisions', 'settingsStatus', 'team', 'templateLibrary', 'predictive', 'tokenSavings'];
42
58
  const data = Object.fromEntries(unavailableMetrics.map((name) => [name, null]));
43
59
  const today = auditDays.at(-1);
44
- const feedbackAnalysis = require('./feedback-loop').analyzeFeedback(require('node:path').join(feedbackDir, 'feedback-log.jsonl'), { ...options, entries: feedback });
60
+ const feedbackAnalysis = require('./feedback-loop').analyzeFeedback(require('node:path').join(feedbackDir, 'feedback-log.jsonl'), { ...options, entries: feedback, humanOnly: false });
45
61
  return {
46
62
  ...data, projectKey: options.projectKey, project, unavailableMetrics,
47
63
  operational: { source: 'project-records' }, approval: dashboard.computeApprovalStats(feedback), gateStats, gates,
@@ -58,4 +74,4 @@ function generateProjectDashboard(feedbackDir, options = {}) {
58
74
  lessonPipeline: { stages: [{ id: 'feedback', label: 'Feedback Signals', count: feedback.length }, { id: 'lessons', label: 'Lessons Distilled', count: memories.length }, { id: 'gates', label: 'Project Gates', count: gateStats.autoCount }, { id: 'blocked', label: 'Actions Blocked', count: gateStats.blocked }], rates: { feedbackToLesson: feedback.length ? Math.round(memories.length / feedback.length * 100) : 0, lessonToGate: memories.length ? Math.round(gateStats.autoCount / memories.length * 100) : 0 } },
59
75
  };
60
76
  }
61
- module.exports = { generateProjectDashboard };
77
+ module.exports = { generateProjectDashboard, projectFeedback };
@@ -36,10 +36,10 @@ function isScrapedHumanThumb(row) {
36
36
  return tags.includes('claude-history-sync');
37
37
  }
38
38
 
39
- function computeHumanCounts(options = {}) {
39
+ function collectHumanRows(options = {}) {
40
40
  const env = options.env || process.env;
41
41
  const cwd = options.cwd || process.cwd();
42
- const projectDir = resolveProjectDir({ cwd, env });
42
+ const projectDir = resolveProjectDir({ cwd, env, projectDir: options.projectDir });
43
43
  const feedbackDir = resolveFeedbackDir({ projectDir, env });
44
44
  const { projectKey } = resolveLocalProject(projectDir);
45
45
  const projectName = path.basename(projectDir);
@@ -86,11 +86,17 @@ function computeHumanCounts(options = {}) {
86
86
  return Boolean(signal) && at !== null && scraped[signal].some((t) => Math.abs(t - at) <= CORROBORATION_MS);
87
87
  };
88
88
 
89
+ const counted = mineRows.filter((row) => normalizeSignal(row)
90
+ && (isCountedHumanFeedback(row) || (isLegacyMcpCapture(row) && corroborated(row))));
91
+ return { rows: counted, projectKey, projectName, projectDir };
92
+ }
93
+
94
+ function computeHumanCounts(options = {}) {
95
+ const { rows, projectName } = collectHumanRows(options);
89
96
  let up = 0;
90
97
  let down = 0;
91
98
  let latestDown = null;
92
- for (const row of mineRows) {
93
- if (!(isCountedHumanFeedback(row) || (isLegacyMcpCapture(row) && corroborated(row)))) continue;
99
+ for (const row of rows) {
94
100
  const signal = normalizeSignal(row);
95
101
  if (signal === 'up') up += 1;
96
102
  if (signal === 'down') {
@@ -133,4 +139,4 @@ if (process.argv[1] && path.resolve(process.argv[1]) === path.resolve(__filename
133
139
  }
134
140
  }
135
141
 
136
- module.exports = { computeHumanCounts };
142
+ module.exports = { computeHumanCounts, collectHumanRows };
@@ -129,6 +129,12 @@ function launchLocalServer(options = {}) {
129
129
  return state;
130
130
  }
131
131
 
132
+ function projectQuery(projectDir) {
133
+ let key = '';
134
+ try { key = require('./project-identity').resolveLocalProject(projectDir).projectKey; } catch { key = ''; }
135
+ return `${key ? `project=${encodeURIComponent(key)}&` : ''}projectDir=${encodeURIComponent(projectDir)}`;
136
+ }
137
+
132
138
  function buildLinkState({
133
139
  ready,
134
140
  booting,
@@ -139,6 +145,8 @@ function buildLinkState({
139
145
  // The thumb links carry the project so a click is recorded for the project the
140
146
  // status line shows, not for whichever directory the local server started in.
141
147
  const projectParam = projectDir ? `&projectDir=${encodeURIComponent(projectDir)}` : '';
148
+ // Dashboard and Lessons open pinned to this project, never the account-wide view.
149
+ const pinned = projectDir ? `?${projectQuery(projectDir)}` : '';
142
150
  if (ready) {
143
151
  return {
144
152
  state: 'ready',
@@ -146,8 +154,8 @@ function buildLinkState({
146
154
  lessonsLabel: 'Lessons',
147
155
  upLabel: '👍',
148
156
  downLabel: '👎',
149
- dashboardUrl: `${origin}/dashboard`,
150
- lessonsUrl: `${origin}/lessons`,
157
+ dashboardUrl: `${origin}/dashboard${pinned}`,
158
+ lessonsUrl: `${origin}/lessons${pinned}`,
151
159
  upUrl: `${origin}/feedback/quick?signal=up${projectParam}`,
152
160
  downUrl: `${origin}/feedback/quick?signal=down${projectParam}`,
153
161
  };
@@ -710,10 +710,16 @@ const WINDOW_TELEMETRY_TAIL_BYTES = Object.freeze({
710
710
  '90d': 64 * 1024 * 1024,
711
711
  });
712
712
 
713
+ // The unbounded (lifetime) window must read at least as much as any bounded window. Left
714
+ // without a budget, readTextTail() fell back to a 4 MB tail on logs over 64 MB, so lifetime
715
+ // visitors (1,950) came out below 30-day visitors (13,947) in production.
716
+ const LIFETIME_TELEMETRY_TAIL_BYTES = Math.max(...Object.values(WINDOW_TELEMETRY_TAIL_BYTES));
717
+
713
718
  function resolveBoundedTelemetryTailBytes(analyticsWindow, options = {}) {
714
719
  const explicit = Number(options.telemetryTailBytes);
715
720
  if (Number.isFinite(explicit) && explicit > 0) return explicit;
716
721
  const windowKey = analyticsWindow?.window;
722
+ if (windowKey === 'lifetime') return LIFETIME_TELEMETRY_TAIL_BYTES;
717
723
  return WINDOW_TELEMETRY_TAIL_BYTES[windowKey] || DEFAULT_BOUNDED_TELEMETRY_TAIL_BYTES;
718
724
  }
719
725
 
@@ -980,9 +986,7 @@ function summarizeExternalTrafficQuality(events) {
980
986
 
981
987
  function getTelemetrySummary(feedbackDir, options = {}) {
982
988
  const analyticsWindow = resolveAnalyticsWindow(options);
983
- const telemetryLoadOptions = analyticsWindow.bounded
984
- ? { maxBytes: resolveBoundedTelemetryTailBytes(analyticsWindow, options) }
985
- : {};
989
+ const telemetryLoadOptions = { maxBytes: resolveBoundedTelemetryTailBytes(analyticsWindow, options) };
986
990
  // readTextTail() applies an unconditional ceiling even for the unbounded
987
991
  // ("lifetime") window, so a large enough telemetry log is read as a tail.
988
992
  // Carry that fact through instead of presenting a tail as complete history.
package/server.json CHANGED
@@ -8,13 +8,13 @@
8
8
  "source": "github",
9
9
  "url": "https://github.com/IgorGanapolsky/ThumbGate"
10
10
  },
11
- "version": "1.40.8",
11
+ "version": "1.40.10",
12
12
  "packages": [
13
13
  {
14
14
  "registryType": "npm",
15
15
  "registryBaseUrl": "https://registry.npmjs.org",
16
16
  "identifier": "thumbgate",
17
- "version": "1.40.8",
17
+ "version": "1.40.10",
18
18
  "runtimeHint": "npx",
19
19
  "runtimeArguments": [
20
20
  {
package/src/api/server.js CHANGED
@@ -11775,7 +11775,8 @@ footer{margin-top:40px;padding-top:20px;border-top:1px solid #e5e7eb;color:#6b72
11775
11775
  if (req.method === 'GET' && pathname === '/v1/projects') { sendJson(res, 200, buildProjectCatalog(requestFeedbackDir, projectOptions)); return; }
11776
11776
  if (requestProjectKey != null && req.method === 'GET' && ['/v1/dashboard', '/v1/feedback/stats'].includes(pathname)) {
11777
11777
  const data = generateDashboard(requestFeedbackDir, {
11778
- projectKey: requestProjectKey, ...projectOptions, humanOnly: true });
11778
+ projectKey: requestProjectKey, ...projectOptions, humanOnly: true,
11779
+ projectDir: getEffectiveRequestedProjectSelection(req, parsed) || undefined });
11779
11780
  const tier = resolvePaidSessionTier(extractApiKey(req), expectedApiKey, expectedOperatorKey) || 'pro';
11780
11781
  if (pathname === '/v1/dashboard') sendJson(res, 200, { ...data, tier });
11781
11782
  else sendJson(res, 200, { ...data.feedbackAnalysis, projectKey: requestProjectKey, tier, gateStats: data.gateStats, activeGateCount: data.gateStats.totalGates, todayOverview: data.todayOverview });