Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
268 B
Raw Blame
export function buildPastedValue(current: string, pasted: string, input: HTMLInputElement): string {
  const start = input.selectionStart ?? current.length
  const end = input.selectionEnd ?? start
  return `${current.slice(0, start)}${pasted}${current.slice(end)}`
}