Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
Merge remote-tracking branch 'origin/main' into claim/issue-1304
[._.]/ Adam Eivydb305151ef3f
diff --cc .changelog/NEXT.mdindex 63efffd95b,7dd379a3f6..1829ad229a--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -2,8 -2,10 +2,12 @@@## Added+- **[issue-1304] Read aloud — proof a manuscript section by ear with synced karaoke highlighting.** Reading prose aloud is one of the most effective proofing techniques: clunky rhythm, tongue-twisters, repeated words, and unnatural sentences are obvious to the ear and invisible to the eye. The Manuscript Editor gets a **Read aloud** button (in the header, next to Impact preview) that opens a read-along panel for the active section. It synthesizes the section's prose with the same local TTS engines that already voice storyboard dialogue (Kokoro/Piper — no new dependency, no network), splitting the text into sentence segments so it can **highlight each sentence as it's spoken** (karaoke-style) and let you click any sentence to jump there. Sync needs no word-level timestamps: the server measures each sentence's WAV duration and the client plays the segments back-to-back, driving the highlight + a progress bar from those durations. A pick-a-narrator-voice control (remembered across sessions) reuses the shared VoicePicker. Each sentence also carries a lightweight **"hard to say" scan** — over-long sentences, hard consonant clusters, alliteration runs, and a word repeated in close proximity get a wavy underline + hover tooltip so likely trouble-spots are visible before and while you listen. Narration is strictly **non-destructive** — it only reads the section's current text and never mutates the manuscript. New endpoint: `POST /api/pipeline/tts/narrate` (text → per-segment audio + duration + readability). (`server/services/pipeline/manuscriptNarration.js`, `server/services/pipeline/audio.js`, `server/routes/pipeline/audio.js`, `client/src/components/pipeline/manuscript/ManuscriptReadAloud.jsx`, `client/src/pages/PipelineManuscriptEditor.jsx`, `client/src/services/apiPipeline.js`) (#1304)++ - **[issue-1320] Character-LoRA caption lint — warn when identity leaks into captions, and strip it in one click.** When every caption for a character repeats the same invariant features ("white hair, circlet, tooth necklace"), the LoRA binds the look to those *phrases* instead of the trigger token — so the bare trigger renders a generic subject and only the full identity description reproduces the character (the exact failure that surfaced training Freydis). The dataset workbench now analyzes the captioned images, and when a descriptive fragment repeats across ≥80% of captions it shows an **advisory banner** listing the shared fragments (with their hit counts) and a **Strip shared identity from all captions** button that removes those fragments from every caption while preserving the trigger word and the per-shot detail (pose, framing, setting). The strip recomputes the shared set server-side (`POST /api/lora-datasets/:id/strip-shared-fragments`) so it never trusts a stale client list, and it's idempotent. The "Tips for a strong training dataset" panel gains the caption recipe — *describe what changes shot-to-shot, not who the subject is* — so the guidance is on the page before a caption ever drifts. The threshold is high on purpose: a *varying* attribute (a single view or pose) only appears in a slice of the set, so it separates baked-in identity from legitimate variation without flagging the latter. (`server/lib/loraDataset.js`, `server/services/loraDatasets.js`, `server/routes/loraDatasets.js`, `client/src/pages/LoraDatasetDetail.jsx`, `client/src/services/apiLoraTraining.js`) (#1320)++ - **[issue-1303] Per-series style guide — one source of truth for tense, POV, audience, rating, and reading level.** Style used to live only in free-text notes, so generation could drift and nothing could check conformance. Each series now has a structured **style guide** on its bible: narrative **tense** (past/present), **POV person** (first / second / third-limited / third-omniscient), **target audience**, **content rating** + allowed **profanity**, a target **reading level**, **tone** words, and copy-edit **conventions** (Oxford comma, US/UK spelling, italicize-thoughts). The guide is woven into prose and arc generation so the AI writes in the right register from the start, and two new editorial checks audit the drafted manuscript against it: **Reading-level conformance** (measures the manuscript's grade level and flags it when it drifts from the target) and **Style-guide conformance** (an LLM scan for tense slips, POV-person drift, and content/profanity beyond the configured rating). Everything is optional and additive — a series without a style guide behaves exactly as before — and the field is version-gated for cross-machine sync so an older peer can't silently strip it. (#1303)+- **[issue-1354] Catalog cards show image thumbnails, generate art from a description, and a "Sync from Universes" button pulls in missing canon.** Three catalog gaps closed at once. (1) **Missing canon items** — characters/places/objects you add to a universe *after* the one-time setup never appeared in the Catalog, because canon→catalog promotion only ran once per install. A new **Sync from Universes** button on the Catalog page re-runs that promotion on demand (idempotent — already-catalogued items are skipped), so the catalog catches up to your universes in one click and the list refreshes with what was pulled in. (2) **Thumbnails** — each catalog card now shows the item's portrait (or its most recent reference image) as a thumbnail, falling back to a placeholder when there's no image, so the grid is scannable at a glance. (3) **Generate from description** — the catalog item editor's Media panel gets a **Generate** button that turns the item's description into an image via the same image-gen queue the universe canon uses; the first generated image becomes the item's portrait (and thumbnail), later ones attach as references. The button is disabled until the item has a description to render from. (#1354)- **[issue-1289] Ticking clock — model the countdown your reader is anticipating.** A story's "what is this building toward?" — an incoming storm, a deadline, a prophecy's hour — is now a first-class part of the series arc instead of something only implied. On the Arc Canvas you can turn on a **ticking clock**, name it, pick its kind (deadline / event / countdown / prophecy / bomb / custom), set where it's planted and where it's due, spell out the stakes if it runs out, and add **reminder beats** that keep it ticking in the reader's mind; it shows on the arc card and the Story Builder reader-map view with its plant→due span. The countdown is fed into arc generation so the AI reinforces it, and a new **Ticking-clock hygiene** editorial check flags a clock that's unnamed, has no stakes, has no plant/due span, is due before it's planted, or has no reminder beats to keep the reader from forgetting it through the long middle. (#1289)