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
/**
* Block and line comments removed from a source string, for the tree-wide
* convention guards that grep source rather than parse it. The `[^:\\]`
* guard before `//` keeps a `https://` URL (or an escaped slash) from being
* read as a line comment; string literals are NOT stripped.
*/
export const stripComments = (src) => src
.replace(/\/\*[\s\S]*?\*\//g, ' ')
.replace(/(^|[^:\\])\/\/[^\n]*/g, '$1');