@m13v/s4l 1.7.4-rc.11 → 1.7.4-rc.13

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.4-rc.11",
3
- "installedAt": "2026-07-11T02:01:02.682Z"
2
+ "version": "1.7.4-rc.13",
3
+ "installedAt": "2026-07-11T02:59:38.374Z"
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.4-rc.11",
5
+ "version": "1.7.4-rc.13",
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": {
@@ -431,7 +431,21 @@ def _details_lines(d):
431
431
  d = d or {}
432
432
  lines = []
433
433
  style = (d.get("engagement_style") or "").strip()
434
- if style:
434
+ # Two-draft cards (2026-07-11): name each slot's style so the reviewer
435
+ # can tell WHICH style produced the draft they are picking (Draft B is
436
+ # the exploration slot; its source arm renders separately below via the
437
+ # generic experiments lines). Single-draft cards keep the old one-liner.
438
+ _dual = d.get("drafts")
439
+ if isinstance(_dual, list) and len(_dual) == 2:
440
+ _slot_labels = {"a": "Draft A", "b": "Draft B"}
441
+ for _draft in _dual:
442
+ _s = (_draft.get("style") or "").strip()
443
+ if _s:
444
+ _label = _slot_labels.get(
445
+ (_draft.get("variant") or "").strip().lower(), "Draft"
446
+ )
447
+ lines.append(f"{_label} style: {_s}")
448
+ elif style:
435
449
  lines.append(f"Style: {style}")
436
450
  desc = (d.get("style_description") or "").strip()
437
451
  if desc:
package/mcp/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m13v/s4l-mcp",
3
- "version": "1.7.4-rc.11",
3
+ "version": "1.7.4-rc.13",
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.4-rc.11",
3
+ "version": "1.7.4-rc.13",
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",
@@ -1482,13 +1482,35 @@ def get_assigned_style_prompt(platform, assignment, context="posting"):
1482
1482
  # LENGTH A/B CONCLUDED 2026-06-04: control won, so the prompt always
1483
1483
  # uses the legacy generic length guidance. The treatment's per-style
1484
1484
  # target prompt remains preserved only in the shipped experiment card.
1485
- lines.append("")
1486
- lines.append(
1487
- "**LENGTH: keep it tight.** One or two sentences, well under the "
1488
- "250-character Twitter limit. A short, sharp reply almost always "
1489
- "beats a paragraph. This applies to the comment text only; any "
1490
- "link/CTA the system appends afterward is separate."
1491
- )
1485
+ #
1486
+ # EXCEPTION (2026-07-11, Draft-B explore slot): exploration
1487
+ # assignments (pick_exploration_style, marked by `source`) honor the
1488
+ # style's own target_chars so the A/B pair diverges on the length
1489
+ # axis too. The uniform clamp flattened every draft to the same
1490
+ # 2-sentence shape (user: "the older drafts looked all very similar
1491
+ # in terms of the length"). The 06-04 conclusion still governs the
1492
+ # scored path, which never carries `source`.
1493
+ _explore_tc = assignment.get("target_chars")
1494
+ if (assignment.get("source") in ("human_derived", "model_invented")
1495
+ and _explore_tc):
1496
+ lines.append("")
1497
+ lines.append(
1498
+ f"**LENGTH: aim for about {int(_explore_tc)} characters** "
1499
+ "(this style's own winning length; within about 30% either "
1500
+ "way is fine, never above 250). Let the target set the form: "
1501
+ "a very short target means one clipped line, a long one can "
1502
+ "breathe. Do NOT default to the usual two-sentence shape. "
1503
+ "This applies to the comment text only; any link/CTA the "
1504
+ "system appends afterward is separate."
1505
+ )
1506
+ else:
1507
+ lines.append("")
1508
+ lines.append(
1509
+ "**LENGTH: keep it tight.** One or two sentences, well under the "
1510
+ "250-character Twitter limit. A short, sharp reply almost always "
1511
+ "beats a paragraph. This applies to the comment text only; any "
1512
+ "link/CTA the system appends afterward is separate."
1513
+ )
1492
1514
  lines.append("")
1493
1515
  lines.append(
1494
1516
  'In your output JSON, set "engagement_style" to exactly '
@@ -393,15 +393,21 @@ def _is_actionable(e: dict) -> bool:
393
393
  # as actionable as a reject (and it feeds edit_examples).
394
394
  if e.get("edited"):
395
395
  return True
396
- # An explicit pairwise draft choice (switched to B, or tried B and came
397
- # back to A) is style evidence on par with an edit; without this trigger a
398
- # reviewer who mostly approves would bank pairwise signals behind the
399
- # plain-approvals gate forever. Hover-only informed keeps stay
400
- # NON-actionable on purpose: they are corroborating-weight evidence (like
401
- # no_reason_given) and ride along with the next real trigger instead of
402
- # burning a Claude turn on their own.
396
+ # Any pairwise draft signal triggers the digest (2026-07-10 user rule,
397
+ # widened same evening): an explicit choice (switched to B, or tried B
398
+ # and came back to A) is style evidence on par with an edit, and even a
399
+ # hover-read of the other draft (>= DRAFT_READ_MS) is a small but real
400
+ # signal that must flow through the pipeline rather than bank forever
401
+ # behind the plain-approvals gate. The PROMPT still weights the tiers
402
+ # (explicit strong, hover-read weak/corroborating); this gate only
403
+ # decides when a Claude turn is worth burning. A zero-interaction
404
+ # approve (second_draft_not_read) remains non-actionable: no signal.
403
405
  dc = _draft_choice(e)
404
- if dc and (not dc.get("auto_selected") or dc.get("visited_other")):
406
+ if dc and (
407
+ not dc.get("auto_selected")
408
+ or dc.get("visited_other")
409
+ or (dc.get("hover_b_ms") or 0) >= DRAFT_READ_MS
410
+ ):
405
411
  return True
406
412
  return bool((e.get("reject_note") or "").strip())
407
413