linkedin-studio/hooks/scripts
Kjell Tore Guttormsen 0907b2b92d feat(linkedin-studio): trend-store staleness nudge — SessionStart B-S3 [skip-docs]
SessionStart now warns (>=7d, warn-only) when the persistent trend store's
newest capture is stale, firing ONLY when the store already holds captures
(a never-scanned user is never nagged). Neutral wording — "scan for trends"
hits trend-spotter's own trigger; no hardcoded beat (de-niche invariant).

- store.ts: newestCaptureDate() — pure max-capturedAt staleness signal (SSOT)
- cli.ts: status [--json] subcommand (count + newest + daysStale)
- session-start.mjs: trendsNewestCapture() reads trends.json as raw JSON
  (no tsx spawn at session start) + the reminder line, beside import-staleness
- tests: +3 store tests (newestCaptureDate) + hook subprocess test (3 cases:
  >=7d fires, <7d silent, absent/empty silent + no crash)
- test-runner.sh: trends floor 21->24

Verified: trends 24/24 · all hook tests 131/131 · gate 89/0/0 · real render
confirms "Trend signals are N days old. Scan for trends…".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RigJBiRFNtFZKCz21qNbQ4
2026-06-23 12:23:53 +02:00
..
__tests__ feat(linkedin-studio): trend-store staleness nudge — SessionStart B-S3 [skip-docs] 2026-06-23 12:23:53 +02:00
clipboard-helper.mjs refactor(linkedin)!: rename plugin linkedin-thought-leadership → linkedin-studio (v3.0.0) 2026-05-29 11:32:02 +02:00
compile-hooks.py feat(ultraplan-local): v1.6.0 — /ultraresearch-local deep research command 2026-04-08 08:58:35 +02:00
content-gatekeeper.mjs refactor(linkedin)!: rename plugin linkedin-thought-leadership → linkedin-studio (v3.0.0) 2026-05-29 11:32:02 +02:00
data-root.mjs refactor(linkedin-studio): M0-1 — data-root.mjs resolver twin + test 2026-06-18 11:08:52 +02:00
ical-generator.mjs refactor(linkedin)!: rename plugin linkedin-thought-leadership → linkedin-studio (v3.0.0) 2026-05-29 11:32:02 +02:00
linkedin-content-filter.mjs refactor(linkedin-studio): M0-10 — content-filter recognizes external drafts (after negatives, before infraDirs) 2026-06-18 11:50:04 +02:00
migrate-data.mjs refactor(linkedin-studio): M0-4 — migrate-data.mjs atomic+locked+idempotent (created, not wired) 2026-06-18 11:21:00 +02:00
personalization-score.mjs refactor(linkedin-studio): M0-7 — scorer reads external instance (mirrors MOVE/COPY_FILES), plugin fallback (HIGH #3) 2026-06-18 11:42:50 +02:00
posting-reminder.mjs refactor(linkedin)!: rename plugin linkedin-thought-leadership → linkedin-studio (v3.0.0) 2026-05-29 11:32:02 +02:00
pre-compact.mjs refactor(linkedin)!: rename plugin linkedin-thought-leadership → linkedin-studio (v3.0.0) 2026-05-29 11:32:02 +02:00
queue-manager.mjs refactor(linkedin-studio): M0-5 — queue-manager.mjs via getDataRoot('drafts') 2026-06-18 11:31:56 +02:00
quick-import.mjs refactor(linkedin-studio): M0-6 — quick-import.mjs via getDataRoot + fix printed path 2026-06-18 11:35:14 +02:00
session-start.mjs feat(linkedin-studio): trend-store staleness nudge — SessionStart B-S3 [skip-docs] 2026-06-23 12:23:53 +02:00
state-updater.mjs fix(linkedin-studio): S13 — close S12 WARN ($-scalar + false-green test) + $-safety lint guard 2026-05-30 19:12:45 +02:00
stop-reminder.mjs refactor(linkedin)!: rename plugin linkedin-thought-leadership → linkedin-studio (v3.0.0) 2026-05-29 11:32:02 +02:00
user-prompt-context.mjs refactor(linkedin-studio): M0-8 — voice read via getDataRoot (SC7) 2026-06-18 11:45:14 +02:00
week-rollover.mjs feat(ultraplan-local): v1.6.0 — /ultraresearch-local deep research command 2026-04-08 08:58:35 +02:00