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
docs: add changelog entry for the behaviour-preserving refactor pass
[._.]/ Adam Eivycd100fc308de
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex e60d72b2df..b173fd04df 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -29,6 +29,7 @@- Adding an app no longer writes a PM2 config into the project on its own. Importing a directory ran the PM2 standardizer the instant detection finished — dropping an `ecosystem.config.cjs` into the repo, commenting the ports out of its `.env` and Vite config, and cutting a git backup branch — before you had even saved the app. Only iOS/macOS/Swift/Xcode projects were exempt, so Docker stacks, Python services, static sites, and anything else you start another way all got a PM2 config they will never use, plus an LLM call nobody asked for. Standardizing is now a button in the Add App wizard that says what it will rewrite, and it is still available later from the Apps list. The wizard also shows the standardizer's live per-step detail while it runs (including the "no git repository, backup skipped" case) instead of one undifferentiated row.- Standardizing an app is now refused server-side for apps PortOS never runs under PM2, and for PortOS itself. The rule previously lived only in which buttons happened to render, so the socket and HTTP entry points would happily standardize an iOS app — or rewrite PortOS's own `ecosystem.config.cjs`, the canonical source of its port map, from an LLM analysis. The Standardize button on an app's Overview tab is now hidden for PortOS too, matching the Archive button beside it.+- A behaviour-preserving refactor pass tidied several long-standing hot spots without changing what PortOS does. `spawnTuiAgent`'s paste/retry/max-runtime machinery moved into its own controller instead of sharing a ~1400-line function's mutable scope; `agentCompletion` stopped importing `getConfig` from `cos.js`, which was the closing edge of ~82 circular import chains; three inlined bodies in the series-autopilot dispatcher moved out to `arcSteps.js` alongside its sibling step runners; Layout's 85-line full-width-route boolean, ImageGen's mode-label ternary and peerSync's 15-branch lister ladder became lookup tables; the daily/weekly/custom schedule cases collapsed to one shared interval evaluation; `server/index.js` and `Browser.jsx` now use the canonical `PORTS.API` and `formatDurationMs` instead of local copies; and a batch of dead imports was removed. The full test suite passes unmodified — no test file was edited — so return values, side effects, error messages and public API shapes are all unchanged.- The fork-aware self-update flow is now documented on its own page (`docs/SELF_UPDATE.md`) and indexed in the docs README. It explains why release polling always queries upstream while the update itself pulls from your own origin, what the `FORK_SYNC_REQUIRED` and `FORK_DIVERGED` responses mean, and what each of the three fork-specific update buttons does — previously this only existed as a terse note in the repo's agent instructions.- The README now matches what PortOS actually is. Its feature list had drifted behind roughly a year of surfaces — Sprites, Game asset binding, the 3D image-to-mesh page, Authors, Story Builder, LoRA training, the Pipeline's editorial/continuity/voice-fingerprint checks, the Privacy Center (vault, organizations, change-of-address, data brokers), the activity timeline, SongBook, iMessage/Signal/X, Workspaces, Flows, the local-LLM playground, and the public API surface were all missing. Several stated facts were also wrong: React 18 (it's 19), 117 curated genome markers (116), six agent skill templates (seven), five POST domains (six — the whole Cognitive domain was unlisted), a provider roster missing Grok Build, Cursor Agent and OpenCode, and a contributing note claiming PortOS has "no auth" when an optional instance password has shipped for some time.- The setup scripts now require Node 22 instead of 18. Vite 8 needs ^20.19 || >=22.12, so a v18 machine passed the version gate and then failed several minutes later at the client build with a much less obvious error. The README's stated requirement was updated to match.