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
refactor([issue-1513]): tidy countWords helper (avoid triple trim)
Adam Eivy91d307d8a7b3
diff --git a/server/lib/issueLength.js b/server/lib/issueLength.jsindex 5358cc7ec8..657efb262b 100644--- a/server/lib/issueLength.js+++ b/server/lib/issueLength.js@@ -146,10 +146,10 @@ export function computeIssueTargets(issue = {}) {// 44-page finale produced scope overrun into the next issue's climax.export const THIN_SYNOPSIS_BASE_WORDS = 25;-const countWords = (text) =>- (typeof text === 'string' ? text.trim() : '')- ? text.trim().split(/\s+/).length- : 0;+const countWords = (text) => {+ const trimmed = typeof text === 'string' ? text.trim() : '';+ return trimmed ? trimmed.split(/\s+/).length : 0;+};/*** Assess whether an issue's synopsis (the idea-stage seed) is too thin for its