async function test() {
  const loginRes = await fetch("https://mesh.ultramodul.xyz/api/auth/login", {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ email: "keanu@pc24.id", password: "password" })
  });
  console.log("Login Status:", loginRes.status);
  const loginCookies = loginRes.headers.get('set-cookie');
  console.log("Cookies:", loginCookies);

  const qtRes = await fetch("https://mesh.ultramodul.xyz/api/auth/quantum_token", {
    headers: { "Cookie": loginCookies || "" }
  });
  console.log("QT Status:", qtRes.status);
  const data = await qtRes.json();
  console.log("UI Matrix:");
  console.log(JSON.stringify(data.capabilities?.ui, null, 2));
}
test();
