@m13v/s4l 1.7.5-rc.39 → 1.7.5-rc.40

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.39",
3
- "installedAt": "2026-07-16T16:36:55.998Z"
2
+ "version": "1.7.5-rc.40",
3
+ "installedAt": "2026-07-16T16:44:33.811Z"
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.39",
5
+ "version": "1.7.5-rc.40",
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.39",
3
+ "version": "1.7.5-rc.40",
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.39",
3
+ "version": "1.7.5-rc.40",
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",
@@ -96,6 +96,39 @@ _resolve_chrome_bin() {
96
96
  echo ""; return 1
97
97
  }
98
98
 
99
+ _hc_capture_wedge_diagnostics() {
100
+ # Photograph a wedged Chrome BEFORE the reap kills it (2026-07-16): the
101
+ # ws-handshake wedge survived the Chrome 150→151 jump and the 8s→20s
102
+ # probe widening, hits all three harness ports ~hourly, and correlates
103
+ # with zero renderer crashes — so stop theorizing and capture (a) a 3s
104
+ # thread-stack sample of the browser process (what is the DevTools accept
105
+ # path stuck on?) and (b) an open-connection census of the CDP port
106
+ # (client/socket pile-up?). Written to skill/logs/wedge-diag/, pruned to
107
+ # the last 10 wedges. Read-only, best-effort, ~4s added to a restart that
108
+ # was already happening. sample(1) is Darwin-only.
109
+ local _wd_port="${1:?port}" _wd_prof="${2:?profile dir}"
110
+ [ "$(uname -s)" = "Darwin" ] || return 0
111
+ local _wd_dir="$_BH_REPO_DIR/skill/logs/wedge-diag"
112
+ mkdir -p "$_wd_dir" 2>/dev/null || return 0
113
+ local _wd_ts _wd_pid _wd_out
114
+ _wd_ts=$(date -u +%Y%m%dT%H%M%SZ)
115
+ _wd_out="$_wd_dir/wedge-${_wd_port}-${_wd_ts}.txt"
116
+ _wd_pid=$(lsof -nP -iTCP:"$_wd_port" -sTCP:LISTEN -t 2>/dev/null | head -1)
117
+ {
118
+ echo "=== wedge diagnostics port=${_wd_port} pid=${_wd_pid:-none} ts=${_wd_ts} profile=${_wd_prof} ==="
119
+ echo "--- open TCP connections on ${_wd_port} ---"
120
+ lsof -nP -iTCP:"$_wd_port" 2>/dev/null
121
+ echo "--- system load ---"
122
+ uptime
123
+ } > "$_wd_out" 2>&1 || true
124
+ if [ -n "$_wd_pid" ]; then
125
+ sample "$_wd_pid" 3 -mayDie -file "${_wd_out%.txt}.sample.txt" >/dev/null 2>&1 || true
126
+ fi
127
+ echo "[$(_hc_ts)] wedge diagnostics captured: $_wd_out" >&2
128
+ # Prune: keep the 10 newest captures (2 files each).
129
+ ls -t "$_wd_dir"/wedge-* 2>/dev/null | tail -n +21 | xargs rm -f 2>/dev/null || true
130
+ }
131
+
99
132
  hc_cdp_ready() {
100
133
  # Real CDP readiness: complete an actual connect_over_cdp handshake against
101
134
  # the harness. /json/version alone is a liveness probe that a WEDGED Chrome
@@ -269,6 +302,7 @@ hc_ensure_browser() {
269
302
  # twitter_access_gate; bin/server.js parses the twitter one).
270
303
  echo "${_marker}: detected url=${_def_url} action=restart" >&2
271
304
  hc_record_health wedge_restart "$_ready_verdict"
305
+ _hc_capture_wedge_diagnostics "$_port" "$_prof"
272
306
  _hc_reap_profile_owners "$_prof"
273
307
  fi
274
308
  else