MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / lineCommandOf

Function lineCommandOf

graph-ui/src/layout/layout-command.ts:95–107  ·  view source on GitHub ↗
(line: string, agentsEnabled = experimentalAgentsEnabled)

Source from the content-addressed store, hash-verified

93
94/** Ob diese Zeile einer der vier Befehle ist. */
95export function lineCommandOf(line: string, agentsEnabled = experimentalAgentsEnabled): LineCommand {
96 const normalised = line.trim().toLowerCase().replace(/\s+/g, ' ');
97 if (normalised === RESET_LAYOUT_COMMAND) {
98 return 'reset-layout';
99 }
100 if (normalised === SETTINGS_COMMAND) {
101 return 'open-settings';
102 }
103 if (agentsEnabled && normalised === FULLSCREEN_COMMAND) {
104 return 'toggle-fullscreen';
105 }
106 return agentsEnabled && normalised === LIVE_AGENTS_COMMAND ? 'toggle-live-agents' : 'none';
107}

Callers 3

ProjectWindowViewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected