MCPcopy
hub / github.com/cursor/cookbook / addEntry

Function addEntry

sdk/coding-agent-cli/src/tui/App.tsx:460–474  ·  view source on GitHub ↗
(
    kind: TranscriptEntry["kind"],
    label: string,
    text: string
  )

Source from the content-addressed store, hash-verified

458 }
459
460 const addEntry = (
461 kind: TranscriptEntry["kind"],
462 label: string,
463 text: string
464 ) => {
465 setTranscript((items) => [
466 ...items,
467 {
468 id: nextId(),
469 kind,
470 label,
471 text,
472 },
473 ])
474 }
475
476 const nextId = () => {
477 const id = nextIdRef.current

Callers 6

runCommandFunction · 0.85
openModelPickerFunction · 0.85
resetAgentFunction · 0.85
switchExecutionModeFunction · 0.85
sendPromptFunction · 0.85
cancelActiveRunFunction · 0.85

Calls 1

nextIdFunction · 0.85

Tested by

no test coverage detected