@m13v/s4l 1.7.7-rc.9 → 1.7.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.7-rc.9",
3
- "installedAt": "2026-08-03T22:58:39.639Z"
2
+ "version": "1.7.7",
3
+ "installedAt": "2026-08-04T18:33:55.672Z"
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.7-rc.9",
5
+ "version": "1.7.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.7-rc.9",
3
+ "version": "1.7.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.7-rc.9",
3
+ "version": "1.7.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",
@@ -103,7 +103,25 @@ def background_new_page(browser, context, url: str = "about:blank", timeout_ms:
103
103
  cdp.detach()
104
104
  except Exception:
105
105
  pass
106
- except Exception:
106
+ except Exception as e:
107
+ # LOUD fallback: this is the one remaining way a harness tab can be
108
+ # created in the foreground (= macOS focus steal). Log to stderr AND
109
+ # the universal browser-activity.log, because several lanes' stderr is
110
+ # captured into MCP results and never reaches disk (2026-08-04: an
111
+ # unattributed focus-pop hit exactly this observability hole).
112
+ msg = (f"[background_new_page] CDP background create failed "
113
+ f"({type(e).__name__}: {str(e)[:120]}); falling back to "
114
+ f"FOREGROUND new_page (focus steal likely)")
115
+ print(msg, file=sys.stderr)
116
+ try:
117
+ _p = os.path.expanduser("~/.claude/browser-profiles/browser-activity.log")
118
+ with open(_p, "a") as _f:
119
+ import time as _t
120
+ _f.write(f"[{_t.strftime('%Y-%m-%d %H:%M:%S')}] pycdp "
121
+ f"script=browser_lifecycle.py action=fg_fallback "
122
+ f"pid={os.getpid()} detail={type(e).__name__}\n")
123
+ except Exception:
124
+ pass
107
125
  return context.new_page()
108
126
 
109
127
 
@@ -364,7 +364,9 @@ def inject_via_cdp(cookies: Iterable[Cookie], cdp_url: str = "http://127.0.0.1:9
364
364
  log.info("Storage.setCookies unavailable (no tabs); opening stub tab and retrying")
365
365
  target_id = None
366
366
  try:
367
- r = _send("Target.createTarget", {"url": "about:blank"})
367
+ # background: a foreground createTarget activates Chrome on macOS
368
+ # and steals app focus, even for a utility tab like this one.
369
+ r = _send("Target.createTarget", {"url": "about:blank", "background": True})
368
370
  target_id = r.get("result", {}).get("targetId")
369
371
  if not target_id:
370
372
  log.warning("Couldn't create stub tab: %s", r)
@@ -114,7 +114,10 @@ def _reddit_page(pw):
114
114
  if page is None and ctx.pages:
115
115
  page = ctx.pages[0]
116
116
  if page is None:
117
- page = ctx.new_page()
117
+ # Zero pages: create in the BACKGROUND (2026-08-04). A plain
118
+ # new_page() is a foreground Target.createTarget = focus steal.
119
+ from browser_lifecycle import background_new_page
120
+ page = background_new_page(browser, ctx)
118
121
  page.set_default_timeout(20000)
119
122
  return browser, page
120
123
  except Exception: