MCPcopy Index your code
hub / github.com/cursor/cookbook / compactText

Function compactText

sdk/coding-agent-cli/src/tui/App.tsx:947–949  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

945}
946
947function compactText(text: string) {
948 return text.replace(/\s+/g, " ").trim()
949}
950
951function formatToolStatus(status: string) {
952 switch (status) {

Callers 1

applyAgentEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected