thumbgate 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/.claude-plugin/marketplace.json +32 -13
  2. package/.claude-plugin/plugin.json +15 -2
  3. package/.well-known/llms.txt +60 -0
  4. package/.well-known/mcp/server-card.json +1 -1
  5. package/README.md +109 -20
  6. package/adapters/README.md +1 -1
  7. package/adapters/chatgpt/openapi.yaml +168 -0
  8. package/adapters/claude/.mcp.json +2 -2
  9. package/adapters/codex/config.toml +2 -2
  10. package/adapters/mcp/server-stdio.js +84 -1
  11. package/adapters/opencode/opencode.json +1 -1
  12. package/bin/cli.js +200 -13
  13. package/bin/postinstall.js +8 -2
  14. package/config/budget.json +18 -0
  15. package/config/gates/code-edit.json +61 -0
  16. package/config/gates/db-write.json +61 -0
  17. package/config/gates/default.json +154 -3
  18. package/config/gates/deploy.json +61 -0
  19. package/config/github-about.json +2 -1
  20. package/config/merge-quality-checks.json +23 -0
  21. package/openapi/openapi.yaml +168 -0
  22. package/package.json +42 -10
  23. package/plugins/claude-codex-bridge/.claude-plugin/plugin.json +1 -1
  24. package/plugins/claude-codex-bridge/.mcp.json +1 -1
  25. package/plugins/claude-codex-bridge/scripts/codex-bridge.js +1 -3
  26. package/plugins/codex-profile/.codex-plugin/plugin.json +1 -1
  27. package/plugins/codex-profile/.mcp.json +1 -1
  28. package/plugins/codex-profile/INSTALL.md +27 -4
  29. package/plugins/codex-profile/README.md +33 -9
  30. package/plugins/cursor-marketplace/.cursor-plugin/plugin.json +1 -1
  31. package/plugins/opencode-profile/INSTALL.md +1 -1
  32. package/public/blog.html +73 -0
  33. package/public/compare/mem0.html +189 -0
  34. package/public/compare/speclock.html +180 -0
  35. package/public/compare.html +10 -2
  36. package/public/guide.html +2 -2
  37. package/public/guides/claude-code-prevent-repeated-mistakes.html +161 -0
  38. package/public/guides/codex-cli-guardrails.html +158 -0
  39. package/public/guides/cursor-prevent-repeated-mistakes.html +161 -0
  40. package/public/guides/pre-action-gates.html +162 -0
  41. package/public/guides/stop-repeated-ai-agent-mistakes.html +159 -0
  42. package/public/index.html +136 -50
  43. package/public/lessons.html +33 -24
  44. package/public/llm-context.md +140 -0
  45. package/public/pro.html +24 -22
  46. package/scripts/__pycache__/train_from_feedback.cpython-312.pyc +0 -0
  47. package/scripts/access-anomaly-detector.js +1 -1
  48. package/scripts/adk-consolidator.js +1 -5
  49. package/scripts/agent-security-hardening.js +4 -6
  50. package/scripts/agentic-data-pipeline.js +1 -3
  51. package/scripts/async-job-runner.js +1 -5
  52. package/scripts/audit-trail.js +1 -5
  53. package/scripts/background-agent-governance.js +2 -10
  54. package/scripts/billing.js +2 -16
  55. package/scripts/budget-enforcer.js +173 -0
  56. package/scripts/build-codex-plugin.js +152 -0
  57. package/scripts/check-congruence.js +132 -14
  58. package/scripts/commercial-offer.js +5 -7
  59. package/scripts/content-engine/linkedin-content-generator.js +154 -0
  60. package/scripts/content-engine/output/linkedin-memento-validation.md +17 -0
  61. package/scripts/content-engine/output/linkedin-posts-2026-04-09.md +175 -0
  62. package/scripts/content-engine/reddit-thread-finder.js +154 -0
  63. package/scripts/context-engine.js +21 -6
  64. package/scripts/contextfs.js +1 -21
  65. package/scripts/dashboard.js +20 -0
  66. package/scripts/decision-journal.js +341 -0
  67. package/scripts/delegation-runtime.js +1 -5
  68. package/scripts/distribution-surfaces.js +26 -0
  69. package/scripts/document-intake.js +927 -0
  70. package/scripts/ephemeral-agent-store.js +1 -8
  71. package/scripts/evolution-state.js +1 -5
  72. package/scripts/experiment-tracker.js +1 -5
  73. package/scripts/export-databricks-bundle.js +1 -5
  74. package/scripts/export-hf-dataset.js +1 -5
  75. package/scripts/export-training.js +1 -5
  76. package/scripts/feedback-attribution.js +1 -16
  77. package/scripts/feedback-history-distiller.js +1 -16
  78. package/scripts/feedback-loop.js +1 -5
  79. package/scripts/feedback-root-consolidator.js +2 -21
  80. package/scripts/feedback-session.js +49 -0
  81. package/scripts/feedback-to-rules.js +188 -28
  82. package/scripts/filesystem-search.js +1 -9
  83. package/scripts/fs-utils.js +104 -0
  84. package/scripts/gates-engine.js +149 -4
  85. package/scripts/github-about.js +32 -8
  86. package/scripts/gtm-revenue-loop.js +1 -5
  87. package/scripts/harness-selector.js +148 -0
  88. package/scripts/hosted-job-launcher.js +1 -5
  89. package/scripts/hybrid-feedback-context.js +7 -33
  90. package/scripts/intervention-policy.js +58 -1
  91. package/scripts/lesson-db.js +3 -18
  92. package/scripts/lesson-inference.js +194 -16
  93. package/scripts/lesson-retrieval.js +60 -24
  94. package/scripts/llm-client.js +59 -0
  95. package/scripts/managed-lesson-agent.js +183 -0
  96. package/scripts/marketing-experiment.js +8 -22
  97. package/scripts/meta-agent-loop.js +624 -0
  98. package/scripts/metered-billing.js +1 -1
  99. package/scripts/money-watcher.js +1 -4
  100. package/scripts/obsidian-export.js +1 -5
  101. package/scripts/operational-integrity.js +15 -3
  102. package/scripts/org-dashboard.js +6 -1
  103. package/scripts/per-step-scoring.js +2 -4
  104. package/scripts/pr-manager.js +201 -19
  105. package/scripts/pro-features.js +3 -2
  106. package/scripts/prompt-dlp.js +3 -3
  107. package/scripts/prove-adapters.js +1 -5
  108. package/scripts/prove-attribution.js +1 -5
  109. package/scripts/prove-automation.js +1 -3
  110. package/scripts/prove-cloudflare-sandbox.js +1 -3
  111. package/scripts/prove-data-pipeline.js +1 -3
  112. package/scripts/prove-intelligence.js +1 -3
  113. package/scripts/prove-lancedb.js +1 -5
  114. package/scripts/prove-local-intelligence.js +1 -3
  115. package/scripts/prove-packaged-runtime.js +75 -9
  116. package/scripts/prove-predictive-insights.js +1 -3
  117. package/scripts/prove-training-export.js +1 -3
  118. package/scripts/prove-workflow-contract.js +1 -5
  119. package/scripts/rate-limiter.js +3 -1
  120. package/scripts/reddit-dm-outreach.js +14 -4
  121. package/scripts/schedule-manager.js +3 -5
  122. package/scripts/security-scanner.js +448 -0
  123. package/scripts/self-distill-agent.js +579 -0
  124. package/scripts/semantic-dedup.js +115 -0
  125. package/scripts/skill-exporter.js +1 -3
  126. package/scripts/skill-generator.js +1 -5
  127. package/scripts/social-analytics/engagement-audit.js +1 -18
  128. package/scripts/social-analytics/pollers/linkedin.js +26 -16
  129. package/scripts/social-analytics/publishers/linkedin.js +1 -1
  130. package/scripts/social-analytics/publishers/zernio.js +51 -0
  131. package/scripts/social-pipeline.js +1 -3
  132. package/scripts/social-post-hourly.js +47 -4
  133. package/scripts/statusline-links.js +6 -5
  134. package/scripts/statusline.sh +29 -153
  135. package/scripts/sync-branch-protection.js +340 -0
  136. package/scripts/tessl-export.js +1 -3
  137. package/scripts/thumbgate-search.js +32 -1
  138. package/scripts/tool-kpi-tracker.js +1 -1
  139. package/scripts/tool-registry.js +106 -2
  140. package/scripts/vector-store.js +1 -5
  141. package/scripts/weekly-auto-post.js +1 -1
  142. package/scripts/workflow-sentinel.js +91 -0
  143. package/skills/thumbgate/SKILL.md +1 -1
  144. package/src/api/server.js +273 -4
  145. package/scripts/social-analytics/db/social-analytics.db-shm +0 -0
  146. /package/scripts/social-analytics/db/{social-analytics.db-wal → analytics.sqlite} +0 -0
@@ -0,0 +1,152 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const fs = require('node:fs');
5
+ const path = require('node:path');
6
+ const { execFileSync } = require('node:child_process');
7
+ const {
8
+ getCodexPluginVersionedAssetName,
9
+ } = require('./distribution-surfaces');
10
+
11
+ const PROJECT_ROOT = path.join(__dirname, '..');
12
+ const DEFAULT_OUTPUT_DIR = path.join(PROJECT_ROOT, '.artifacts', 'codex-plugin');
13
+ const BUNDLE_ROOT_NAME = 'thumbgate-codex-plugin';
14
+ const FIXED_BINARY_DIRS = ['/usr/bin', '/bin'];
15
+
16
+ function readJson(relativePath) {
17
+ return JSON.parse(fs.readFileSync(path.join(PROJECT_ROOT, relativePath), 'utf8'));
18
+ }
19
+
20
+ function readText(relativePath) {
21
+ return fs.readFileSync(path.join(PROJECT_ROOT, relativePath), 'utf8');
22
+ }
23
+
24
+ function copyEntry(sourceRelativePath, targetRelativePath, stageDir) {
25
+ const sourcePath = path.join(PROJECT_ROOT, sourceRelativePath);
26
+ if (!fs.existsSync(sourcePath)) return;
27
+
28
+ const targetPath = path.join(stageDir, targetRelativePath || sourceRelativePath);
29
+ const stat = fs.statSync(sourcePath);
30
+
31
+ fs.mkdirSync(path.dirname(targetPath), { recursive: true });
32
+ if (stat.isDirectory()) {
33
+ fs.cpSync(sourcePath, targetPath, { recursive: true });
34
+ return;
35
+ }
36
+
37
+ fs.copyFileSync(sourcePath, targetPath);
38
+ }
39
+
40
+ function buildStandaloneMarketplace() {
41
+ const marketplace = readJson('.agents/plugins/marketplace.json');
42
+ return {
43
+ ...marketplace,
44
+ plugins: (marketplace.plugins || []).map((plugin) => ({
45
+ ...plugin,
46
+ source: {
47
+ ...plugin.source,
48
+ path: './',
49
+ },
50
+ })),
51
+ };
52
+ }
53
+
54
+ function resolveFixedBinary(binaryName, options = {}) {
55
+ const accessSync = options.accessSync || fs.accessSync;
56
+ const dirs = options.dirs || FIXED_BINARY_DIRS;
57
+
58
+ for (const dir of dirs) {
59
+ const binaryPath = path.join(dir, binaryName);
60
+ try {
61
+ accessSync(binaryPath, fs.constants.X_OK);
62
+ return binaryPath;
63
+ } catch {
64
+ // Try the next fixed, system-owned directory.
65
+ }
66
+ }
67
+
68
+ throw new Error(`Unable to find executable ${binaryName} in fixed system paths: ${dirs.join(', ')}`);
69
+ }
70
+
71
+ function stageCodexPluginBundle(outputDir = DEFAULT_OUTPUT_DIR) {
72
+ const packageJson = readJson('package.json');
73
+ const bundleDir = path.join(outputDir, 'bundle');
74
+ const stageDir = path.join(bundleDir, BUNDLE_ROOT_NAME);
75
+ const outputFile = path.join(outputDir, getCodexPluginVersionedAssetName(packageJson.version));
76
+
77
+ fs.rmSync(outputDir, { recursive: true, force: true });
78
+ fs.mkdirSync(stageDir, { recursive: true });
79
+
80
+ copyEntry('plugins/codex-profile/.codex-plugin', '.codex-plugin', stageDir);
81
+ copyEntry('plugins/codex-profile/.mcp.json', '.mcp.json', stageDir);
82
+ copyEntry('plugins/codex-profile/README.md', 'README.md', stageDir);
83
+ copyEntry('plugins/codex-profile/INSTALL.md', 'INSTALL.md', stageDir);
84
+ copyEntry('plugins/codex-profile/AGENTS.md', 'AGENTS.md', stageDir);
85
+ copyEntry('LICENSE', 'LICENSE', stageDir);
86
+ copyEntry('adapters/codex/config.toml', 'config.toml', stageDir);
87
+
88
+ fs.mkdirSync(path.join(stageDir, '.agents', 'plugins'), { recursive: true });
89
+ fs.writeFileSync(
90
+ path.join(stageDir, '.agents', 'plugins', 'marketplace.json'),
91
+ JSON.stringify(buildStandaloneMarketplace(), null, 2) + '\n'
92
+ );
93
+
94
+ return {
95
+ bundleDir,
96
+ stageDir,
97
+ outputFile,
98
+ };
99
+ }
100
+
101
+ function buildCodexPlugin(outputDir = DEFAULT_OUTPUT_DIR) {
102
+ const { bundleDir, stageDir, outputFile } = stageCodexPluginBundle(outputDir);
103
+ const zipBinary = resolveFixedBinary('zip');
104
+ const unzipBinary = resolveFixedBinary('unzip');
105
+
106
+ execFileSync(zipBinary, ['-qr', outputFile, BUNDLE_ROOT_NAME], {
107
+ cwd: bundleDir,
108
+ stdio: 'inherit',
109
+ });
110
+
111
+ const contents = execFileSync(unzipBinary, ['-l', outputFile], {
112
+ cwd: PROJECT_ROOT,
113
+ encoding: 'utf8',
114
+ });
115
+
116
+ process.stdout.write(contents);
117
+
118
+ return {
119
+ stageDir,
120
+ outputFile,
121
+ contents,
122
+ };
123
+ }
124
+
125
+ function isCliEntrypoint(argv = process.argv) {
126
+ return path.resolve(argv[1] || '') === __filename;
127
+ }
128
+
129
+ function runCli(argv = process.argv, cwd = process.cwd(), log = console.log) {
130
+ const outputDir = argv[2]
131
+ ? path.resolve(cwd, argv[2])
132
+ : DEFAULT_OUTPUT_DIR;
133
+ const { outputFile } = buildCodexPlugin(outputDir);
134
+ log(`Built Codex plugin bundle: ${outputFile}`);
135
+ return outputFile;
136
+ }
137
+
138
+ if (isCliEntrypoint()) {
139
+ runCli();
140
+ }
141
+
142
+ module.exports = {
143
+ BUNDLE_ROOT_NAME,
144
+ DEFAULT_OUTPUT_DIR,
145
+ FIXED_BINARY_DIRS,
146
+ buildCodexPlugin,
147
+ buildStandaloneMarketplace,
148
+ isCliEntrypoint,
149
+ resolveFixedBinary,
150
+ runCli,
151
+ stageCodexPluginBundle,
152
+ };
@@ -18,8 +18,53 @@ const {
18
18
  PRODUCTHUNT_URL,
19
19
  getClaudePluginLatestDownloadUrl,
20
20
  } = require('./distribution-surfaces');
21
+ const {
22
+ TEAM_MIN_SEATS,
23
+ TEAM_MONTHLY_PRICE_DOLLARS,
24
+ TEAM_PRICE_LABEL,
25
+ } = require('./commercial-offer');
21
26
 
22
27
  const ROOT = path.join(__dirname, '..');
28
+ const PRICING_SURFACE_ROOTS = [
29
+ 'README.md',
30
+ 'SKILL.md',
31
+ 'bin',
32
+ 'docs',
33
+ 'public',
34
+ '.agents/skills/thumbgate/SKILL.md',
35
+ '.claude/skills/thumbgate/SKILL.md',
36
+ ];
37
+ const PRICING_SURFACE_EXTENSIONS = new Set(['.html', '.js', '.json', '.md', '.txt']);
38
+ const LEGACY_THUMBGATE_PRICING_PATTERNS = [
39
+ {
40
+ label: 'legacy $12 Team seat price',
41
+ pattern: /\$12\s*\/\s*seat\s*\/\s*mo|\$12\/seat|\bTEAM \$12\b|"price":\s*"12"/i,
42
+ },
43
+ {
44
+ label: 'retired founder $5 pricing',
45
+ pattern: /(?:Founding Member|Founding|founder)[^\n]{0,80}\$5\/mo|\$5\/mo[^\n]{0,80}(?:Founding Member|Founding|founder)|Price:\s*\$5\/mo recurring/i,
46
+ },
47
+ {
48
+ label: 'retired $10 Pro pricing',
49
+ pattern: /(?:\*\*Pro\*\*|\bPro\b|price reverts|paying users)[^\n]{0,80}\$10\/mo|\$10\/mo[^\n]{0,80}(?:\*\*Pro\*\*|\bPro\b|price reverts|paying users)/i,
50
+ },
51
+ {
52
+ label: 'retired $29 Team pricing',
53
+ pattern: /(?:\*\*Team\*\*|Team)[^\n]{0,80}\$29\/mo|\$29\/mo[^\n]{0,80}(?:\*\*Team\*\*|Team)/i,
54
+ },
55
+ {
56
+ label: 'retired $19 starter-pack positioning',
57
+ pattern: /Mistake-Free Starter Pack|Mistake-Free Starter Pack[^\n]{0,80}\$19\/mo|\$19\/mo[^\n]{0,80}subscriptions/i,
58
+ },
59
+ {
60
+ label: 'retired $49 founder lifetime pricing',
61
+ pattern: /(?:Founding Member|Founder|Founding Member Deal)[^\n]{0,100}\$49|\$49[^\n]{0,100}(?:Pro forever|Founding Member|Founder)/i,
62
+ },
63
+ {
64
+ label: 'retired founder-license positioning',
65
+ pattern: /founder[- ]license/i,
66
+ },
67
+ ];
23
68
 
24
69
  function read(rel) {
25
70
  const full = path.join(ROOT, rel);
@@ -27,6 +72,27 @@ function read(rel) {
27
72
  return fs.readFileSync(full, 'utf-8');
28
73
  }
29
74
 
75
+ function listTextFiles(rel) {
76
+ const full = path.join(ROOT, rel);
77
+ if (!fs.existsSync(full)) return [];
78
+ const stat = fs.statSync(full);
79
+ if (stat.isFile()) {
80
+ return PRICING_SURFACE_EXTENSIONS.has(path.extname(full)) ? [rel] : [];
81
+ }
82
+ if (!stat.isDirectory()) return [];
83
+
84
+ const files = [];
85
+ for (const entry of fs.readdirSync(full, { withFileTypes: true })) {
86
+ const childRel = path.join(rel, entry.name);
87
+ if (entry.isDirectory()) {
88
+ files.push(...listTextFiles(childRel));
89
+ } else if (PRICING_SURFACE_EXTENSIONS.has(path.extname(entry.name))) {
90
+ files.push(childRel);
91
+ }
92
+ }
93
+ return files;
94
+ }
95
+
30
96
  async function main() {
31
97
  const errors = [];
32
98
  const githubAbout = loadGitHubAboutConfig(ROOT);
@@ -43,16 +109,32 @@ async function main() {
43
109
 
44
110
  const landingHtml = read('public/index.html') || '';
45
111
  const guideHtml = read('public/guide.html') || '';
112
+ const compareHtml = read('public/compare.html') || '';
113
+ const proHtml = read('public/pro.html') || '';
46
114
  const readmeMd = read('README.md') || '';
47
115
  const commercialTruth = read('docs/COMMERCIAL_TRUTH.md') || '';
116
+ const docsLandingHtml = read('docs/landing-page.html') || '';
48
117
  const agentsMd = read('AGENTS.md') || '';
49
118
  const claudeMd = read('CLAUDE.md') || '';
50
119
  const geminiMd = read('GEMINI.md') || '';
51
120
  const serverStdio = read('adapters/mcp/server-stdio.js') || '';
52
121
  const productHuntKit = read('docs/marketing/product-hunt-launch.md') || '';
122
+ const productHuntLaunchKit = read('docs/marketing/product-hunt-launch-kit.md') || '';
53
123
  const claudePluginReadme = read('.claude-plugin/README.md') || '';
54
124
  const claudeDesktopPacket = read('docs/CLAUDE_DESKTOP_EXTENSION.md') || '';
55
125
  const latestClaudePluginUrl = getClaudePluginLatestDownloadUrl(ROOT);
126
+ const teamSeatPrice = `$${TEAM_MONTHLY_PRICE_DOLLARS}/seat/mo`;
127
+ const teamSeatPricePattern = new RegExp(`\\$${TEAM_MONTHLY_PRICE_DOLLARS}/seat/mo`, 'i');
128
+ const pricingSurfaceFiles = PRICING_SURFACE_ROOTS.flatMap(listTextFiles);
129
+ const legacyPricingHits = [];
130
+ for (const rel of pricingSurfaceFiles) {
131
+ const text = read(rel) || '';
132
+ for (const { label, pattern } of LEGACY_THUMBGATE_PRICING_PATTERNS) {
133
+ if (pattern.test(text)) {
134
+ legacyPricingHits.push(`${rel} (${label})`);
135
+ }
136
+ }
137
+ }
56
138
 
57
139
  check(
58
140
  landingHtml.includes(`v${version}`),
@@ -137,7 +219,19 @@ async function main() {
137
219
  'public/guide.html must advertise the current Pro monthly and annual pricing'
138
220
  );
139
221
  check(
140
- /\$12\/seat\/mo/i.test(guideHtml),
222
+ TEAM_MONTHLY_PRICE_DOLLARS === 99 && TEAM_MIN_SEATS === 3,
223
+ 'scripts/commercial-offer.js must anchor Team at $99/seat/mo with a 3-seat minimum'
224
+ );
225
+ check(
226
+ TEAM_PRICE_LABEL.includes(teamSeatPrice),
227
+ 'scripts/commercial-offer.js Team label must match the canonical Team seat price'
228
+ );
229
+ check(
230
+ legacyPricingHits.length === 0,
231
+ `Legacy ThumbGate pricing found in public pricing surfaces: ${legacyPricingHits.join(', ')}`
232
+ );
233
+ check(
234
+ teamSeatPricePattern.test(guideHtml),
141
235
  'public/guide.html must advertise the current Team pricing anchor'
142
236
  );
143
237
  check(
@@ -145,17 +239,33 @@ async function main() {
145
239
  'docs/COMMERCIAL_TRUTH.md must record the current Pro offer'
146
240
  );
147
241
  check(
148
- /shared lessons and org visibility/i.test(githubAbout.description),
149
- 'config/github-about.json description must mention shared lessons and org visibility'
242
+ teamSeatPricePattern.test(commercialTruth),
243
+ 'docs/COMMERCIAL_TRUTH.md must record the current Team pricing anchor'
244
+ );
245
+ check(
246
+ /shared lessons and org visibility/i.test(githubAbout.metaDescription),
247
+ 'config/github-about.json metaDescription must mention shared lessons and org visibility'
150
248
  );
151
249
  check(
152
250
  /\$19\/mo or \$149\/yr/i.test(readmeMd),
153
251
  'README.md must advertise the current Pro monthly and annual pricing'
154
252
  );
155
253
  check(
156
- /\$12\/seat\/mo/i.test(readmeMd),
254
+ teamSeatPricePattern.test(readmeMd),
157
255
  'README.md must advertise the current Team pricing anchor'
158
256
  );
257
+ for (const [surface, text] of Object.entries({
258
+ 'public/index.html': landingHtml,
259
+ 'public/compare.html': compareHtml,
260
+ 'public/pro.html': proHtml,
261
+ 'docs/landing-page.html': docsLandingHtml,
262
+ 'docs/marketing/product-hunt-launch-kit.md': productHuntLaunchKit,
263
+ })) {
264
+ check(
265
+ teamSeatPricePattern.test(text),
266
+ `${surface} must advertise the current Team pricing anchor`
267
+ );
268
+ }
159
269
  check(
160
270
  /shared hosted lesson db/i.test(readmeMd),
161
271
  'README.md must describe the shared hosted Team lesson database'
@@ -246,24 +356,32 @@ async function main() {
246
356
  'public/index.html must explain the thumbs-down feedback path'
247
357
  );
248
358
  check(
249
- githubAbout.description.includes('👍'),
250
- 'config/github-about.json description must include the thumbs-up icon'
359
+ githubAbout.metaDescription.includes('👍'),
360
+ 'config/github-about.json metaDescription must include the thumbs-up icon'
361
+ );
362
+ check(
363
+ githubAbout.metaDescription.includes('👎'),
364
+ 'config/github-about.json metaDescription must include the thumbs-down icon'
365
+ );
366
+ check(
367
+ /thumbs[\s-]?up/i.test(githubAbout.metaDescription),
368
+ 'config/github-about.json metaDescription must mention thumbs-up feedback'
251
369
  );
252
370
  check(
253
- githubAbout.description.includes('👎'),
254
- 'config/github-about.json description must include the thumbs-down icon'
371
+ /thumbs[\s-]?down/i.test(githubAbout.metaDescription),
372
+ 'config/github-about.json metaDescription must mention thumbs-down feedback'
255
373
  );
256
374
  check(
257
- /thumbs[\s-]?up/i.test(githubAbout.description),
258
- 'config/github-about.json description must mention thumbs-up feedback'
375
+ /history-aware lessons/i.test(githubAbout.metaDescription),
376
+ 'config/github-about.json metaDescription must mention history-aware lessons'
259
377
  );
260
378
  check(
261
- /thumbs[\s-]?down/i.test(githubAbout.description),
262
- 'config/github-about.json description must mention thumbs-down feedback'
379
+ /agent governance/i.test(githubAbout.githubDescription),
380
+ 'config/github-about.json githubDescription must mention agent governance'
263
381
  );
264
382
  check(
265
- /history-aware lessons/i.test(githubAbout.description),
266
- 'config/github-about.json description must mention history-aware lessons'
383
+ /pre-action gates|shared lessons|team safeguards/i.test(githubAbout.githubDescription),
384
+ 'config/github-about.json githubDescription must preserve the GitHub repo positioning'
267
385
  );
268
386
  check(
269
387
  productHuntKit.includes(PRODUCTHUNT_URL),
@@ -2,20 +2,19 @@
2
2
 
3
3
  const PRO_MONTHLY_PAYMENT_LINK = 'https://buy.stripe.com/5kQ4gzbmI9Lo6tPayn3sI06';
4
4
  const PRO_ANNUAL_PAYMENT_LINK = 'https://buy.stripe.com/3cI8wPfCYaPs2dzdKz3sI07';
5
- const PRO_FOUNDER_PAYMENT_LINK = 'https://buy.stripe.com/aFa4gz1M84r419v7mb3sI05';
6
5
 
7
6
  const PRO_MONTHLY_PRICE_ID = 'price_1THQY7GGBpd520QYHoS7RG0J';
8
7
  const PRO_ANNUAL_PRICE_ID = 'price_1THQZ7GGBpd520QYxzDRnxhB';
9
- const TEAM_MONTHLY_PRICE_ID = 'price_1THQa5GGBpd520QYoqdq1R1S';
8
+ const TEAM_MONTHLY_PRICE_ID = 'price_1TKLUhGGBpd520QYr5pgEZit';
10
9
 
11
10
  const PRO_MONTHLY_PRICE_DOLLARS = 19;
12
11
  const PRO_ANNUAL_PRICE_DOLLARS = 149;
13
- const TEAM_MONTHLY_PRICE_DOLLARS = 12;
14
- const TEAM_ANNUAL_PRICE_DOLLARS = 99;
12
+ const TEAM_MONTHLY_PRICE_DOLLARS = 99;
13
+ const TEAM_ANNUAL_PRICE_DOLLARS = 1188;
15
14
  const TEAM_MIN_SEATS = 3;
16
15
 
17
- const PRO_PRICE_LABEL = '$19/mo or $149/yr';
18
- const TEAM_PRICE_LABEL = 'Starts at $36/mo for 3 seats, then $12/seat/mo';
16
+ const PRO_PRICE_LABEL = '$19/mo or $149/yr (individual)';
17
+ const TEAM_PRICE_LABEL = '$99/seat/mo Agent governance for engineering teams';
19
18
 
20
19
  function normalizePlanId(value) {
21
20
  const text = String(value || '').trim().toLowerCase();
@@ -39,7 +38,6 @@ function normalizeSeatCount(value, fallback = TEAM_MIN_SEATS) {
39
38
  module.exports = {
40
39
  PRO_MONTHLY_PAYMENT_LINK,
41
40
  PRO_ANNUAL_PAYMENT_LINK,
42
- PRO_FOUNDER_PAYMENT_LINK,
43
41
  PRO_MONTHLY_PRICE_ID,
44
42
  PRO_ANNUAL_PRICE_ID,
45
43
  TEAM_MONTHLY_PRICE_ID,
@@ -0,0 +1,154 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * LinkedIn Content Generator for ThumbGate Gates
5
+ *
6
+ * Usage:
7
+ * node scripts/content-engine/linkedin-content-generator.js
8
+ * node scripts/content-engine/linkedin-content-generator.js --preview
9
+ *
10
+ * Suggested package.json scripts:
11
+ * "content:linkedin": "node scripts/content-engine/linkedin-content-generator.js"
12
+ * "content:linkedin:preview": "node scripts/content-engine/linkedin-content-generator.js --preview"
13
+ */
14
+
15
+ const crypto = require('crypto');
16
+ const fs = require('fs');
17
+ const path = require('path');
18
+
19
+ // Read gate config
20
+ const configPath = path.join(__dirname, '../../config/gates/default.json');
21
+ let config;
22
+ try {
23
+ config = JSON.parse(fs.readFileSync(configPath, 'utf8'));
24
+ } catch (err) {
25
+ process.stderr.write(`Failed to load gate config from ${configPath}: ${err.message}\n`);
26
+ process.exit(1);
27
+ }
28
+
29
+ // Select 7 diverse gates across severity levels
30
+ const severityOrder = { critical: 0, high: 1, medium: 2, low: 3 };
31
+ const gatesBySeverity = {
32
+ critical: [],
33
+ high: [],
34
+ medium: [],
35
+ low: []
36
+ };
37
+
38
+ config.gates.forEach(gate => {
39
+ const severity = gate.severity || 'low';
40
+ if (gatesBySeverity[severity]) {
41
+ gatesBySeverity[severity].push(gate);
42
+ }
43
+ });
44
+
45
+ // Select one from each severity, then fill remaining from largest buckets
46
+ const selected = [];
47
+ ['critical', 'high', 'medium', 'low'].forEach(severity => {
48
+ if (gatesBySeverity[severity].length > 0) {
49
+ selected.push(gatesBySeverity[severity][0]);
50
+ }
51
+ });
52
+
53
+ // Fill remaining slots (7 total) — shuffle with crypto-secure randomness (Fisher-Yates)
54
+ const remaining = config.gates.filter(g => !selected.includes(g));
55
+ for (let i = remaining.length - 1; i > 0; i--) {
56
+ const j = crypto.randomInt(i + 1);
57
+ [remaining[i], remaining[j]] = [remaining[j], remaining[i]];
58
+ }
59
+ while (selected.length < 7 && remaining.length > 0) {
60
+ selected.push(remaining.pop());
61
+ }
62
+
63
+ // Generate LinkedIn post content
64
+ const posts = selected.map((gate, index) => {
65
+ const hookLines = [
66
+ '🚨 Your AI agents are running without guardrails.',
67
+ '⚠️ One missing gate. One catastrophic mistake.',
68
+ '🛡️ Even the best engineers miss edge cases.',
69
+ '💥 Your deployment pipeline has a blind spot.',
70
+ '🔓 Git operations—unguarded by default.',
71
+ '🎯 Prevention beats firefighting.',
72
+ '⏱️ How fast can your agent destroy a month of work?'
73
+ ];
74
+
75
+ const gateDescriptions = {
76
+ 'local-only-git-writes': 'Blocks git writes when local-only mode is active, preventing accidental remote pushes during development.',
77
+ 'task-scope-required': 'Enforces explicit task scoping before any git, PR, or publish operations can proceed.',
78
+ 'protected-file-approval-required': 'Requires human approval before modifying sensitive files like CLAUDE.md, configs, and skills.',
79
+ 'gh-pr-create-restricted': 'Restricts PR creation to explicitly approved workflows, preventing unvetted code changes.',
80
+ 'gh-pr-merge-restricted': 'Blocks PR merges without explicit permission, enforcing code review discipline.',
81
+ 'branch-governance-required': 'Demands branch governance context before release, deploy, or publish actions.',
82
+ 'force-push': 'Blocks destructive force-push operations—no exceptions.',
83
+ 'protected-branch-push': 'Prevents direct pushes to main/develop. All changes flow through PR review.',
84
+ 'release-readiness-required': 'Ensures releases only happen from releasable mainline commits with version alignment.',
85
+ 'admin-merge-bypass-blocked': 'Blocks admin merge bypass. Code review gates apply equally to everyone.',
86
+ 'push-without-thread-check': 'Forces thread review before pushing—prevents shipping unresolved feedback.',
87
+ 'env-file-edit': 'Warns when editing .env files—catches accidental token deletion.',
88
+ 'unverified-skill-use': 'Validates skill provenance before delegating to subagents in restricted modes.',
89
+ 'production-deploy-approval': 'Requires human sign-off on production deployments.',
90
+ 'schema-migration-approval': 'Demands approval for database schema migrations—no surprise breaking changes.',
91
+ 'supply-chain-dep-add': 'Audits package.json mutations for typosquatting and suspicious installs.',
92
+ 'deny-network-egress': 'Warns on unauthorized egress—catches exfiltration attempts early.'
93
+ };
94
+
95
+ const post = `
96
+ ## Post ${index + 1}: ${gate.id.split('-').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(' ')}
97
+
98
+ ${hookLines[index % hookLines.length]}
99
+
100
+ ${gateDescriptions[gate.id] || `Protects your workflow by ${gate.message.toLowerCase()}`}
101
+
102
+ The problem? AI agents run autonomously. A single unchecked operation—a force-push, an unapproved deploy, a dependency injection—can unwind days of work in seconds. Traditional CI won't catch it. Your human reviewer might miss it.
103
+
104
+ The solution? **Gate \`${gate.id}\`** in ThumbGate stops high-risk operations *before* they execute. No second chances. Just prevention.
105
+
106
+ This isn't about slowing down. It's about building trust in autonomous systems. Every gate is a rule learned from real failures.
107
+
108
+ 🔒 Install ThumbGate today:
109
+ \`\`\`bash
110
+ npx thumbgate@latest init
111
+ \`\`\`
112
+
113
+ Then add this gate to your config and sleep better.
114
+
115
+ #AIGovernance #DevTools #AgentSafety #EngineeringTeams
116
+
117
+ ---
118
+ `;
119
+ return post;
120
+ });
121
+
122
+ // Generate output filename with today's date
123
+ const today = new Date();
124
+ const dateStr = today.toISOString().split('T')[0]; // YYYY-MM-DD
125
+ const outputDir = path.join(__dirname, 'output');
126
+ const outputFile = path.join(outputDir, `linkedin-posts-${dateStr}.md`);
127
+
128
+ // Create output directory if it doesn't exist
129
+ if (!fs.existsSync(outputDir)) {
130
+ fs.mkdirSync(outputDir, { recursive: true });
131
+ }
132
+
133
+ // Generate markdown content
134
+ const markdown = `# LinkedIn Content: ThumbGate Gates (${dateStr})
135
+
136
+ Generated from: \`config/gates/default.json\`
137
+ Gate count in config: ${config.gates.length}
138
+ Posts generated: ${selected.length}
139
+
140
+ ---
141
+ ${posts.join('\n')}
142
+ `;
143
+
144
+ // Output or write file
145
+ const preview = process.argv.includes('--preview');
146
+ if (preview) {
147
+ console.log(markdown);
148
+ console.log(`\n✅ Preview mode (${selected.length} posts)`);
149
+ } else {
150
+ fs.writeFileSync(outputFile, markdown, 'utf8');
151
+ console.log(`✅ Generated ${selected.length} LinkedIn posts to: ${outputFile}`);
152
+ console.log(` Severities: ${selected.map(g => g.severity).sort().join(', ')}`);
153
+ console.log(` Gates: ${selected.map(g => g.id).join(', ')}`);
154
+ }
@@ -0,0 +1,17 @@
1
+ # ThumbGate: Validated in Production
2
+
3
+ Academic research just proved what we've been running in production for 18 months.
4
+
5
+ The Memento-Skills paper (arXiv 2603.18743) demonstrates that external skill memory systems — ones that rewrite themselves from failure feedback — achieve 26-116% accuracy improvements without touching the model. No retraining. No fine-tuning. Just structured context engineering.
6
+
7
+ That's exactly what ThumbGate does. We capture agent failures, infer prevention rules, and inject them as PreToolUse gates. The paper's Read → Execute → Reflect → Write loop maps directly to our capture → infer → enforce → block cycle. The academic validation confirms what we've observed: you don't need to retrain your model to make it safer and more reliable. You need better context.
8
+
9
+ ThumbGate processes real-world AI agent failures — git operations, code edits, file writes, API calls — and learns from them. Every "thumbs down" on a failed action becomes a lesson. Every lesson becomes a rule. Every rule becomes a gate that stops the same mistake from happening again. The feedback loop is tight. The enforcement is immediate.
10
+
11
+ The paper validates the core insight: agents fail in predictable ways, and those patterns can be captured, learned, and blocked without model modification. That's not theoretical. We're doing it now, across 48+ tool adapters and 4,500+ prevention gates, with zero retraining.
12
+
13
+ Context engineering works. The research proves it. The production metrics show it.
14
+
15
+ Try it: `npx thumbgate@latest init`
16
+
17
+ #AIGovernance #AgentSafety #MementoSkills #ContextEngineering