@m13v/s4l 1.6.200 → 1.6.201

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.6.200",
3
- "installedAt": "2026-07-04T00:00:21.537Z"
2
+ "version": "1.6.201",
3
+ "installedAt": "2026-07-04T00:10:10.313Z"
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.6.200",
5
+ "version": "1.6.201",
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.6.200",
3
+ "version": "1.6.201",
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.6.200",
3
+ "version": "1.6.201",
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",
@@ -57,7 +57,9 @@ RUNNING_STALL_SECONDS = 900
57
57
  # At StartInterval 120 that is ~6 min of continuous stall.
58
58
  ALERT_AFTER = 3
59
59
 
60
- WORKER_TASK_IDS = ("saps-phase1-query", "saps-phase2b-draft")
60
+ # Includes the current universal worker id; legacy phase pair kept for old
61
+ # installs (same stale-checker drift fix as scheduled_tasks_snapshot.py, 2026-07-03).
62
+ WORKER_TASK_IDS = ("s4l-worker", "saps-worker", "saps-phase1-query", "saps-phase2b-draft")
61
63
 
62
64
 
63
65
  def _state_dir() -> str:
@@ -27,7 +27,15 @@ import os
27
27
  import sys
28
28
 
29
29
  # --- Kept in sync with mcp/menubar/s4l_menubar.py ---------------------------
30
- WORKER_TASK_IDS = ("saps-phase1-query", "saps-phase2b-draft")
30
+ # Current installs run ONE universal worker task (s4l-worker). The phase pair
31
+ # is the retired legacy shape kept only so old installs still report. Checking
32
+ # ONLY the legacy names made every current install scream
33
+ # missing_worker_tasks=[saps-phase1-query, saps-phase2b-draft] forever while
34
+ # the real s4l-worker task fired every minute and wasn't even LISTED (Karol,
35
+ # 2026-07-03 — this false alarm derailed the whole onboarding investigation).
36
+ WORKER_TASK_IDS = ("s4l-worker", "saps-worker", "saps-phase1-query", "saps-phase2b-draft")
37
+ CURRENT_WORKER_TASK_IDS = ("s4l-worker", "saps-worker")
38
+ LEGACY_WORKER_TASK_IDS = ("saps-phase1-query", "saps-phase2b-draft")
31
39
  DEPRECATED_TASK_IDS = ("social-autoposter-autopilot",)
32
40
  WORKER_CWD = os.path.join(os.path.expanduser("~"), ".s4l-worker")
33
41
  # "Claude*": the host app can run with a custom --user-data-dir (per-account
@@ -88,11 +96,17 @@ def build_summary() -> dict:
88
96
  })
89
97
 
90
98
  mislocated = sum(1 for t in tasks if not t["in_worker_dir"])
99
+ # "Missing" means NO viable worker lane at all: neither a current universal
100
+ # task nor the complete legacy pair. Naming every absent id was wrong once
101
+ # the id set spanned generations (a healthy current install always "misses"
102
+ # the legacy pair and vice versa).
103
+ have_current = bool(seen_ids & set(CURRENT_WORKER_TASK_IDS))
104
+ have_legacy = set(LEGACY_WORKER_TASK_IDS) <= seen_ids
91
105
  return {
92
106
  "worker_dir_tail": _cwd_tail(WORKER_CWD),
93
107
  "registries": registries,
94
108
  "worker_tasks": len(tasks),
95
- "missing_worker_tasks": sorted(set(WORKER_TASK_IDS) - seen_ids),
109
+ "missing_worker_tasks": [] if (have_current or have_legacy) else ["s4l-worker"],
96
110
  "mislocated": mislocated,
97
111
  # all_in_worker_dir is False when there are zero worker tasks too, since
98
112
  # "no autopilot registered" is itself a state worth seeing centrally.
@@ -62,7 +62,13 @@ REQUIRED_FIELDS = ["name", "website", "description", "icp", "voice", "search_top
62
62
  # only setup can NEVER report setup_complete (any_ready requires a managed product),
63
63
  # leaving the menu bar stuck on "project not set up". (2026-06-30)
64
64
  PERSONA_REQUIRED_FIELDS = ["name", "description", "voice", "search_topics"]
65
- WORKER_TASK_IDS = ("saps-phase1-query", "saps-phase2b-draft")
65
+ # Current installs run ONE universal worker task (s4l-worker); the phase pair
66
+ # is the retired legacy shape. Checking ONLY the legacy pair made every current
67
+ # install read "autopilot off" forever (Karol, 2026-07-03: worker fired every
68
+ # minute while this check reported the tasks missing). Keep in sync with
69
+ # scripts/schedule_state.py and mcp/menubar/s4l_menubar.py.
70
+ CURRENT_WORKER_TASK_IDS = ("s4l-worker", "saps-worker")
71
+ LEGACY_WORKER_TASK_IDS = ("saps-phase1-query", "saps-phase2b-draft")
66
72
  UPDATER_LABEL = "com.m13v.social-autoposter-update"
67
73
  AUTOPILOT_STALL_MS = 180_000
68
74
 
@@ -179,7 +185,15 @@ def _mode_chosen() -> bool:
179
185
  def _autopilot_on() -> bool:
180
186
  base = os.path.join(_claude_cfg_dir(), "scheduled-tasks")
181
187
  try:
182
- return all(os.path.exists(os.path.join(base, t, "SKILL.md")) for t in WORKER_TASK_IDS)
188
+ if any(
189
+ os.path.exists(os.path.join(base, t, "SKILL.md"))
190
+ for t in CURRENT_WORKER_TASK_IDS
191
+ ):
192
+ return True
193
+ return all(
194
+ os.path.exists(os.path.join(base, t, "SKILL.md"))
195
+ for t in LEGACY_WORKER_TASK_IDS
196
+ )
183
197
  except Exception:
184
198
  return False
185
199