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-1305
[._.]/ Adam Eivy1c650bf16e6e
diff --cc .changelog/NEXT.mdindex fc3a5cc3e9,1829ad229a..4371728db7--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -2,7 -2,9 +2,10 @@@## Added+- **[issue-1305] Continuity bible — an established-facts ledger for your series.** A new **Series Continuity** view (linked from the series page) builds a ledger of the concrete, *checkable* facts your story has committed to — the kind a later scene could contradict. Facts are **auto-seeded from universe canon** (each character's physical description, each place/object's description; **locked** canon is flagged as ground truth) and then **learned from the drafted prose** via an LLM extraction pass, sorted into seven buckets: physical traits, ages & birthdays, dates & elapsed time, locations & geography, possessions & wardrobe, world rules, and **who-knows-what-when**. Each fact shows its subject, the assertion, a canon/prose badge, and — for prose facts — a verbatim anchor quote and a deep-link to the issue where it was established. Generation streams live progress; the ledger flags itself **stale** when the manuscript or canon changes so you know to rebuild. This ledger is the substrate the upcoming contradiction checks (canon-contradiction, timeline, knowledge-leak, wardrobe/prop/injury) will read rather than re-deriving. New endpoints: `GET /api/pipeline/series/:id/continuity-bible` + `POST …/generate` (with SSE progress + cancel); one new stage prompt (`pipeline-continuity-bible`) shipped + migrated for existing installs. (#1305)+ - **[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)