@m13v/s4l 1.7.12-rc.14 → 1.7.12-rc.15
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/mcp/dist/version.json
CHANGED
package/mcp/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"dxt_version": "0.1",
|
|
3
3
|
"name": "social-autoposter",
|
|
4
4
|
"display_name": "S4L",
|
|
5
|
-
"version": "1.7.12-rc.
|
|
5
|
+
"version": "1.7.12-rc.15",
|
|
6
6
|
"description": "Draft, review, approve, and autopilot X/Twitter posts.",
|
|
7
7
|
"long_description": "## **⚠️ The disclaimer above is generic Claude boilerplate.** Anthropic shows the same warning on every plugin regardless of what it does; any plugin has the same level of access as any app you download from the internet.\n\nS4L is an open source product developed by Mediar.ai Incorporated, a VC-backed San Francisco-based startup.\n\nTo get started:\n\n1\\. Copy this prompt: **Set me up on S4L plugin end to end**\n\n2\\. Quit with CMD+Q, reopen Claude, paste into a new chat.\n\nWhat happens next:\n\n* About every 5 minutes S4L scans X for posts that match your topics and drafts replies in your voice.\n* Drafts show up as review cards, usually the first within a few minutes. Nothing is posted automatically; you approve each one.\n* Posting autopilot stays off until you explicitly turn it on.",
|
|
8
8
|
"author": {
|
package/mcp/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m13v/s4l-mcp",
|
|
3
|
-
"version": "1.7.12-rc.
|
|
3
|
+
"version": "1.7.12-rc.15",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Desktop MCP client for social-autoposter (X/Twitter rail): manual draft/review/approve loop, autopilot control, and stats. Thin wrapper over the existing pipeline scripts.",
|
|
6
6
|
"license": "MIT",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m13v/s4l",
|
|
3
|
-
"version": "1.7.12-rc.
|
|
3
|
+
"version": "1.7.12-rc.15",
|
|
4
4
|
"description": "Automated social posting pipeline for Reddit, X/Twitter, LinkedIn, and Moltbook. Install as a Claude Code agent skill.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"social-autoposter": "bin/cli.js",
|
|
@@ -83,6 +83,14 @@ _TRAILING_ZEROS_FAKE = re.compile(r"0{6,}$")
|
|
|
83
83
|
REACH_POTENTIAL_WEIGHT = 0.6
|
|
84
84
|
|
|
85
85
|
|
|
86
|
+
# Velocity denominator floor in hours (see calculate_virality_score).
|
|
87
|
+
VELOCITY_AGE_FLOOR_HOURS = 0.5
|
|
88
|
+
# Engagement-pod discount: applies when views >= POD_MIN_VIEWS and
|
|
89
|
+
# engagements/views exceeds POD_RATIO_CAP.
|
|
90
|
+
POD_MIN_VIEWS = 100
|
|
91
|
+
POD_RATIO_CAP = 0.10
|
|
92
|
+
|
|
93
|
+
|
|
86
94
|
def looks_like_fabricated_tweet_url(url: str) -> bool:
|
|
87
95
|
"""True if the URL's snowflake suffix is the model's fabrication signature.
|
|
88
96
|
|
|
@@ -129,7 +137,11 @@ def calculate_virality_score(tweet):
|
|
|
129
137
|
age_hours = 0.1
|
|
130
138
|
|
|
131
139
|
# 1. Engagement velocity (most important)
|
|
132
|
-
|
|
140
|
+
# Velocity age floor (2026-11-17): a tweet scored 2-15 min after posting
|
|
141
|
+
# divided its first burst by ~0.1h, a 10x inflation that let fresh
|
|
142
|
+
# off-topic bursts own the top of the bar pool (25 of the top 30 were
|
|
143
|
+
# <15 min old). Velocity uses max(age, 0.5h); age decay keeps real age.
|
|
144
|
+
velocity = total_eng / max(age_hours, VELOCITY_AGE_FLOOR_HOURS)
|
|
133
145
|
|
|
134
146
|
# 2. Retweet ratio (reshare intent)
|
|
135
147
|
rt_ratio = retweets / total_eng if total_eng > 0 else 0
|
|
@@ -189,6 +201,15 @@ def calculate_virality_score(tweet):
|
|
|
189
201
|
|
|
190
202
|
score = engagement_score + reach_potential
|
|
191
203
|
|
|
204
|
+
# Engagement-pod discount (2026-11-17): organic eng/views is ~0.013 median,
|
|
205
|
+
# ~0.095 p95. Ratios above 0.10 on a real view count are pods/giveaways
|
|
206
|
+
# (e.g. 57 likes + 55 RTs on 155 views). Scale the score down by
|
|
207
|
+
# 0.10/ratio so a 0.75 ratio keeps 13%.
|
|
208
|
+
if views >= POD_MIN_VIEWS and total_eng > 0:
|
|
209
|
+
pod_ratio = total_eng / views
|
|
210
|
+
if pod_ratio > POD_RATIO_CAP:
|
|
211
|
+
score *= POD_RATIO_CAP / pod_ratio
|
|
212
|
+
|
|
192
213
|
return round(score, 2), round(velocity, 2), round(rt_ratio, 3)
|
|
193
214
|
|
|
194
215
|
|
package/scripts/twitter_scan.py
CHANGED
|
@@ -337,7 +337,7 @@ _SCAN_DEADLINE_OVERRIDE = os.environ.get("S4L_SCAN_QUERY_DEADLINE_S")
|
|
|
337
337
|
_X_SEARCH_STATE = pathlib.Path(
|
|
338
338
|
os.environ.get("S4L_STATE_DIR") or (pathlib.Path.home() / ".social-autoposter-mcp")
|
|
339
339
|
) / "x-search-budget.json"
|
|
340
|
-
_X_SEARCH_BUDGET_15M = int(os.environ.get("S4L_X_SEARCH_BUDGET_15M") or "
|
|
340
|
+
_X_SEARCH_BUDGET_15M = int(os.environ.get("S4L_X_SEARCH_BUDGET_15M") or "35")
|
|
341
341
|
_X_SEARCH_COOLDOWN_S = int(os.environ.get("S4L_X_SEARCH_COOLDOWN_S") or "600")
|
|
342
342
|
_X_ERROR_JS = (
|
|
343
343
|
"(() => { const m = document.querySelector('main') || document.body;"
|