UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

14 lines • 641 B
function streamedToolCallName(event) { const update = event.assistantMessageEvent; if (update.type === "toolcall_end") return update.toolCall.name; if (update.type !== "toolcall_start") return undefined; const block = update.partial.content[update.contentIndex]; return block?.type === "toolCall" && block.name.length > 0 ? block.name : undefined; } export function withResolvedToolName(event, resolve) { const requested = streamedToolCallName(event); return requested === undefined ? event : { ...event, resolvedToolName: resolve(requested) }; } //# sourceMappingURL=tool-call-display-name.js.map