MCPcopy Index your code
hub / github.com/Waishnav/devspace / commandPreview

Function commandPreview

src/logger.ts:75–78  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

73}
74
75export function commandPreview(command: string): string {
76 const normalized = command.replace(/\s+/g, " ").trim();
77 return normalized.length > 120 ? `${normalized.slice(0, 117)}...` : normalized;
78}
79
80function firstHeaderValue(value: string | undefined): string | undefined {
81 return value?.split(",")[0]?.trim() || undefined;

Callers 1

logToolCallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected