MCPcopy Create free account
hub / github.com/codeaashu/claude-code / _temp

Function _temp

src/commands/copy/copy.tsx:326–333  ·  view source on GitHub ↗
(block, index)

Source from the content-addressed store, hash-verified

324 };
325}
326function _temp(block, index) {
327 const blockLines = countCharInString(block.code, "\n") + 1;
328 return {
329 label: truncateLine(block.code, 60),
330 value: index,
331 description: [block.lang, blockLines > 1 ? `${blockLines} lines` : undefined].filter(Boolean).join(", ") || undefined
332 };
333}
334export const call: LocalJSXCommandCall = async (onDone, context, args) => {
335 const texts = collectRecentAssistantTexts(context.messages);
336 if (texts.length === 0) {

Callers

nothing calls this directly

Calls 2

countCharInStringFunction · 0.85
truncateLineFunction · 0.85

Tested by

no test coverage detected