MCPcopy Create free account
hub / github.com/cursor/cookbook / labelFromId

Function labelFromId

sdk/coding-agent-cli/src/agent.ts:467–473  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

465}
466
467function labelFromId(id: string) {
468 return id
469 .split(/[-_\s]+/)
470 .filter(Boolean)
471 .map((part) => part.charAt(0).toUpperCase() + part.slice(1))
472 .join(" ")
473}
474
475function emitSdkMessage(event: SDKMessage, emit: (event: AgentEvent) => void) {
476 switch (event.type) {

Callers 2

selectionDetailFunction · 0.70
formatParamsLabelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected