@m13v/s4l 1.7.5-rc.5 → 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.
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "1.7.5-rc.5",
3
- "installedAt": "2026-07-14T19:40:07.481Z"
2
+ "version": "1.7.5-rc.7",
3
+ "installedAt": "2026-07-14T21:26:17.558Z"
4
4
  }
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",
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": {
@@ -1180,23 +1180,43 @@ class _ReviewController(NSObject):
1180
1180
  age_label.setAlignment_(NSTextAlignmentRight)
1181
1181
  content.addSubview_(age_label)
1182
1182
  right_x -= age_w + 4
1183
- handle_w = right_x - (M + 78) - 4
1183
+ # Platform mark (brand identification, inline with the author row):
1184
+ # Reddit's orange "r/" vs X's glyph, so a mixed-platform review queue
1185
+ # reads at a glance which network each card posts to.
1186
+ _plat = (d.get("platform") or "twitter").lower()
1187
+ _mark = "r/" if _plat == "reddit" else "\U0001d54f"
1188
+ _mark_w = 18
1189
+ _mark_label = _label(
1190
+ NSMakeRect(M + 78, H - 70, _mark_w, 18), _mark, size=12, bold=True
1191
+ )
1192
+ if _plat == "reddit":
1193
+ try:
1194
+ # Reddit orangered (#FF4500); best effort, falls back to the
1195
+ # default label color on any AppKit hiccup.
1196
+ _mark_label.setTextColor_(
1197
+ NSColor.colorWithSRGBRed_green_blue_alpha_(1.0, 0.27, 0.0, 1.0)
1198
+ )
1199
+ except Exception:
1200
+ pass
1201
+ content.addSubview_(_mark_label)
1202
+ _author_x = M + 78 + _mark_w
1203
+ handle_w = right_x - _author_x - 4
1184
1204
  if handle:
1185
1205
  # Size the link to its text so the follower count can sit right
1186
1206
  # after the handle instead of at a fixed column.
1187
- text = f"@{handle}"
1207
+ text = f"u/{handle}" if _plat == "reddit" else f"@{handle}"
1188
1208
  measured = NSAttributedString.alloc().initWithString_attributes_(
1189
1209
  text, {NSFontAttributeName: _font(12, True)}
1190
1210
  ).size().width
1191
1211
  link_w = min(int(measured) + 8, handle_w)
1192
1212
  _prof_url = (
1193
1213
  f"https://www.reddit.com/user/{handle}"
1194
- if (d.get("platform") == "reddit")
1214
+ if _plat == "reddit"
1195
1215
  else f"https://x.com/{handle}"
1196
1216
  )
1197
1217
  self._add_link(
1198
1218
  content,
1199
- NSMakeRect(M + 78, H - 70, link_w, 18),
1219
+ NSMakeRect(_author_x, H - 70, link_w, 18),
1200
1220
  text,
1201
1221
  _prof_url,
1202
1222
  bold=True,
@@ -1207,7 +1227,7 @@ class _ReviewController(NSObject):
1207
1227
  if followers and fol_w > 20:
1208
1228
  content.addSubview_(
1209
1229
  _label(
1210
- NSMakeRect(M + 78 + link_w, H - 70, fol_w, 18),
1230
+ NSMakeRect(_author_x + link_w, H - 70, fol_w, 18),
1211
1231
  f"· {followers}",
1212
1232
  size=11,
1213
1233
  muted=True,
@@ -1215,7 +1235,7 @@ class _ReviewController(NSObject):
1215
1235
  )
1216
1236
  else:
1217
1237
  content.addSubview_(
1218
- _label(NSMakeRect(M + 78, H - 70, handle_w, 18), "thread", size=12, bold=True, muted=True)
1238
+ _label(NSMakeRect(_author_x, H - 70, handle_w, 18), "thread", size=12, bold=True, muted=True)
1219
1239
  )
1220
1240
  # Non-English drafts: the prep step stamps display-only English
1221
1241
  # translations (thread_text_en / reply_text_en) on the candidate. The
package/mcp/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m13v/s4l-mcp",
3
- "version": "1.7.5-rc.5",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m13v/s4l",
3
- "version": "1.7.5-rc.5",
3
+ "version": "1.7.5-rc.7",
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",
@@ -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
- about:blank between runs, so "has an x.com tab" no longer identifies the
192
- harness. A responding port whose cmdline carries the browser-harness
193
- profile dir is kept as a last-resort fallback (never a different
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 on about:blank when the last browser-using python
721
- # process exits removes the heavy SPA from the idle window entirely. Raw
722
- # CDP over HTTP+websocket with hard 3s timeouts, NEVER Playwright: at atexit
723
- # the Playwright loop may be gone, and against an already-wedged browser this
724
- # must fail fast, not hang the exit. Callers are unaffected: the documented
725
- # get_browser_and_page contract is "caller should navigate it", and
726
- # find_twitter_cdp_port keeps a harness-profile fallback for the parked case.
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": "about:blank"},
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 about:blank (was {url[:80]})",
779
+ f"[twitter_browser] parked tab on {_PARK_URL} (was {url[:80]})",
769
780
  file=sys.stderr,
770
781
  )
771
782
  except Exception: