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([issue-742]): log agentLifecycle split to changelog
[._.]/ Adam Eivyfa401bfc279a
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 438024d651..b3f58588fb 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -27,6 +27,7 @@- **[issue-741]** Extracted the CoS task-generation engine — the evaluation loop that decides what to spawn each cycle, the self-improvement / managed-app / idle-review task generators, and the PLAN.md in-flight pick helpers — out of `cos.js` into a dedicated `cosTaskGenerator.js` behind an unchanged public API; the spawn-side scheduler stays in `cos.js`. Next slice of the `cos.js` split, taking it from ~2800 to ~1200 lines. Internal refactor with no behavior difference.- **[issue-741]** Extracted the CoS autonomous-job and improvement-check timer machinery (per-job cron/interval scheduling, the spawning-guard that prevents duplicate fires, and the improvement-check cadence) out of `cos.js` into a dedicated `cosJobScheduler.js` behind an unchanged public API. Final slice of the `cos.js` split — the 3115-line god file is now ~930 lines of daemon lifecycle and task-spawn wiring. Internal refactor with no behavior difference.- **[issue-744]** Extracted the scheduled-task prompt catalog and prompt getters out of the 3500-line `taskSchedule.js` into a dedicated `taskPromptService.js`; the prompt defaults and auto-upgrade machinery are moved verbatim and re-exported, so behavior is unchanged. Internal refactor with no behavior difference.+- **[issue-742]** Split the 1744-line `agentLifecycle.js` into focused modules — provider/model resolution, workspace + worktree provisioning, worktree cleanup, and post-completion cleanup each moved to their own file behind the unchanged `spawnAgentForTask` / `handleAgentCompletion` orchestrators (now ~850 lines); moved functions are re-exported so import sites are unchanged. Internal refactor with no behavior difference.- **[issue-790]** Unified the duplicated buffered-spawn and Windows kill-tree logic shared by the app build and update flows into one helper. Internal refactor with no behavior difference.- **[issue-751]** Collapsed the repeated AppleScript builders in `server/services/xcodeScripts.js` into a shared `xcodeScriptBuilders.js`; the emitted `take_screenshots_macos.sh` is byte-for-byte unchanged. Internal refactor with no behavior difference.- **[issue-748]** Extracted the pure command-arg builders and output parsers from `server/services/git.js` into focused `server/lib/git*` modules. Internal refactor with no behavior difference.