@m13v/s4l 1.7.5-rc.6 → 1.7.5-rc.8

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.6",
3
- "installedAt": "2026-07-14T21:20:48.558Z"
2
+ "version": "1.7.5-rc.8",
3
+ "installedAt": "2026-07-14T21:31:44.643Z"
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.6",
5
+ "version": "1.7.5-rc.8",
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": {
@@ -2213,6 +2213,14 @@ class S4LMenuBar(rumps.App):
2213
2213
  ):
2214
2214
  label = self._posting_label
2215
2215
  if label:
2216
+ # Menu bar stays CONCISE (user rule 2026-07-14): strip the trailing
2217
+ # elapsed-duration token the producer encodes in the label ("draft
2218
+ # 2m", "draft ⧖18m") from the TITLE only. The full label (with the
2219
+ # duration the stall detector's _label_elapsed_secs parses) still
2220
+ # lives in activity.json — this is display-side trimming, never a
2221
+ # change to the data.
2222
+ import re as _re
2223
+ label = _re.sub(r"\s*⧖?\s*\d+\s*[sm]\s*$", "", str(label)).strip() or label
2216
2224
  # The update arrow must stay visible even while a tool runs, so the
2217
2225
  # "update available" signal is never masked by activity. _tick skips the
2218
2226
  # title repaint while the spinner owns it, so the arrow is injected here.
package/mcp/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m13v/s4l-mcp",
3
- "version": "1.7.5-rc.6",
3
+ "version": "1.7.5-rc.8",
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.6",
3
+ "version": "1.7.5-rc.8",
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",
@@ -88,7 +88,10 @@ TYPE_TO_ACTIVITY = {
88
88
  "invent-topic": ("learning", "new topic"),
89
89
  "invent-queries": ("learning", "new queries"),
90
90
  "twitter-link-tail": ("drafting", "link bridge"),
91
- "reddit-draft": ("drafting", "reddit draft"),
91
+ # Same bare "draft" label as twitter-prep ON PURPOSE: the menu bar title
92
+ # must stay concise (user rule 2026-07-14); the platform shows on the
93
+ # review card itself, not in the tray.
94
+ "reddit-draft": ("drafting", "draft"),
92
95
  }
93
96
 
94
97
  # queue type -> execution notes PREPENDED to the prompt sidecar at claim time.
@@ -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: