@m13v/s4l 1.7.5-rc.6 → 1.7.5-rc.7
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 +2 -2
- package/mcp/manifest.json +1 -1
- package/mcp/package.json +1 -1
- package/package.json +1 -1
- package/scripts/twitter_browser.py +24 -13
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.5-rc.
|
|
5
|
+
"version": "1.7.5-rc.7",
|
|
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.5-rc.
|
|
3
|
+
"version": "1.7.5-rc.7",
|
|
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
|
@@ -188,10 +188,10 @@ def find_twitter_cdp_port():
|
|
|
188
188
|
as a fallback when TWITTER_CDP_URL isn't exported by the caller.
|
|
189
189
|
|
|
190
190
|
Since the park-on-exit mitigation (2026-07-14) the harness tab sits on
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
platform's harness Chrome).
|
|
191
|
+
x.com/robots.txt between runs, which still matches the x.com scan above.
|
|
192
|
+
A responding port whose cmdline carries the browser-harness profile dir
|
|
193
|
+
is kept as a last-resort fallback for the tab-somehow-closed case (never
|
|
194
|
+
a different platform's harness Chrome).
|
|
195
195
|
"""
|
|
196
196
|
try:
|
|
197
197
|
ps_out = subprocess.check_output(
|
|
@@ -717,13 +717,22 @@ def _arm_self_liveness_watchdog():
|
|
|
717
717
|
# renderer precedes most whole-browser CDP wedges by minutes (see Crashpad
|
|
718
718
|
# dump ↔ cdp_wedge correlation, memory
|
|
719
719
|
# insights_chrome150_renderer_crash_wedge_2026_07_14). Parking every
|
|
720
|
-
# x.com/twitter.com tab
|
|
721
|
-
#
|
|
722
|
-
#
|
|
723
|
-
#
|
|
724
|
-
# must fail fast, not hang the exit.
|
|
725
|
-
#
|
|
726
|
-
#
|
|
720
|
+
# x.com/twitter.com tab when the last browser-using python process exits
|
|
721
|
+
# removes the heavy SPA from the idle window entirely. Raw CDP over
|
|
722
|
+
# HTTP+websocket with hard 3s timeouts, NEVER Playwright: at atexit the
|
|
723
|
+
# Playwright loop may be gone, and against an already-wedged browser this
|
|
724
|
+
# must fail fast, not hang the exit.
|
|
725
|
+
#
|
|
726
|
+
# PARK TARGET IS x.com/robots.txt, NOT about:blank (user rule 2026-07-14:
|
|
727
|
+
# always REUSE the tab; creating tabs risks focus steal). The bh harness's
|
|
728
|
+
# list_tabs() treats "about:" as INTERNAL and hides it, so an about:blank
|
|
729
|
+
# park made twitter_scan._navigate see zero real tabs and open a NEW tab
|
|
730
|
+
# every cycle. robots.txt is a static ~100-byte text document (no SPA, no
|
|
731
|
+
# JS, nothing to leak or crash) whose URL still matches every reuse
|
|
732
|
+
# heuristic: harness list_tabs (plain https), the x.com-tab preference in
|
|
733
|
+
# _get_browser_and_page_raw, and find_twitter_cdp_port discovery. The
|
|
734
|
+
# harness-profile discovery fallback stays as a belt for a closed tab.
|
|
735
|
+
_PARK_URL = "https://x.com/robots.txt"
|
|
727
736
|
_PARK_REGISTERED = False
|
|
728
737
|
|
|
729
738
|
|
|
@@ -743,6 +752,8 @@ def _park_twitter_tabs():
|
|
|
743
752
|
continue
|
|
744
753
|
if "x.com" not in url and "twitter.com" not in url:
|
|
745
754
|
continue
|
|
755
|
+
if url.split("?", 1)[0].rstrip("/").endswith("/robots.txt"):
|
|
756
|
+
continue # already parked
|
|
746
757
|
ws_url = t.get("webSocketDebuggerUrl")
|
|
747
758
|
if not ws_url:
|
|
748
759
|
continue
|
|
@@ -759,13 +770,13 @@ def _park_twitter_tabs():
|
|
|
759
770
|
ws.send(json.dumps({
|
|
760
771
|
"id": 1,
|
|
761
772
|
"method": "Page.navigate",
|
|
762
|
-
"params": {"url":
|
|
773
|
+
"params": {"url": _PARK_URL},
|
|
763
774
|
}))
|
|
764
775
|
ws.recv()
|
|
765
776
|
finally:
|
|
766
777
|
ws.close()
|
|
767
778
|
print(
|
|
768
|
-
f"[twitter_browser] parked tab on
|
|
779
|
+
f"[twitter_browser] parked tab on {_PARK_URL} (was {url[:80]})",
|
|
769
780
|
file=sys.stderr,
|
|
770
781
|
)
|
|
771
782
|
except Exception:
|