cringe

Build log

nerves_system_rpi4

cringe 0.5.0 · fail · run cringe-0.5.0-1790884004346
223 of 223 lines
1Resolving Hex dependencies...2Resolution completed in 0.185s3Unchanged:4  castore 1.0.215  circular_buffer 1.1.06  cringe 0.5.07  elixir_make 0.10.08  ghostty 0.4.99  interactive_cmd 0.1.410  jason 1.4.511  json_codec 0.3.112  json_spec 1.2.013  nerves 1.15.014  nerves_discovery 0.1.515  nerves_logging 0.2.416  nerves_runtime 0.13.1317  nerves_system_br 1.34.418  nerves_system_mangopi_mq_pro 0.17.219  nerves_system_rpi4 2.1.220  nerves_system_trellis 0.5.021  nerves_system_x86_64 1.34.222  nerves_toolchain_aarch64_nerves_linux_gnu 15.3.123  nerves_toolchain_armv7_nerves_linux_gnueabihf 15.3.124  nerves_toolchain_riscv64_nerves_linux_gnu 15.3.125  nerves_toolchain_x86_64_nerves_linux_musl 15.3.126  nerves_uevent 0.1.727  oxc 0.18.128  property_table 0.3.429  ring_logger 0.11.730  rustler_precompiled 0.10.031  shoehorn 0.9.332  tablet 0.3.333  toolshed 0.5.034  uboot_env 1.0.235  zigler_precompiled 0.1.636* Getting cringe (Hex package)37* Getting nerves (Hex package)38* Getting shoehorn (Hex package)39* Getting ring_logger (Hex package)40* Getting toolshed (Hex package)41* Getting nerves_runtime (Hex package)42* Getting nerves_system_mangopi_mq_pro (Hex package)43* Getting nerves_system_rpi4 (Hex package)44* Getting nerves_system_trellis (Hex package)45* Getting nerves_system_x86_64 (Hex package)46* Getting nerves_system_br (Hex package)47* Getting nerves_toolchain_x86_64_nerves_linux_musl (Hex package)48* Getting nerves_toolchain_armv7_nerves_linux_gnueabihf (Hex package)49* Getting nerves_toolchain_aarch64_nerves_linux_gnu (Hex package)50* Getting nerves_toolchain_riscv64_nerves_linux_gnu (Hex package)51* Getting nerves_logging (Hex package)52* Getting nerves_uevent (Hex package)53* Getting uboot_env (Hex package)54* Getting elixir_make (Hex package)55* Getting property_table (Hex package)56* Getting circular_buffer (Hex package)57* Getting interactive_cmd (Hex package)58* Getting jason (Hex package)59* Getting nerves_discovery (Hex package)60* Getting tablet (Hex package)61* Getting ghostty (Hex package)62* Getting oxc (Hex package)63* Getting zigler_precompiled (Hex package)64* Getting castore (Hex package)65* Getting json_codec (Hex package)66* Getting rustler_precompiled (Hex package)67* Getting json_spec (Hex package)68==> jason69Compiling 10 files (.ex)70Generated jason app71==> tablet72Compiling 2 files (.ex)73Generated tablet app74==> elixir_make75Compiling 8 files (.ex)76Generated elixir_make app77==> nerves_discovery78Compiling 5 files (.ex)79Generated nerves_discovery app80==> interactive_cmd81Compiling 1 file (.ex)82Generated interactive_cmd app83==> nerves84HOST_CC port.o85HOST_LD port86Compiling 55 files (.ex)87Generated nerves app88==> nerves_compatibility_test8990Nerves environment91  MIX_TARGET:   rpi492  MIX_ENV:      prod9394Checking for prebuilt Nerves artifacts...95  Found nerves_system_rpi4 in cache96    /home/nerves/.nerves/artifacts/nerves_system_rpi4-portable-2.1.297  Found nerves_toolchain_aarch64_nerves_linux_gnu in cache98    /home/nerves/.nerves/artifacts/nerves_toolchain_aarch64_nerves_linux_gnu-linux_x86_64-15.3.199==> jason100Compiling 10 files (.ex)101Compiling lib/decoder.ex (it's taking more than 10s)102Compiling lib/encode.ex (it's taking more than 10s)103Generated jason app104==> tablet105Compiling 2 files (.ex)106Generated tablet app107==> elixir_make108Compiling 8 files (.ex)109Generated elixir_make app110==> nerves_discovery111Compiling 5 files (.ex)112Generated nerves_discovery app113==> interactive_cmd114Compiling 1 file (.ex)115Generated interactive_cmd app116==> nerves117HOST_CC port.o118HOST_LD port119Compiling 55 files (.ex)120Generated nerves app121==> nerves_system_br122Generated nerves_system_br app123==> nerves_toolchain_aarch64_nerves_linux_gnu124Compiling 1 file (.ex)125Generated nerves_toolchain_aarch64_nerves_linux_gnu app126==> nerves_system_rpi4127Generated nerves_system_rpi4 app128==> nerves_compatibility_test129130Nerves environment131  MIX_TARGET:   rpi4132  MIX_ENV:      prod133134==> circular_buffer135Compiling 1 file (.ex)136Generated circular_buffer app137==> nerves_logging138 CC kmsg_tailer.o139 LD kmsg_tailer140Compiling 5 files (.ex)141Generated nerves_logging app142==> castore143Compiling 1 file (.ex)144Generated castore app145==> ring_logger146Compiling 7 files (.ex)147Generated ring_logger app148==> json_spec149Compiling 2 files (.ex)150Generated json_spec app151==> json_codec152Compiling 6 files (.ex)153Generated json_codec app154==> shoehorn155Compiling 8 files (.ex)156Generated shoehorn app157==> rustler_precompiled158Compiling 4 files (.ex)159Generated rustler_precompiled app160==> oxc161Compiling 18 files (.ex)16216319:51:29.466 [debug] Downloading NIF from https://github.com/elixir-volt/oxc_ex/releases/download/v0.18.1/liboxc_fmt_nif-v0.18.1-nif-2.15-aarch64-unknown-linux-gnu.so.tar.gz16416519:51:29.476 [debug] Downloading NIF from https://github.com/elixir-volt/oxc_ex/releases/download/v0.18.1/liboxc_lint_nif-v0.18.1-nif-2.15-aarch64-unknown-linux-gnu.so.tar.gz16616719:51:30.772 [debug] NIF cached at /home/nerves/.cache/rustler_precompiled/precompiled_nifs/liboxc_fmt_nif-v0.18.1-nif-2.15-aarch64-unknown-linux-gnu.so.tar.gz and extracted to /work/proj/_build/rpi4/lib/oxc/priv/native/liboxc_fmt_nif-v0.18.1-nif-2.15-aarch64-unknown-linux-gnu.so16816919:51:31.192 [debug] NIF cached at /home/nerves/.cache/rustler_precompiled/precompiled_nifs/liboxc_lint_nif-v0.18.1-nif-2.15-aarch64-unknown-linux-gnu.so.tar.gz and extracted to /work/proj/_build/rpi4/lib/oxc/priv/native/liboxc_lint_nif-v0.18.1-nif-2.15-aarch64-unknown-linux-gnu.so17017119:51:31.784 [debug] Downloading NIF from https://github.com/elixir-volt/oxc_ex/releases/download/v0.18.1/liboxc_ex_nif-v0.18.1-nif-2.15-aarch64-unknown-linux-gnu.so.tar.gz17217319:51:33.428 [debug] NIF cached at /home/nerves/.cache/rustler_precompiled/precompiled_nifs/liboxc_ex_nif-v0.18.1-nif-2.15-aarch64-unknown-linux-gnu.so.tar.gz and extracted to /work/proj/_build/rpi4/lib/oxc/priv/native/liboxc_ex_nif-v0.18.1-nif-2.15-aarch64-unknown-linux-gnu.so174Generated oxc app175==> uboot_env176Compiling 5 files (.ex)177Generated uboot_env app178==> property_table179Compiling 8 files (.ex)180Generated property_table app181==> nerves_uevent182 CC uevent.o183 LD uevent184Compiling 5 files (.ex)185Generated nerves_uevent app186==> nerves_runtime187Compiling 14 files (.ex)188Generated nerves_runtime app189==> toolshed190Compiling 5 files (.ex)191Generated toolshed app192==> zigler_precompiled193Compiling 5 files (.ex)194Generated zigler_precompiled app195==> ghostty196Compiling 19 files (.ex)19719819:51:45.033 [debug] Downloading NIF from https://github.com/dannote/ghostty_ex/releases/download/v0.4.9/Elixir.Ghostty.PTY.Nif-v0.4.9-aarch64-linux-gnu.so.tar.gz19920019:51:45.462 [debug] Downloading NIF from https://github.com/dannote/ghostty_ex/releases/download/v0.4.9/Elixir.Ghostty.Terminal.Nif-v0.4.9-aarch64-linux-gnu.so.tar.gz201Generated ghostty app202could not compile dependency :ghostty, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ghostty --force", update it with "mix deps.update ghostty" or clean it with "mix deps.clean ghostty"20320419:51:49.576 [warning] The on_load function for module Elixir.OXC.Native returned:205{:error,206 {:load_failed,207  ~c"Failed to load NIF library: '/work/proj/_build/rpi4/lib/oxc/priv/native/liboxc_ex_nif-v0.18.1-nif-2.15-aarch64-unknown-linux-gnu.so: cannot open shared object file: No such file or directory'"}}20820921019:51:49.907 [warning] The on_load function for module Elixir.OXC.Native returned:211{:error,212 {:load_failed,213  ~c"Failed to load NIF library: '/work/proj/_build/rpi4/lib/oxc/priv/native/liboxc_ex_nif-v0.18.1-nif-2.15-aarch64-unknown-linux-gnu.so: cannot open shared object file: No such file or directory'"}}214215** (UndefinedFunctionError) function OXC.Native.bundle/2 is undefined (module OXC.Native is not available)216    (oxc 0.18.1) OXC.Native.bundle([{"cursor.ts", "import { applyCellTextStyles } from './render'\nimport { rgb } from './util'\n\nimport type { Cell, CellMetrics, CursorState } from './types'\n\nexport function cursorVisible(cursor: CursorState | null, blinkVisible: boolean): boolean {\n  return Boolean(cursor && cursor.visible && cursor.x !== null && cursor.y !== null && blinkVisible)\n}\n\nexport function cursorDisplayStyle(style: string, focused: boolean): string {\n  if (!focused && style === 'block') {\n    return 'block_hollow'\n  }\n  return style\n}\n\nexport function cursorCell(cursor: CursorState, rowsData: Cell[][]): Cell | null {\n  if (cursor.y === null || cursor.x === null) return null\n\n  const row = rowsData[cursor.y]\n  if (!row) return null\n\n  if (cursor.wide_tail && cursor.x > 0) {\n    return row[cursor.x - 1] ?? null\n  }\n\n  return row[cursor.x] ?? null\n}\n\nexport function cursorChar(cell: Cell | null): string {\n  return cell?.[0] || ' '\n}\n\nexport function cursorColor(cursor: CursorState, pre: HTMLPreElement): string {\n  if (cursor.color) {\n    return rgb(cursor.color)\n  }\n  return window.getComputedStyle(pre).color || '#cdd6f4'\n}\n\nexport function cursorTextColor(cell: Cell | null, pre: HTMLPreElement): string {\n  if (cell?.[2]) {\n    return rgb(cell[2])\n  }\n  return window.getComputedStyle(pre).backgroundColor || '#1e1e2e'\n}\n\nexport function renderCursor(\n  cursorEl: HTMLDivElement,\n  cursorTextEl: HTMLSpanElement,\n  cursor: CursorState | null,\n  rowsData: Cell[][],\n  focused: boolean,\n  blinkVisible: boolean,\n  metrics: CellMetrics,\n  pre: HTMLPreElement,\n  input: HTMLTextAreaElement\n): void {\n  if (!cursorVisible(cursor, blinkVisible)) {\n    cursorEl.style.display = 'none'\n    syncInputPosition(input, null)\n    return\n  }\n\n  const c = cursor as CursorState\n  const cx = c.x as number\n  const cy = c.y as number\n  let leftCol = cx\n  let widthCols = 1\n\n  if (c.wide_tail && cx > 0) {\n    leftCol -= 1\n    widthCols = 2\n  }\n\n  const left = metrics.paddingLeft + leftCol * metrics.width\n  const top = metrics.paddingTop + cy * metrics.height\n  const width = metrics.width * widthCols\n  const height = metrics.height\n  const style = cursorDisplayStyle(c.style, focused)\n  const color = cursorColor(c, pre)\n\n  syncInputPosition(input, { left, top, height })\n\n  cursorEl.style.display = 'block'\n  cursorEl.style.left = `${left}px`\n  cursorEl.style.top = `${top}px`\n  cursorEl.style.width = `${width}px`\n  cursorEl.style.height = `${height}px`\n  cursorEl.style.opacity = focused ? '1' : '0.85'\n\n  cursorTextEl.textContent = ''\n  cursorTextEl.style.color = ''\n  cursorTextEl.style.backgroundColor = 'transparent'\n  cursorTextEl.style.fontWeight = ''\n  cursorTextEl.style.fontStyle = ''\n  cursorTextEl.style.opacity = '1'\n  cursorTextEl.style.textDecoration = 'none'\n\n  cursorEl.style.backgroundColor = 'transparent'\n  cursorEl.style.border = 'none'\n  cursorEl.style.borderBottom = 'none'\n  cursorEl.style.borderLeft = 'none'\n\n  if (style === 'block') {\n    const cell = cursorCell(c, rowsData)\n    cursorEl.style.backgroundColor = color\n    cursorTextEl.textContent = cursorChar(cell)\n    cursorTextEl.style.color = cursorTextColor(cell, pre)\n    applyCellTextStyles(cursorTextEl, cell)\n    return\n  }\n\n  if (style === 'underline') {\n    cursorEl.style.borderBottom = `2px solid ${color}`\n    return\n  }\n\n  if (style === 'bar') {\n    const barWidth = Math.max(2, Math.round(metrics.width * 0.15))\n    cursorEl.style.width = `${barWidth}px`\n    cursorEl.style.backgroundColor = color\n    return\n  }\n\n  cursorEl.style.border = `1px solid ${color}`\n}\n\nfunction syncInputPosition(\n  input: HTMLTextAreaElement,\n  position: { left: number; top: number; height: number } | null\n): void {\n  if (!position) {\n    input.style.left = '0'\n    input.style.top = '0'\n    return\n  }\n\n  input.style.left = `${position.left}px`\n  input.style.top = `${position.top}px`\n  input.style.height = `${position.height}px`\n}\n"}, {"dom.ts", "export function createScreen(): HTMLDivElement {\n  const screen = document.createElement('div')\n  screen.style.position = 'relative'\n  screen.style.display = 'block'\n  screen.style.width = '100%'\n  return screen\n}\n\nexport function createPre(): HTMLPreElement {\n  const pre = document.createElement('pre')\n  pre.style.margin = '0'\n  pre.style.padding = '8px'\n  pre.style.backgroundColor = '#1e1e2e'\n  pre.style.color = '#cdd6f4'\n  pre.style.overflow = 'hidden'\n  pre.style.position = 'relative'\n  pre.style.width = '100%'\n  pre.style.boxSizing = 'border-box'\n  pre.style.userSelect = 'none'\n  pre.style.webkitUserSelect = 'none'\n  pre.style.cursor = 'text'\n  return pre\n}\n\nexport function createSelectionLayer(): HTMLDivElement {\n  const layer = document.createElement('div')\n  layer.setAttribute('aria-hidden', 'true')\n  layer.setAttribute('data-ghostty-selection-layer', 'true')\n  layer.style.position = 'absolute'\n  layer.style.inset = '0'\n  layer.style.pointerEvents = 'none'\n  layer.style.zIndex = '0'\n  return layer\n}\n\nexport function createMeasure(): HTMLSpanElement {\n  const span = document.createElement('span')\n  span.textContent = 'MMMMMMMMMM'\n  span.setAttribute('aria-hidden', 'true')\n  span.style.position = 'absolute'\n  span.style.visibility = 'hidden'\n  span.style.pointerEvents = 'none'\n  span.style.whiteSpace = 'pre'\n  span.style.font = 'inherit'\n  span.style.lineHeight = 'inherit'\n  return span\n}\n\nexport function createCursorEl(): { cursorEl: HTMLDivElement; cursorText: HTMLSpanElement } {\n  const cursorEl = document.createElement('div')\n  cursorEl.setAttribute('aria-hidden', 'true')\n  cursorEl.style.position = 'absolute'\n  cursorEl.style.display = 'none'\n  cursorEl.style.pointerEvents = 'none'\n  cursorEl.style.boxSizing = 'border-box'\n  cursorEl.style.whiteSpace = 'pre'\n  cursorEl.style.zIndex = '1'\n\n  const cursorText = document.createElement('span')\n  cursorText.style.display = 'block'\n  cursorText.style.width = '100%'\n  cursorText.style.height = '100%'\n  cursorText.style.font = 'inherit'\n  cursorText.style.lineHeight = 'inherit'\n  cursorEl.appendChild(cursorText)\n\n  return { cursorEl, cursorText }\n}\n\nexport function setupInput(input: HTMLTextAreaElement): void {\n  input.setAttribute('data-ghostty-input', 'true')\n  input.setAttribute('aria-label', 'Terminal input')\n  input.setAttribute('autocapitalize', 'off')\n  input.setAttribute('autocomplete', 'off')\n  input.setAttribute('autocorrect', 'off')\n  input.setAttribute('spellcheck', 'false')\n  input.style.position = 'absolute'\n  input.style.left = '0'\n  input.style.top = '0'\n  input.style.width = '1px'\n  input.style.height = '1em'\n  input.style.padding = '0'\n  input.style.margin = '0'\n  input.style.border = '0'\n  input.style.outline = 'none'\n  input.style.opacity = '0'\n  input.style.resize = 'none'\n  input.style.overflow = 'hidden'\n  input.style.background = 'transparent'\n  input.style.color = 'transparent'\n  input.style.caretColor = 'transparent'\n  input.style.whiteSpace = 'pre'\n  input.style.pointerEvents = 'none'\n  input.style.zIndex = '2'\n}\n\nexport function measureCellMetrics(\n  pre: HTMLPreElement,\n  measure: HTMLSpanElement,\n  input: HTMLTextAreaElement,\n  cursorEl: HTMLDivElement\n): {\n  width: number\n  height: number\n  paddingLeft: number\n  paddingRight: number\n  paddingTop: number\n  paddingBottom: number\n} {\n  const styles = window.getComputedStyle(pre)\n\n  measure.style.fontFamily = styles.fontFamily\n  measure.style.fontSize = styles.fontSize\n  measure.style.fontWeight = styles.fontWeight\n  measure.style.fontStyle = styles.fontStyle\n  measure.style.lineHeight = styles.lineHeight\n\n  input.style.fontFamily = styles.fontFamily\n  input.style.fontSize = styles.fontSize\n  input.style.lineHeight = styles.lineHeight\n  cursorEl.style.fontFamily = styles.fontFamily\n  cursorEl.style.fontSize = styles.fontSize\n  cursorEl.style.lineHeight = styles.lineHeight\n\n  const measureRect = measure.getBoundingClientRect()\n  const fontSize = parseFloat(styles.fontSize) || 16\n  const lineHeight = parseFloat(styles.lineHeight) || fontSize * 1.2\n  const width = measureRect.width > 0 ? measur" <> ...}, {"hook.ts", "import { renderCursor } from './cursor'\nimport {\n  createCursorEl,\n  createMeasure,\n  createPre,\n  createScreen,\n  createSelectionLayer,\n  measureCellMetrics,\n  setupInput\n} from './dom'\nimport {\n  hasMouseModifiers,\n  isCopyShortcut,\n  isPasteShortcut,\n  mouseButtonName,\n  primaryPressedButton\n} from './input'\nimport { renderCells, renderSelection } from './render'\nimport { normalizeSelection, selectedText } from './selection'\nimport { DEFAULT_MOUSE } from './types'\nimport { clamp } from './util'\n\nimport type {\n  Cell,\n  CellMetrics,\n  CellPoint,\n  CursorState,\n  MouseModes,\n  RenderPayload,\n  ScrollbarState\n} from './types'\n\ninterface TerminalState {\n  cols: number\n  rows: number\n  fit: boolean\n  autofocus: boolean\n  rowsData: Cell[][]\n  cursor: CursorState | null\n  mouse: MouseModes\n  scrollbar: ScrollbarState | null\n  focusReporting: boolean\n  focused: boolean\n  composing: boolean\n  cursorBlinkVisible: boolean\n  cursorBlinkTimer: ReturnType<typeof setInterval> | null\n  target: string | null\n  resizeObserver: ResizeObserver | null\n  pendingFitTimer: ReturnType<typeof setTimeout> | null\n  lastFitCols: number | null\n  lastFitRows: number | null\n  selectionAnchor: CellPoint | null\n  selectionFocus: CellPoint | null\n  selecting: boolean\n  pointerActive: boolean\n  autofocusTimers: ReturnType<typeof setTimeout>[]\n  readySent: boolean\n  autofocusPending: boolean\n\n  screen: HTMLDivElement\n  pre: HTMLPreElement\n  selectionLayer: HTMLDivElement\n  measure: HTMLSpanElement\n  input: HTMLTextAreaElement\n  cursorEl: HTMLDivElement\n  cursorText: HTMLSpanElement\n\n  onContainerFocus: () => void\n  onContainerBlur: () => void\n  onPointerDown: (e: MouseEvent) => void\n  onPointerMove: (e: MouseEvent) => void\n  onPointerUp: (e: MouseEvent) => void\n  onDocumentPointerDown: (e: MouseEvent) => void\n  onDocumentFocusIn: (e: FocusEvent) => void\n  onContextMenu: (e: Event) => void\n  onWindowResize: () => void\n  onKeydown: (e: KeyboardEvent) => void\n  onPaste: (e: ClipboardEvent) => void\n  onCopy: (e: ClipboardEvent) => void\n  onCompositionStart: () => void\n  onCompositionEnd: (e: CompositionEvent) => void\n  onInputFocus: () => void\n  onInputBlur: () => void\n}\n\n// Phoenix LiveView hook methods\ninterface HookMethods {\n  el: HTMLElement\n  pushEvent(event: string, payload: object): void\n  pushEventTo(target: string, event: string, payload: object): void\n  handleEvent(event: string, callback: (payload: never) => void): void\n}\n\ntype Hook = TerminalState & HookMethods\n\nfunction pushHookEvent(hook: Hook, name: string, payload: object): void {\n  if (hook.target) {\n    hook.pushEventTo(hook.target, name, payload)\n  } else {\n    hook.pushEvent(name, payload)\n  }\n}\n\nfunction metrics(hook: Hook): CellMetrics {\n  return measureCellMetrics(hook.pre, hook.measure, hook.input, hook.cursorEl)\n}\n\nfunction isInsideTerminal(hook: Hook, node: Node | null): boolean {\n  return Boolean(node && (node === hook.el || node === hook.input || hook.el.contains(node)))\n}\n\nfunction mouseModeActive(hook: Hook): boolean {\n  return Boolean(hook.mouse?.tracking)\n}\n\nfunction hasSelection(hook: Hook): boolean {\n  return (\n    !mouseModeActive(hook) && normalizeSelection(hook.selectionAnchor, hook.selectionFocus) !== null\n  )\n}\n\nfunction clearSelection(hook: Hook): void {\n  hook.selectionAnchor = null\n  hook.selectionFocus = null\n  hook.selecting = false\n  hook.selectionLayer.innerHTML = ''\n}\n\nfunction focusInput(hook: Hook, force = false): void {\n  if (!force && !shouldAutofocus(hook)) {\n    return\n  }\n  if (document.activeElement !== hook.el) {\n    hook.el.focus({ preventScroll: true })\n  }\n  if (document.activeElement !== hook.input) {\n    hook.input.focus({ preventScroll: true })\n  }\n}\n\nfunction blurTerminal(hook: Hook): void {\n  hook.pointerActive = false\n  if (document.activeElement === hook.input) {\n    hook.input.blur()\n  }\n  if (document.activeElement === hook.el) {\n    hook.el.blur()\n  }\n  hook.focused = false\n  hook.cursorBlinkVisible = true\n  syncCursorBlink(hook)\n  doRenderCursor(hook)\n}\n\nfunction disableAutofocus(hook: Hook): void {\n  hook.autofocusPending = false\n  stopAu" <> ...}, {"input.ts", "export function isCopyShortcut(e: KeyboardEvent): boolean {\n  return (e.metaKey || e.ctrlKey) && !e.altKey && e.key.toLowerCase() === 'c'\n}\n\nexport function isPasteShortcut(e: KeyboardEvent): boolean {\n  return (e.metaKey || e.ctrlKey) && !e.altKey && e.key.toLowerCase() === 'v'\n}\n\nexport function mouseButtonName(button: number): string | null {\n  switch (button) {\n    case 0:\n      return 'left'\n    case 1:\n      return 'middle'\n    case 2:\n      return 'right'\n    case 3:\n      return 'four'\n    case 4:\n      return 'five'\n    default:\n      return null\n  }\n}\n\nexport function primaryPressedButton(e: MouseEvent): number {\n  if (e.buttons & 1) return 0\n  if (e.buttons & 4) return 1\n  if (e.buttons & 2) return 2\n  if (e.buttons & 8) return 3\n  if (e.buttons & 16) return 4\n  return -1\n}\n\nexport function hasMouseModifiers(e: MouseEvent): boolean {\n  return e.shiftKey || e.ctrlKey || e.altKey || e.metaKey\n}\n"}, {"phoenix.d.ts", "interface ViewHook {\n  el: HTMLElement\n  pushEvent(event: string, payload: object): void\n  pushEventTo(target: string, event: string, payload: object): void\n  handleEvent(event: string, callback: (payload: never) => void): void\n}\n\ntype ViewHookObject = ThisType<ViewHook> & {\n  mounted?(): void\n  destroyed?(): void\n}\n"}, {"render.ts", "import { CellFlags } from './types'\nimport { esc, rgb } from './util'\n\nimport type { Cell, CellMetrics, Color, Selection } from './types'\n\nexport function renderCells(pre: HTMLPreElement, rows: Cell[][]): void {\n  let html = ''\n  for (const row of rows) {\n    for (const [char, fg, bg, flags] of row) {\n      const styles = cellStyles(fg, bg, flags)\n      const ch = char || ' '\n      if (styles.length > 0) {\n        html += `<span style=\"${styles.join(';')}\">${esc(ch)}</span>`\n      } else {\n        html += esc(ch)\n      }\n    }\n    html += '\\n'\n  }\n  pre.innerHTML = html\n}\n\nexport function renderSelection(\n  layer: HTMLDivElement,\n  selection: Selection | null,\n  cols: number,\n  metrics: CellMetrics\n): void {\n  layer.innerHTML = ''\n\n  if (!selection) {\n    return\n  }\n\n  for (let row = selection.start.row; row <= selection.end.row; row += 1) {\n    const startCol = row === selection.start.row ? selection.start.col : 0\n    const endCol = row === selection.end.row ? selection.end.col : cols - 1\n    const rect = document.createElement('div')\n    rect.style.position = 'absolute'\n    rect.style.left = `${metrics.paddingLeft + startCol * metrics.width}px`\n    rect.style.top = `${metrics.paddingTop + row * metrics.height}px`\n    rect.style.width = `${Math.max(1, endCol - startCol + 1) * metrics.width}px`\n    rect.style.height = `${metrics.height}px`\n    rect.style.background = 'rgba(137, 180, 250, 0.35)'\n    rect.style.borderRadius = '2px'\n    layer.appendChild(rect)\n  }\n}\n\nfunction cellStyles(fg: Color | null, bg: Color | null, flags: number): string[] {\n  const styles: string[] = []\n  const decorations: string[] = []\n\n  if (fg) styles.push(`color:${rgb(fg)}`)\n  if (bg) styles.push(`background:${rgb(bg)}`)\n  if (flags & CellFlags.BOLD) styles.push('font-weight:bold')\n  if (flags & CellFlags.ITALIC) styles.push('font-style:italic')\n  if (flags & CellFlags.DIM) styles.push('opacity:0.5')\n  if (flags & CellFlags.UNDERLINE) decorations.push('underline')\n  if (flags & CellFlags.STRIKETHROUGH) decorations.push('line-through')\n  if (flags & CellFlags.OVERLINE) decorations.push('overline')\n  if (decorations.length > 0) styles.push(`text-decoration:${decorations.join(' ')}`)\n\n  return styles\n}\n\nexport function applyCellTextStyles(el: HTMLElement, cell: Cell | null): void {\n  if (!cell) return\n\n  const [, , , flags] = cell\n  const decorations: string[] = []\n\n  el.style.fontWeight = flags & CellFlags.BOLD ? 'bold' : ''\n  el.style.fontStyle = flags & CellFlags.ITALIC ? 'italic' : ''\n  el.style.opacity = flags & CellFlags.DIM ? '0.5' : '1'\n  if (flags & CellFlags.UNDERLINE) decorations.push('underline')\n  if (flags & CellFlags.STRIKETHROUGH) decorations.push('line-through')\n  if (flags & CellFlags.OVERLINE) decorations.push('overline')\n  el.style.textDecoration = decorations.length > 0 ? decorations.join(' ') : 'none'\n}\n"}, {"selection.ts", "import type { Cell, CellPoint, Selection } from './types'\n\nexport function normalizeSelection(\n  anchor: CellPoint | null,\n  focus: CellPoint | null\n): Selection | null {\n  if (!anchor || !focus) {\n    return null\n  }\n\n  const start = { ...anchor }\n  const end = { ...focus }\n\n  if (end.row < start.row || (end.row === start.row && end.col < start.col)) {\n    return { start: end, end: start }\n  }\n\n  if (start.row === end.row && start.col === end.col) {\n    return null\n  }\n\n  return { start, end }\n}\n\nexport function selectedText(\n  selection: Selection | null,\n  rowsData: Cell[][],\n  cols: number\n): string {\n  if (!selection) {\n    return ''\n  }\n\n  const lines: string[] = []\n\n  for (let row = selection.start.row; row <= selection.end.row; row += 1) {\n    const sourceRow = rowsData[row] || []\n    const startCol = row === selection.start.row ? selection.start.col : 0\n    const endCol = row === selection.end.row ? selection.end.col : cols - 1\n    let text = ''\n\n    for (let col = startCol; col <= endCol; col += 1) {\n      const cell = sourceRow[col]\n      text += cell?.[0] || ' '\n    }\n\n    lines.push(text.trimEnd())\n  }\n\n  return lines.join('\\n')\n}\n"}, {"types.ts", "export type Color = [number, number, number]\n\nexport type Cell = [string, Color | null, Color | null, number]\n\nexport interface CellPoint {\n  col: number\n  row: number\n  encodeX: number\n  encodeY: number\n}\n\nexport interface MouseModes {\n  tracking: boolean\n  x10: boolean\n  normal: boolean\n  button: boolean\n  any: boolean\n  sgr: boolean\n}\n\nexport interface CursorState {\n  x: number | null\n  y: number | null\n  visible: boolean\n  blinking: boolean\n  style: 'block' | 'bar' | 'underline' | 'block_hollow'\n  wide_tail: boolean\n  color: Color | null\n}\n\nexport interface ScrollbarState {\n  total: number\n  offset: number\n  len: number\n}\n\nexport interface RenderPayload {\n  id: string\n  cells: Cell[][]\n  cursor: CursorState\n  mouse: MouseModes\n  scrollbar: ScrollbarState\n  focus_reporting: boolean\n}\n\nexport interface CellMetrics {\n  width: number\n  height: number\n  paddingLeft: number\n  paddingRight: number\n  paddingTop: number\n  paddingBottom: number\n}\n\nexport interface Selection {\n  start: CellPoint\n  end: CellPoint\n}\n\nexport const DEFAULT_MOUSE: MouseModes = {\n  tracking: false,\n  x10: false,\n  normal: false,\n  button: false,\n  any: false,\n  sgr: false\n}\n\nexport const CellFlags = {\n  BOLD: 1,\n  ITALIC: 2,\n  DIM: 4,\n  UNDERLINE: 8,\n  STRIKETHROUGH: 16,\n  OVERLINE: 128\n} as const\n"}, {"util.ts", "import type { Color } from './types'\n\nexport function esc(s: string): string {\n  return s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')\n}\n\nexport function rgb(color: Color): string {\n  return `rgb(${color[0]},${color[1]},${color[2]})`\n}\n\nexport function clamp(value: number, min: number, max: number): number {\n  return Math.min(max, Math.max(min, value))\n}\n"}], %{entry: "hook.ts", exports: "auto", external: [], format: "esm", modules: [], cwd: "", define: %{}, target: "", footer: nil, sourcemap: false, minify: false, treeshake: false, drop_console: false, banner: nil, preamble: nil, conditions: [], main_fields: [], module_types: %{}, preserve_entry_signatures: "", jsx: "automatic", jsx_factory: "", jsx_fragment: "", import_source: ""})217    (oxc 0.18.1) lib/oxc.ex:514: OXC.bundle/2218    (ghostty 0.4.9) lib/mix/compilers/ghostty_js.ex:47: Mix.Compilers.GhosttyJS.do_bundle/2219    (mix 1.20.3) lib/mix/task.ex:589: Mix.Task.run_alias/6220    (mix 1.20.3) lib/mix/tasks/deps.compile.ex:230: anonymous fn/2 in Mix.Tasks.Deps.Compile.do_mix/2221    (mix 1.20.3) lib/mix/project.ex:557: Mix.Project.in_project/4222    (elixir 1.20.3) lib/file.ex:2100: File.cd!/2223    (mix 1.20.3) lib/mix/dep.ex:279: Mix.Dep.in_dependency/3