Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

15.6 KB
Raw Blame
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`shaped, colored cursors > renders every shape in #4363d8 1`] = `
{
  "arrow": "<span class="presence-cursor-art" style="position:absolute;left:-1.5px;top:-1.5px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M2 2 L2 24.95 L8.21 19.01 L12.26 28.19 L16.04 26.57 L12.12 17.66 L20.09 17.66 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span><span class="presence-cursor-name" style="position:absolute;left:23px;top:23px;padding:1px 6px;border-radius:7px;background:#4363d8;color:#ffffff;font:600 11px/15px -apple-system,BlinkMacSystemFont,system-ui,sans-serif;white-space:nowrap">Dana</span>",
  "crosshair": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M15 4 L17 4 L17 13 L15 13 Z M15 19 L17 19 L17 28 L15 28 Z M4 15 L13 15 L13 17 L4 17 Z M19 15 L28 15 L28 17 L19 17 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "grab": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M8 12 C8 9.5 11.5 9.5 11.5 12 L11.5 9 C11.5 6.5 15 6.5 15 9 L15 8 C15 5.5 18.5 5.5 18.5 8 L18.5 9 C18.5 6.5 22 6.5 22 9 L22 13 C22 11 25 11 25 13 L25 20 C25 25 22 28 18 28 L14 28 C10.5 28 8 25.5 8 22 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "grabbing": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M8 16 C8 13.5 11.5 13.5 11.5 15 C11.5 12.5 15 12.5 15 14.5 C15 12 18.5 12 18.5 14.5 C18.5 12.5 22 12.5 22 15 C22 13.5 25 13.5 25 16 L25 21 C25 25.5 22 28 18 28 L14 28 C10.5 28 8 25.5 8 22 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "move": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M16 3 L21 8 L17.5 8 L17.5 14.5 L24 14.5 L24 11 L29 16 L24 21 L24 17.5 L17.5 17.5 L17.5 24 L21 24 L16 29 L11 24 L14.5 24 L14.5 17.5 L8 17.5 L8 21 L3 16 L8 11 L8 14.5 L14.5 14.5 L14.5 8 L11 8 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "not_allowed": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M16 5 C22.08 5 27 9.92 27 16 C27 22.08 22.08 27 16 27 C9.92 27 5 22.08 5 16 C5 9.92 9.92 5 16 5 Z M16 8.5 C11.86 8.5 8.5 11.86 8.5 16 C8.5 20.14 11.86 23.5 16 23.5 C20.14 23.5 23.5 20.14 23.5 16 C23.5 11.86 20.14 8.5 16 8.5 Z M11.93 10.17 L21.83 20.07 L20.07 21.83 L10.17 11.93 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "pointer": "<span class="presence-cursor-art" style="position:absolute;left:-9.75px;top:-2.25px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M11 5 C11 2.3 15 2.3 15 5 L15 12.5 C15 11 18.5 11 18.5 12.8 C18.5 11.3 22 11.3 22 13.2 C22 11.8 25 11.8 25 13.8 L25 21 C25 25.5 22.5 28 18.5 28 L14.5 28 C11.5 28 10 26.5 8.5 24 L5.2 18.2 C4.3 16.6 6.4 15.2 7.7 16.4 L11 19.5 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "progress": "<span class="presence-cursor-art" style="position:absolute;left:-1.5px;top:-1.5px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M2 2 L2 24.95 L8.21 19.01 L12.26 28.19 L16.04 26.57 L12.12 17.66 L20.09 17.66 Z M24 18 C27.31 18 30 20.69 30 24 C30 27.31 27.31 30 24 30 C20.69 30 18 27.31 18 24 C18 20.69 20.69 18 24 18 Z M24 20.5 C22.07 20.5 20.5 22.07 20.5 24 C20.5 25.93 22.07 27.5 24 27.5 C25.93 27.5 27.5 25.93 27.5 24 C27.5 22.07 25.93 20.5 24 20.5 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "resize_ew": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M4 16 L10 10 L10 14 L22 14 L22 10 L28 16 L22 22 L22 18 L10 18 L10 22 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "resize_nesw": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M7.51 24.49 L7.51 16 L10.34 18.83 L18.83 10.34 L16 7.51 L24.49 7.51 L24.49 16 L21.66 13.17 L13.17 21.66 L16 24.49 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "resize_ns": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M16 4 L22 10 L18 10 L18 22 L22 22 L16 28 L10 22 L14 22 L14 10 L10 10 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "resize_nwse": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M7.51 7.51 L16 7.51 L13.17 10.34 L21.66 18.83 L24.49 16 L24.49 24.49 L16 24.49 L18.83 21.66 L10.34 13.17 L7.51 16 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "text": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M11 4 L21 4 L21 6.5 L17.25 6.5 L17.25 25.5 L21 25.5 L21 28 L11 28 L11 25.5 L14.75 25.5 L14.75 6.5 L11 6.5 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "wait": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M16 5 C22.08 5 27 9.92 27 16 C27 22.08 22.08 27 16 27 C9.92 27 5 22.08 5 16 C5 9.92 9.92 5 16 5 Z M16 9.5 C12.41 9.5 9.5 12.41 9.5 16 C9.5 19.59 12.41 22.5 16 22.5 C19.59 22.5 22.5 19.59 22.5 16 C22.5 12.41 19.59 9.5 16 9.5 Z M16 16 L16 5 L27 16 Z" fill="#4363d8" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
}
`;

exports[`shaped, colored cursors > renders every shape in #e6194b 1`] = `
{
  "arrow": "<span class="presence-cursor-art" style="position:absolute;left:-1.5px;top:-1.5px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M2 2 L2 24.95 L8.21 19.01 L12.26 28.19 L16.04 26.57 L12.12 17.66 L20.09 17.66 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span><span class="presence-cursor-name" style="position:absolute;left:23px;top:23px;padding:1px 6px;border-radius:7px;background:#e6194b;color:#000000;font:600 11px/15px -apple-system,BlinkMacSystemFont,system-ui,sans-serif;white-space:nowrap">Dana</span>",
  "crosshair": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M15 4 L17 4 L17 13 L15 13 Z M15 19 L17 19 L17 28 L15 28 Z M4 15 L13 15 L13 17 L4 17 Z M19 15 L28 15 L28 17 L19 17 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "grab": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M8 12 C8 9.5 11.5 9.5 11.5 12 L11.5 9 C11.5 6.5 15 6.5 15 9 L15 8 C15 5.5 18.5 5.5 18.5 8 L18.5 9 C18.5 6.5 22 6.5 22 9 L22 13 C22 11 25 11 25 13 L25 20 C25 25 22 28 18 28 L14 28 C10.5 28 8 25.5 8 22 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "grabbing": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M8 16 C8 13.5 11.5 13.5 11.5 15 C11.5 12.5 15 12.5 15 14.5 C15 12 18.5 12 18.5 14.5 C18.5 12.5 22 12.5 22 15 C22 13.5 25 13.5 25 16 L25 21 C25 25.5 22 28 18 28 L14 28 C10.5 28 8 25.5 8 22 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "move": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M16 3 L21 8 L17.5 8 L17.5 14.5 L24 14.5 L24 11 L29 16 L24 21 L24 17.5 L17.5 17.5 L17.5 24 L21 24 L16 29 L11 24 L14.5 24 L14.5 17.5 L8 17.5 L8 21 L3 16 L8 11 L8 14.5 L14.5 14.5 L14.5 8 L11 8 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "not_allowed": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M16 5 C22.08 5 27 9.92 27 16 C27 22.08 22.08 27 16 27 C9.92 27 5 22.08 5 16 C5 9.92 9.92 5 16 5 Z M16 8.5 C11.86 8.5 8.5 11.86 8.5 16 C8.5 20.14 11.86 23.5 16 23.5 C20.14 23.5 23.5 20.14 23.5 16 C23.5 11.86 20.14 8.5 16 8.5 Z M11.93 10.17 L21.83 20.07 L20.07 21.83 L10.17 11.93 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "pointer": "<span class="presence-cursor-art" style="position:absolute;left:-9.75px;top:-2.25px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M11 5 C11 2.3 15 2.3 15 5 L15 12.5 C15 11 18.5 11 18.5 12.8 C18.5 11.3 22 11.3 22 13.2 C22 11.8 25 11.8 25 13.8 L25 21 C25 25.5 22.5 28 18.5 28 L14.5 28 C11.5 28 10 26.5 8.5 24 L5.2 18.2 C4.3 16.6 6.4 15.2 7.7 16.4 L11 19.5 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "progress": "<span class="presence-cursor-art" style="position:absolute;left:-1.5px;top:-1.5px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M2 2 L2 24.95 L8.21 19.01 L12.26 28.19 L16.04 26.57 L12.12 17.66 L20.09 17.66 Z M24 18 C27.31 18 30 20.69 30 24 C30 27.31 27.31 30 24 30 C20.69 30 18 27.31 18 24 C18 20.69 20.69 18 24 18 Z M24 20.5 C22.07 20.5 20.5 22.07 20.5 24 C20.5 25.93 22.07 27.5 24 27.5 C25.93 27.5 27.5 25.93 27.5 24 C27.5 22.07 25.93 20.5 24 20.5 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "resize_ew": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M4 16 L10 10 L10 14 L22 14 L22 10 L28 16 L22 22 L22 18 L10 18 L10 22 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "resize_nesw": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M7.51 24.49 L7.51 16 L10.34 18.83 L18.83 10.34 L16 7.51 L24.49 7.51 L24.49 16 L21.66 13.17 L13.17 21.66 L16 24.49 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "resize_ns": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M16 4 L22 10 L18 10 L18 22 L22 22 L16 28 L10 22 L14 22 L14 10 L10 10 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "resize_nwse": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M7.51 7.51 L16 7.51 L13.17 10.34 L21.66 18.83 L24.49 16 L24.49 24.49 L16 24.49 L18.83 21.66 L10.34 13.17 L7.51 16 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "text": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M11 4 L21 4 L21 6.5 L17.25 6.5 L17.25 25.5 L21 25.5 L21 28 L11 28 L11 25.5 L14.75 25.5 L14.75 6.5 L11 6.5 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
  "wait": "<span class="presence-cursor-art" style="position:absolute;left:-12px;top:-12px;width:24px;height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.35))"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32"><path d="M16 5 C22.08 5 27 9.92 27 16 C27 22.08 22.08 27 16 27 C9.92 27 5 22.08 5 16 C5 9.92 9.92 5 16 5 Z M16 9.5 C12.41 9.5 9.5 12.41 9.5 16 C9.5 19.59 12.41 22.5 16 22.5 C19.59 22.5 22.5 19.59 22.5 16 C22.5 12.41 19.59 9.5 16 9.5 Z M16 16 L16 5 L27 16 Z" fill="#e6194b" stroke="#ffffff" stroke-width="2.5" stroke-linejoin="round" paint-order="stroke"></path></svg></span>",
}
`;