@m13v/s4l 1.7.5-rc.40 → 1.7.5-rc.41
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/menubar/s4l_state.py +41 -0
- package/mcp/package.json +1 -1
- package/package.json +1 -1
- package/skill/lib/harness-common.sh +16 -1
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.41",
|
|
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/menubar/s4l_state.py
CHANGED
|
@@ -809,6 +809,47 @@ def discard_all_pending(drafts):
|
|
|
809
809
|
return _store_update(mutate) or 0
|
|
810
810
|
|
|
811
811
|
|
|
812
|
+
def approve_all_pending(decisions):
|
|
813
|
+
"""Bulk-approve an entire pending set (the canvas control card's
|
|
814
|
+
"Approve All"), durably and atomically in ONE lock acquisition --
|
|
815
|
+
mirrors discard_all_pending's shape exactly, just for the approve
|
|
816
|
+
direction. `decisions` is the same per-draft decision dict shape
|
|
817
|
+
_on_card_decision/_record already produce (n, candidate_id, text,
|
|
818
|
+
edited, drop_link, loved, draft_choice).
|
|
819
|
+
|
|
820
|
+
Doing this as N separate store_stamp_decision() calls (one full
|
|
821
|
+
lock-acquire/read/write cycle EACH) is what caused the visible UI hang
|
|
822
|
+
on a real backlog (2026-07-16 user report: "when I approved All, it
|
|
823
|
+
hung for a second"). One bulk write fixes that the same way
|
|
824
|
+
discard_all_pending already avoided it -- see _approve_all_pending in
|
|
825
|
+
s4l_menubar.py, which still does the cheap per-draft posting-queue
|
|
826
|
+
enqueue afterward (that part was never the slow one)."""
|
|
827
|
+
|
|
828
|
+
def mutate(data):
|
|
829
|
+
done = 0
|
|
830
|
+
for decision in decisions:
|
|
831
|
+
c = _match_candidate(data, decision.get("n"), decision.get("candidate_id"))
|
|
832
|
+
if c is None:
|
|
833
|
+
continue
|
|
834
|
+
c["approved"] = True
|
|
835
|
+
c.pop("post_failed", None)
|
|
836
|
+
c.pop("post_error", None)
|
|
837
|
+
c["decision"] = {
|
|
838
|
+
"approved": True,
|
|
839
|
+
"text": decision.get("text") or "",
|
|
840
|
+
"edited": bool(decision.get("edited")),
|
|
841
|
+
"drop_link": bool(decision.get("drop_link")),
|
|
842
|
+
"loved": bool(decision.get("loved")),
|
|
843
|
+
"reject_category": None,
|
|
844
|
+
"draft_choice": decision.get("draft_choice"),
|
|
845
|
+
"decided_at": time_iso(),
|
|
846
|
+
}
|
|
847
|
+
done += 1
|
|
848
|
+
return done
|
|
849
|
+
|
|
850
|
+
return _store_update(mutate) or 0
|
|
851
|
+
|
|
852
|
+
|
|
812
853
|
def flip_discarded_candidates_skipped(candidate_ids):
|
|
813
854
|
"""Flip each bulk-discarded candidate's twitter_candidates row to
|
|
814
855
|
status='skipped', skip_reason='human_discarded_all' — the same DB effect a
|
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.41",
|
|
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
|
@@ -122,7 +122,22 @@ _hc_capture_wedge_diagnostics() {
|
|
|
122
122
|
uptime
|
|
123
123
|
} > "$_wd_out" 2>&1 || true
|
|
124
124
|
if [ -n "$_wd_pid" ]; then
|
|
125
|
-
|
|
125
|
+
# Sample WHILE a third probe runs (v2, 2026-07-16). The first capture
|
|
126
|
+
# photographed a perfectly healthy Chrome ~40s after the failed
|
|
127
|
+
# handshakes — post-seizure. Sampling concurrently with a live
|
|
128
|
+
# handshake catches the DevTools thread in the failing act, and the
|
|
129
|
+
# third probe's own verdict is the transient-vs-dead discriminator:
|
|
130
|
+
# READY here means the "wedge" clears within ~a minute and the right
|
|
131
|
+
# fix is a wider strike window, not a kill.
|
|
132
|
+
sample "$_wd_pid" 10 -mayDie -file "${_wd_out%.txt}.sample.txt" >/dev/null 2>&1 &
|
|
133
|
+
local _wd_sampler=$!
|
|
134
|
+
local _wd_v3=""
|
|
135
|
+
if _wd_v3=$(hc_cdp_ready "http://127.0.0.1:${_wd_port}"); then
|
|
136
|
+
echo "--- third probe DURING sample: READY (wedge is TRANSIENT): ${_wd_v3}" >> "$_wd_out"
|
|
137
|
+
else
|
|
138
|
+
echo "--- third probe DURING sample: STILL FAILING: ${_wd_v3}" >> "$_wd_out"
|
|
139
|
+
fi
|
|
140
|
+
wait "$_wd_sampler" 2>/dev/null || true
|
|
126
141
|
fi
|
|
127
142
|
echo "[$(_hc_ts)] wedge diagnostics captured: $_wd_out" >&2
|
|
128
143
|
# Prune: keep the 10 newest captures (2 files each).
|