INNER CODE UNIT · JavaScript

copyText

meursyphus/flitter · dev/llm-playground/app.js:7

async function copyText(value, button) {
  await navigator.clipboard.writeText(value);
  const previous = button.textContent;
  button.textContent = "Copied";
  window.setTimeout(() => {
    button.textContent = previous;
  }, 1200);
}

function buildReaderPrompt(testCase) {
  const recommendedCharts = testCase.recommendedCharts.length
    ? `Preferred chart families: ${testCase.recommendedCharts.join(", ")}.`
    : "Preferred chart families: none. Treat this as a likely escape-hatch case.";

  return [
    "You are the first-read implementation agent.",
    "Use only the linked Flitter LLM pack documents below.",
    "",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…