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-2417
Adam Eivy534eaeb0882d
diff --cc .changelog/NEXT.mdindex 6afb2cc712,72b5a7fa59..e1eef1b8a2--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -6,8 -8,8 +8,10 @@@## Fixes+- **Privacy broker case actions are now rendered from the server's state machine, so the UI can't offer an illegal transition.** The drawer and the human-task digest strip used to decide which manual buttons to show from a hand-mirrored client map (`MANUAL_DONE_ACTION`) of the server's `STATE_TRANSITIONS` — a copy that could silently drift (the original bug: a "Mark submitted" button on blocked cases, where `blocked → submitted` is not a legal transition, so it always failed). Case payloads and digest items now carry a server-derived `allowedTransitions` list (computed from the same rules `assertTransition` enforces, folding in the any-state `human_task_queued` special case and excluding the rescan-only `confirmed_removed`/`reappeared` targets a human can't initiate). Both action strips render from a shared `state → { target, label, tone }` presentation table (`CASE_ACTIONS`, labels/tones stay UI concerns) filtered by that list, so an action whose target the server doesn't consider legal structurally cannot render.++ - **Character Sheet name edits can no longer be reverted by a stale blur-save that fires while the prior save is still in flight (#2409).** Committing a name change (Enter or blur) starts a PUT and immediately returns the header to its button view. If you reopened the editor before that PUT landed, the reopened input seeded from the pre-save name — and a subsequent blur could persist that stale value straight back over the change you just made. The name trigger now disables while a save is in flight (tracked via a `nameSaving` flag set before the PUT and cleared in `finally`) and `startNameEdit` refuses to reopen until the save settles, so exactly one write wins and no stale revert can slip through.+- **HuggingFace model downloads (Flux and every other image/video/music pull) now log to the server console.** Triggering a base-model download showed a progress bar in the UI but left no trace in the server log — the entire download path emitted progress *only* over the SSE stream to the browser, and PortOS has no HTTP access logger, so a headless/PM2 log had no record the multi-GB fetch ever ran. The shared SSE driver (`server/lib/sseDownload.js#startHfDownloadStream`, the single chokepoint behind the image, video, and music download endpoints) now writes single-line, emoji-prefixed log lines for the start of each repo pull (`⬇️`, with a forced-re-fetch marker), each file as it streams, a cache hit that skips the download (`📦`), the outcome (`✅` complete with byte count / `❌` failed with the error message), and client-disconnect cancellation (`🛑`) — while cancelled results are deliberately not logged as failures.- **Audio → MIDI transcription now prompts for HuggingFace access instead of dead-ending on a gated-repo traceback.** MuScriptor's model weights turned out to live in a *gated* HuggingFace repo (`MuScriptor/muscriptor-*`), so the first transcription on a fresh install — even right after the runtime auto-installs — 403'd with a raw `GatedRepoError: Access to model … is restricted` traceback the user couldn't act on. The MuScriptor sidecar now runs under the shared `install_hf_error_handler` (the same cause-chain walker the image/video runners use), so a gated download emits a structured `USER_ERROR:gated_repo:<repo>` marker; the server classifies that into a typed `gated_repo` SSE frame (carrying the repo id), and the client opens the same license-accept + token-paste prompt the gated image models use (reusing `HfTokenBanner`): accept the model's license, paste a HuggingFace read token, and the transcription you originally asked for re-runs automatically. Gated-error detection is now shared via `isGatedRepoError`/`extractGatedRepo` in `server/lib/hfErrors.js` (also adopted by the image runner's prose fallback).