thumbgate 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/README.md +25 -0
- package/.claude-plugin/marketplace.json +32 -13
- package/.claude-plugin/plugin.json +15 -2
- package/.well-known/llms.txt +60 -0
- package/.well-known/mcp/server-card.json +1 -1
- package/README.md +242 -126
- package/adapters/README.md +1 -1
- package/adapters/chatgpt/INSTALL.md +59 -4
- package/adapters/chatgpt/openapi.yaml +168 -0
- package/adapters/claude/.mcp.json +2 -2
- package/adapters/codex/config.toml +2 -2
- package/adapters/mcp/server-stdio.js +84 -1
- package/adapters/opencode/opencode.json +1 -1
- package/bin/cli.js +204 -13
- package/bin/postinstall.js +8 -2
- package/config/budget.json +18 -0
- package/config/gates/code-edit.json +61 -0
- package/config/gates/db-write.json +61 -0
- package/config/gates/default.json +154 -3
- package/config/gates/deploy.json +61 -0
- package/config/github-about.json +2 -1
- package/config/merge-quality-checks.json +23 -0
- package/openapi/openapi.yaml +168 -0
- package/package.json +47 -11
- package/plugins/claude-codex-bridge/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-codex-bridge/.mcp.json +1 -1
- package/plugins/claude-codex-bridge/scripts/codex-bridge.js +1 -3
- package/plugins/codex-profile/.codex-plugin/plugin.json +1 -1
- package/plugins/codex-profile/.mcp.json +1 -1
- package/plugins/codex-profile/INSTALL.md +27 -4
- package/plugins/codex-profile/README.md +33 -9
- package/plugins/cursor-marketplace/.cursor-plugin/plugin.json +1 -1
- package/plugins/opencode-profile/INSTALL.md +1 -1
- package/public/blog.html +73 -0
- package/public/compare/mem0.html +189 -0
- package/public/compare/speclock.html +180 -0
- package/public/compare.html +10 -2
- package/public/guide.html +2 -2
- package/public/guides/claude-code-prevent-repeated-mistakes.html +161 -0
- package/public/guides/codex-cli-guardrails.html +158 -0
- package/public/guides/cursor-prevent-repeated-mistakes.html +161 -0
- package/public/guides/pre-action-gates.html +162 -0
- package/public/guides/stop-repeated-ai-agent-mistakes.html +159 -0
- package/public/index.html +172 -65
- package/public/lessons.html +33 -24
- package/public/llm-context.md +140 -0
- package/public/pro.html +24 -22
- package/scripts/access-anomaly-detector.js +1 -1
- package/scripts/adk-consolidator.js +1 -5
- package/scripts/agent-security-hardening.js +4 -6
- package/scripts/agentic-data-pipeline.js +1 -3
- package/scripts/async-job-runner.js +1 -5
- package/scripts/audit-trail.js +1 -5
- package/scripts/auto-promote-gates.js +5 -3
- package/scripts/background-agent-governance.js +2 -10
- package/scripts/billing-setup.js +109 -0
- package/scripts/billing.js +2 -16
- package/scripts/budget-enforcer.js +173 -0
- package/scripts/build-claude-mcpb.js +71 -5
- package/scripts/build-codex-plugin.js +152 -0
- package/scripts/check-congruence.js +132 -14
- package/scripts/commercial-offer.js +5 -7
- package/scripts/content-engine/linkedin-content-generator.js +154 -0
- package/scripts/content-engine/output/linkedin-memento-validation.md +17 -0
- package/scripts/content-engine/output/linkedin-posts-2026-04-09.md +175 -0
- package/scripts/content-engine/reddit-thread-finder.js +154 -0
- package/scripts/context-engine.js +21 -6
- package/scripts/contextfs.js +1 -21
- package/scripts/dashboard.js +20 -0
- package/scripts/decision-journal.js +341 -0
- package/scripts/delegation-runtime.js +1 -5
- package/scripts/distribution-surfaces.js +54 -0
- package/scripts/document-intake.js +927 -0
- package/scripts/ephemeral-agent-store.js +1 -8
- package/scripts/evolution-state.js +1 -5
- package/scripts/experiment-tracker.js +1 -5
- package/scripts/export-databricks-bundle.js +1 -5
- package/scripts/export-hf-dataset.js +1 -5
- package/scripts/export-training.js +1 -5
- package/scripts/feedback-attribution.js +1 -16
- package/scripts/feedback-history-distiller.js +1 -16
- package/scripts/feedback-loop.js +1 -5
- package/scripts/feedback-root-consolidator.js +2 -21
- package/scripts/feedback-session.js +49 -0
- package/scripts/feedback-to-rules.js +215 -36
- package/scripts/filesystem-search.js +1 -9
- package/scripts/fs-utils.js +104 -0
- package/scripts/gates-engine.js +200 -11
- package/scripts/github-about.js +32 -8
- package/scripts/gtm-revenue-loop.js +1 -5
- package/scripts/harness-selector.js +148 -0
- package/scripts/hosted-config.js +2 -0
- package/scripts/hosted-job-launcher.js +1 -5
- package/scripts/hybrid-feedback-context.js +33 -49
- package/scripts/intervention-policy.js +58 -1
- package/scripts/lesson-db.js +3 -18
- package/scripts/lesson-inference.js +194 -16
- package/scripts/lesson-retrieval.js +60 -24
- package/scripts/llm-client.js +59 -0
- package/scripts/managed-lesson-agent.js +183 -0
- package/scripts/marketing-experiment.js +8 -22
- package/scripts/meta-agent-loop.js +624 -0
- package/scripts/metered-billing.js +1 -1
- package/scripts/money-watcher.js +1 -4
- package/scripts/obsidian-export.js +1 -5
- package/scripts/operational-integrity.js +15 -3
- package/scripts/operational-summary.js +41 -5
- package/scripts/org-dashboard.js +6 -1
- package/scripts/per-step-scoring.js +2 -4
- package/scripts/pr-manager.js +201 -19
- package/scripts/pro-features.js +3 -2
- package/scripts/prompt-dlp.js +3 -3
- package/scripts/prove-adapters.js +1 -5
- package/scripts/prove-attribution.js +1 -5
- package/scripts/prove-automation.js +1 -3
- package/scripts/prove-cloudflare-sandbox.js +1 -3
- package/scripts/prove-data-pipeline.js +1 -3
- package/scripts/prove-intelligence.js +1 -3
- package/scripts/prove-lancedb.js +1 -5
- package/scripts/prove-local-intelligence.js +1 -3
- package/scripts/prove-packaged-runtime.js +75 -9
- package/scripts/prove-predictive-insights.js +1 -3
- package/scripts/prove-training-export.js +1 -3
- package/scripts/prove-workflow-contract.js +1 -5
- package/scripts/ralph-loop.js +376 -0
- package/scripts/ralph-mode-ci.js +331 -0
- package/scripts/rate-limiter.js +3 -1
- package/scripts/reddit-dm-outreach.js +14 -4
- package/scripts/rotate-stripe-webhook-secret.js +314 -0
- package/scripts/schedule-manager.js +3 -5
- package/scripts/security-scanner.js +448 -0
- package/scripts/self-distill-agent.js +579 -0
- package/scripts/semantic-dedup.js +115 -0
- package/scripts/skill-exporter.js +1 -3
- package/scripts/skill-generator.js +1 -5
- package/scripts/social-analytics/engagement-audit.js +1 -18
- package/scripts/social-analytics/pollers/linkedin.js +26 -16
- package/scripts/social-analytics/publishers/linkedin.js +1 -1
- package/scripts/social-analytics/publishers/zernio.js +51 -0
- package/scripts/social-pipeline.js +1 -3
- package/scripts/social-post-hourly.js +47 -4
- package/scripts/statusline-links.js +6 -5
- package/scripts/statusline.sh +29 -153
- package/scripts/sync-branch-protection.js +340 -0
- package/scripts/tessl-export.js +1 -3
- package/scripts/thumbgate-search.js +32 -1
- package/scripts/tool-kpi-tracker.js +1 -1
- package/scripts/tool-registry.js +106 -2
- package/scripts/vector-store.js +1 -5
- package/scripts/weekly-auto-post.js +1 -1
- package/scripts/workflow-sentinel.js +91 -0
- package/skills/thumbgate/SKILL.md +1 -1
- package/src/api/server.js +296 -7
- package/scripts/__pycache__/train_from_feedback.cpython-312.pyc +0 -0
- package/scripts/social-analytics/db/social-analytics.db-shm +0 -0
- /package/scripts/social-analytics/db/{social-analytics.db-wal → analytics.sqlite} +0 -0
|
@@ -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
|
-
|
|
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
|
-
|
|
149
|
-
'
|
|
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
|
-
|
|
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.
|
|
250
|
-
'config/github-about.json
|
|
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.
|
|
254
|
-
'config/github-about.json
|
|
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
|
-
/
|
|
258
|
-
'config/github-about.json
|
|
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
|
-
/
|
|
262
|
-
'config/github-about.json
|
|
379
|
+
/agent governance/i.test(githubAbout.githubDescription),
|
|
380
|
+
'config/github-about.json githubDescription must mention agent governance'
|
|
263
381
|
);
|
|
264
382
|
check(
|
|
265
|
-
/
|
|
266
|
-
'config/github-about.json
|
|
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 = '
|
|
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 =
|
|
14
|
-
const TEAM_ANNUAL_PRICE_DOLLARS =
|
|
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 = '
|
|
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
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# LinkedIn Content: ThumbGate Gates (2026-04-09)
|
|
2
|
+
|
|
3
|
+
Generated from: `config/gates/default.json`
|
|
4
|
+
Gate count in config: 25
|
|
5
|
+
Posts generated: 7
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Post 1: Local Only Git Writes
|
|
10
|
+
|
|
11
|
+
🚨 Your AI agents are running without guardrails.
|
|
12
|
+
|
|
13
|
+
Blocks git writes when local-only mode is active, preventing accidental remote pushes during development.
|
|
14
|
+
|
|
15
|
+
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.
|
|
16
|
+
|
|
17
|
+
The solution? **Gate `local-only-git-writes`** in ThumbGate stops high-risk operations *before* they execute. No second chances. Just prevention.
|
|
18
|
+
|
|
19
|
+
This isn't about slowing down. It's about building trust in autonomous systems. Every gate is a rule learned from real failures.
|
|
20
|
+
|
|
21
|
+
🔒 Install ThumbGate today:
|
|
22
|
+
```bash
|
|
23
|
+
npx thumbgate@latest init
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Then add this gate to your config and sleep better.
|
|
27
|
+
|
|
28
|
+
#AIGovernance #DevTools #AgentSafety #EngineeringTeams
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## Post 2: Gh Pr Create Restricted
|
|
34
|
+
|
|
35
|
+
⚠️ One missing gate. One catastrophic mistake.
|
|
36
|
+
|
|
37
|
+
Restricts PR creation to explicitly approved workflows, preventing unvetted code changes.
|
|
38
|
+
|
|
39
|
+
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.
|
|
40
|
+
|
|
41
|
+
The solution? **Gate `gh-pr-create-restricted`** in ThumbGate stops high-risk operations *before* they execute. No second chances. Just prevention.
|
|
42
|
+
|
|
43
|
+
This isn't about slowing down. It's about building trust in autonomous systems. Every gate is a rule learned from real failures.
|
|
44
|
+
|
|
45
|
+
🔒 Install ThumbGate today:
|
|
46
|
+
```bash
|
|
47
|
+
npx thumbgate@latest init
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Then add this gate to your config and sleep better.
|
|
51
|
+
|
|
52
|
+
#AIGovernance #DevTools #AgentSafety #EngineeringTeams
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## Post 3: Env File Edit
|
|
58
|
+
|
|
59
|
+
🛡️ Even the best engineers miss edge cases.
|
|
60
|
+
|
|
61
|
+
Warns when editing .env files—catches accidental token deletion.
|
|
62
|
+
|
|
63
|
+
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.
|
|
64
|
+
|
|
65
|
+
The solution? **Gate `env-file-edit`** in ThumbGate stops high-risk operations *before* they execute. No second chances. Just prevention.
|
|
66
|
+
|
|
67
|
+
This isn't about slowing down. It's about building trust in autonomous systems. Every gate is a rule learned from real failures.
|
|
68
|
+
|
|
69
|
+
🔒 Install ThumbGate today:
|
|
70
|
+
```bash
|
|
71
|
+
npx thumbgate@latest init
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Then add this gate to your config and sleep better.
|
|
75
|
+
|
|
76
|
+
#AIGovernance #DevTools #AgentSafety #EngineeringTeams
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## Post 4: Style Violation Log
|
|
82
|
+
|
|
83
|
+
💥 Your deployment pipeline has a blind spot.
|
|
84
|
+
|
|
85
|
+
Protects your workflow by style audit mode active. action recorded for review but allowed to proceed.
|
|
86
|
+
|
|
87
|
+
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.
|
|
88
|
+
|
|
89
|
+
The solution? **Gate `style-violation-log`** in ThumbGate stops high-risk operations *before* they execute. No second chances. Just prevention.
|
|
90
|
+
|
|
91
|
+
This isn't about slowing down. It's about building trust in autonomous systems. Every gate is a rule learned from real failures.
|
|
92
|
+
|
|
93
|
+
🔒 Install ThumbGate today:
|
|
94
|
+
```bash
|
|
95
|
+
npx thumbgate@latest init
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Then add this gate to your config and sleep better.
|
|
99
|
+
|
|
100
|
+
#AIGovernance #DevTools #AgentSafety #EngineeringTeams
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
## Post 5: Loop Abuse Prevention
|
|
106
|
+
|
|
107
|
+
🔓 Git operations—unguarded by default.
|
|
108
|
+
|
|
109
|
+
Protects your workflow by high-risk command detected inside a loop. scheduled tasks must not perform egress or destructive writes without explicit approval.
|
|
110
|
+
|
|
111
|
+
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.
|
|
112
|
+
|
|
113
|
+
The solution? **Gate `loop-abuse-prevention`** in ThumbGate stops high-risk operations *before* they execute. No second chances. Just prevention.
|
|
114
|
+
|
|
115
|
+
This isn't about slowing down. It's about building trust in autonomous systems. Every gate is a rule learned from real failures.
|
|
116
|
+
|
|
117
|
+
🔒 Install ThumbGate today:
|
|
118
|
+
```bash
|
|
119
|
+
npx thumbgate@latest init
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Then add this gate to your config and sleep better.
|
|
123
|
+
|
|
124
|
+
#AIGovernance #DevTools #AgentSafety #EngineeringTeams
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
## Post 6: Release Readiness Required
|
|
130
|
+
|
|
131
|
+
🎯 Prevention beats firefighting.
|
|
132
|
+
|
|
133
|
+
Ensures releases only happen from releasable mainline commits with version alignment.
|
|
134
|
+
|
|
135
|
+
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.
|
|
136
|
+
|
|
137
|
+
The solution? **Gate `release-readiness-required`** in ThumbGate stops high-risk operations *before* they execute. No second chances. Just prevention.
|
|
138
|
+
|
|
139
|
+
This isn't about slowing down. It's about building trust in autonomous systems. Every gate is a rule learned from real failures.
|
|
140
|
+
|
|
141
|
+
🔒 Install ThumbGate today:
|
|
142
|
+
```bash
|
|
143
|
+
npx thumbgate@latest init
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Then add this gate to your config and sleep better.
|
|
147
|
+
|
|
148
|
+
#AIGovernance #DevTools #AgentSafety #EngineeringTeams
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
## Post 7: Protected Branch Push
|
|
154
|
+
|
|
155
|
+
⏱️ How fast can your agent destroy a month of work?
|
|
156
|
+
|
|
157
|
+
Prevents direct pushes to main/develop. All changes flow through PR review.
|
|
158
|
+
|
|
159
|
+
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.
|
|
160
|
+
|
|
161
|
+
The solution? **Gate `protected-branch-push`** in ThumbGate stops high-risk operations *before* they execute. No second chances. Just prevention.
|
|
162
|
+
|
|
163
|
+
This isn't about slowing down. It's about building trust in autonomous systems. Every gate is a rule learned from real failures.
|
|
164
|
+
|
|
165
|
+
🔒 Install ThumbGate today:
|
|
166
|
+
```bash
|
|
167
|
+
npx thumbgate@latest init
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Then add this gate to your config and sleep better.
|
|
171
|
+
|
|
172
|
+
#AIGovernance #DevTools #AgentSafety #EngineeringTeams
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|