MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / trimText

Function trimText

ai-code-studio/src/app/helpers.ts:54–56  ·  view source on GitHub ↗
(value?: string | null, fallback = '')

Source from the content-addressed store, hash-verified

52}
53
54export function trimText(value?: string | null, fallback = '') {
55 return typeof value === 'string' && value.trim() ? value.trim() : fallback;
56}
57
58export function currentSession(snapshot: Snapshot) {
59 const selected = snapshot.sessions.selectedSessionId || snapshot.run.sessionId;

Callers 8

ActivityCardFunction · 0.90
MessageCardFunction · 0.90
ToolCardFunction · 0.90
ConversationPaneFunction · 0.90
ToolRunCardFunction · 0.90
FileDiffDetailFunction · 0.90
ToolRunDetailFunction · 0.90
describeIssueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected