The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
site(home): smaller LU Cloud card with the LU mark, Voice and Computer control demos, language menu
purple2f4a61f3c29a
diff --git a/docs/assets/home-motion.js b/docs/assets/home-motion.jsindex c46a5bd5..95485528 100644--- a/docs/assets/home-motion.js+++ b/docs/assets/home-motion.js@@ -180,7 +180,8 @@mic: '<path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2M12 19v3"/>',music: '<path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/>',ff: '<path d="M13 19l9-7-9-7zM2 19l9-7-9-7z"/>',- person: '<circle cx="12" cy="5" r="1"/><path d="m9 20 3-6 3 6M6 8l6 2 6-2M12 10v4"/>'+ person: '<circle cx="12" cy="5" r="1"/><path d="m9 20 3-6 3 6M6 8l6 2 6-2M12 10v4"/>',+ gear: '<circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M4.9 4.9 7 7M17 17l2.1 2.1M2 12h3M19 12h3M4.9 19.1 7 17M17 7l2.1-2.1"/>'};function ic(k, cls) { return '<svg class="ic' + (cls ? " " + cls : "") + '" viewBox="0 0 24 24">' + I[k] + "</svg>"; }var LU = '<svg class="lu" viewBox="176 176 672 672"><rect x="193" y="193" width="638" height="638" rx="138" ry="138" fill="none" stroke="currentColor" stroke-width="40"/><path fill="currentColor" d="M302,342 H377 V612 H433.6 A162,162 0 0,0 500.5,680 H302 Z"/><path fill="currentColor" d="M434,342 H508 V545 A69,69 0 0,0 646,545 V342 H722 V537.5 A144,144 0 0,1 434,537.5 Z"/></svg>';@@ -673,6 +674,97 @@}});+ /* VOICE: start, a spoken question, a spoken answer, then the user speaks over it */+ var VO = {+ q1: "What can I cook tonight? I have rice, eggs and spring onions.",+ a1: "Egg fried rice. Scramble the eggs first, then fry the rice hot and stir in the spring onions at the end, with a little soy sauce.",+ q2: "Wait, make it spicy.", a2: "Then add chili oil with the spring onions."+ };+ scene("voice", {+ w: 720, h: 450, tw: 400, th: 520, D: 13, poster: 6.4,+ chapters: [[0, "Click Start voice"], [1.5, "Just talk"], [4.5, "It answers out loud"], [7.3, "Speak over it"]],+ build: function (st) {+ var bars = ""; for (var i = 0; i < 36; i++) bars += "<i></i>";+ st.innerHTML = '<div class="ap">' + topbar() + rail("") + '<div class="ap-main"><div class="vo">' ++ '<div class="vo-h"><b>Voice</b><em>Beta</em><span class="vo-sw">' + ic("gear") + ic("bot", "on") + ic("folder") + ic("spark", "on") + "</span></div>" ++ '<div class="vo-wv">' + bars + "</div>" ++ '<div class="vo-st"><i></i><span class="s"></span></div>' ++ '<div class="feed">' + gw('<div class="bub"></div>', "g1") + gw(msg('<div class="ans"></div>'), "g2") + gw('<div class="bub"></div>', "g3") + gw(msg('<div class="ans"></div>'), "g4") + "</div>" ++ '<div class="vo-b"><span class="vo-w">Voice answers with <b>Alba</b></span><span class="vo-mic">' + ic("mic") + '</span><span class="vo-go"></span></div>' ++ "</div></div>" + CUR + "</div>";+ return { st: st, g: [1, 2, 3, 4].map(function (i) { return q(st, ".g" + i); }), q1: q(st, ".g1 .bub"), a1: q(st, ".g2 .ans"), q2: q(st, ".g3 .bub"), a2: q(st, ".g4 .ans"),+ wv: q(st, ".vo-wv"), bars: qa(st, ".vo-wv i"), stl: q(st, ".vo-st"), stx: q(st, ".vo-st .s"), mic: q(st, ".vo-mic"), go: q(st, ".vo-go"), cur: q(st, ".cur") };+ },+ render: function (t, r) {+ var on = t >= 1.05;+ var word = t < 3.6 ? "Listening" : t < 4.5 ? "Thinking" : t < 7.3 ? "Speaking" : t < 8.5 ? "Listening" : t < 9.1 ? "Thinking" : t < 11.1 ? "Speaking" : "Listening";+ T(r.stx, on ? word : "Voice talks to the model that is selected in Chat.");+ C(r.stl, "on", on); C(r.stl, "th", on && word === "Thinking"); C(r.stl, "sp", on && word === "Speaking");+ T(r.go, on ? "Stop" : "Start voice"); C(r.go, "stop", on); C(r.mic, "on", on);+ TR(r.go, "scale(" + prs(t, 1.02).toFixed(3) + ")");+ /* the bars follow whoever talks: white for you, violet for LU */+ var you = (t > 1.7 && t < 3.45) || (t > 7.35 && t < 8.35), lu = on && word === "Speaking";+ var amp = !on ? 0 : you ? .8 : lu ? 1 : word === "Thinking" ? .1 : .05, n = r.bars.length;+ C(r.wv, "lu", lu);+ r.bars.forEach(function (b, i) {+ var env = Math.sin((i + .5) / n * Math.PI);+ TR(b, "scaleY(" + cl(.06 + amp * env * (.3 + .7 * Math.abs(Math.sin(t * (5 + (i % 7) * .9) + i * 1.7))), .06, 1).toFixed(3) + ")");+ });+ grow(r.g[0], t, 1.75, .3); words(r.q1, VO.q1, t, 1.75, 3.4);+ /* the first answer breaks off where the user speaks over it */+ grow(r.g[1], t, 4.5, .3); words(r.a1, VO.a1, Math.min(t, 7.3), 4.55, 8.7); C(r.a1, "cut", t >= 7.3);+ grow(r.g[2], t, 7.4, .3); words(r.q2, VO.q2, t, 7.4, 8.3);+ grow(r.g[3], t, 9.1, .3); words(r.a2, VO.a2, t, 9.15, 10.9);+ cursor(r.cur, t, [[1.0, r.go, .6, 1]], r.st);+ }+ });++ /* COMPUTER CONTROL: the chat asks once, LU shrinks to a panel, asks for the+ app and for the action, types the note and comes back */+ var CC = { q1: "Write my shopping list into the open Notepad window: milk, eggs, bread.", note: "Shopping list\nmilk\neggs\nbread", a1: "Done. The list is in Notepad." };+ scene("computer", {+ w: 720, h: 450, tw: 400, th: 520, D: 14, poster: 9.3,+ chapters: [[0, "Ask in plain words"], [1.9, "You allow it first"], [3.3, "It asks for each app"], [6.3, "You confirm, it acts"]],+ build: function (st) {+ st.innerHTML = '<div class="gnd"></div>' ++ '<div class="np"><div class="np-t"><i></i>Untitled - Notepad<span>' + ic("x2") + '</span></div><div class="np-m"><span>File</span><span>Edit</span><span>View</span></div><div class="np-x"><span class="ty"></span><i class="caret"></i></div></div>' ++ '<div class="cc-glow"></div>' ++ '<div class="ap cc-ap">' + topbar() + rail("chat") + '<div class="ap-main"><div class="feed">' ++ gw('<div class="bub">' + CC.q1 + "</div>", "g1") ++ gw(msg('<div class="cc-card"><b>Allow computer control in this chat?</b><div class="cbs"><span class="cb">Deny</span><span class="cb go">Allow</span></div></div>'), "g2") ++ gw('<div class="ind"><div class="ans"></div></div>', "g3") ++ "</div>" + composer("Qwen 3.8 27B", "LOCAL", '<span class="mode">' + ic("bot") + "Agent</span>") + "</div></div>" ++ '<div class="cc-pn"><div class="cc-pn-h">' + LU + '<b>LU</b><span class="cb sm">Pause</span><span class="cb sm">Stop</span></div>' ++ '<div class="cc-step"><i class="spin"></i><span class="s"></span></div><div class="cc-qs">' ++ '<div class="cc-q q1"><span class="l">Program</span><b>Notepad</b><div class="cbs"><span class="cb">Deny</span><span class="cb go">Allow once</span></div></div>' ++ '<div class="cc-q q2"><span class="l">Confirm this action</span><b>Type the list into Notepad</b><div class="cbs"><span class="cb">Decline</span><span class="cb go">Confirm</span></div></div>' ++ "</div></div>" + CUR;+ return { st: st, cm: cmpRefs(st), g: [1, 2, 3].map(function (i) { return q(st, ".g" + i); }), ans: q(st, ".g3 .ans"), card: q(st, ".cc-card"), allow: q(st, ".cc-card .go"),+ ap: q(st, ".cc-ap"), pn: q(st, ".cc-pn"), glow: q(st, ".cc-glow"), step: q(st, ".cc-step .s"), spin: q(st, ".cc-step .spin"),+ q1: q(st, ".cc-q.q1"), q2: q(st, ".cc-q.q2"), b1: q(st, ".q1 .go"), b2: q(st, ".q2 .go"), nty: q(st, ".np-x .ty"), ncar: q(st, ".np-x .caret"), cur: q(st, ".cur") };+ },+ render: function (t, r) {+ compose(r.cm, t, [[CC.q1, .2, 1.45, 1.6]]);+ grow(r.g[0], t, 1.6, .3);+ grow(r.g[1], t, 1.9, .35); C(r.card, "ok", t >= 3.05); TR(r.allow, "scale(" + prs(t, 3.02).toFixed(3) + ")");+ /* 1 = LU is the small panel in the corner */+ var sh = E.io3(sg(t, 3.3, 3.8)) * (1 - E.io3(sg(t, 10.2, 10.7))), pp = sg(sh, .6, 1);+ TR(r.ap, sh <= 0 ? "none" : "scale(" + lr(1, .3, sh).toFixed(3) + ")"); O(r.ap, 1 - sg(sh, .5, .95));+ S(r.ap, "visibility", sh >= .95 ? "hidden" : "visible");+ O(r.pn, pp); TR(r.pn, pp >= 1 ? "none" : "scale(" + lr(.9, 1, pp).toFixed(3) + ")");+ O(r.glow, sh);+ var a1 = t >= 4.5 && t < 5.9, a2 = t >= 6.3 && t < 7.6, ask = a1 || a2;+ T(r.step, ask ? "Waiting for your answer" : t < 4.5 ? "Looking at the screen" : t < 6.3 ? "Choosing the next step" : t < 9.75 ? "Acting" : "Looking at the screen");+ D(r.spin, !ask); C(r.pn, "ask", ask);+ S(r.q1, "visibility", a1 ? "visible" : "hidden"); fin(r.q1, t, 4.5, .25, 6);+ S(r.q2, "visibility", a2 ? "visible" : "hidden"); fin(r.q2, t, 6.3, .25, 6);+ TR(r.b1, "scale(" + prs(t, 5.72).toFixed(3) + ")"); TR(r.b2, "scale(" + prs(t, 7.42).toFixed(3) + ")");+ typ(r.nty, CC.note, t, 7.9, 9.6); O(r.ncar, t < 7.7 ? 0 : t < 9.6 ? 1 : blink(t));+ grow(r.g[2], t, 10.75, .3); words(r.ans, CC.a1, t, 10.8, 11.5);+ cursor(r.cur, t, [[3.0, r.allow, .7, 1], [5.7, r.b1, .9, 1], [7.4, r.b2, .7, 1]], r.st);+ }+ });+/* CLOUD: where the prompt runs, your PC or LU Cloud */scene("cloud", {w: 720, h: 450, tw: 400, th: 520, D: 12, poster: 9,diff --git a/docs/assets/home.css b/docs/assets/home.cssindex d2df5be3..cfa2e655 100644--- a/docs/assets/home.css+++ b/docs/assets/home.css@@ -136,6 +136,14 @@ html[data-os="linux"] .dl-os [data-dl-os="linux"]{color:var(--fg);background:rgb.dl-win{position:relative;z-index:2;flex:none;width:46px;height:46px;border-radius:11px;display:grid;place-items:center;background:rgba(139,92,246,.14);border:1px solid rgba(139,92,246,.32)}.dl-win svg{width:21px;height:21px;fill:var(--accent-soft)}+/* the LU Cloud card: the same card about a third smaller, with the LU mark as its tile */+.dl-card--cloud{max-width:494px;padding:10px 10px 10px 12px;gap:11px;border-radius:11px}+.dl-card--cloud .dl-info h3{font-size:.92rem;margin-bottom:3px}+.dl-card--cloud .dl-info p{font-size:.54rem}+.dl-card--cloud .dl-btn{font-size:.8rem;padding:10px 15px;gap:6px;border-radius:8px}+.dl-card--cloud .dl-btn svg{width:13px;height:13px}+.dl-lu{width:32px;height:32px;border:0;background:none;border-radius:7px;overflow:hidden}+.dl-lu svg{width:100%;height:100%;display:block}/* ═══════════════════════════════════════════════════════════════════════Hero reel@@ -648,6 +656,71 @@ html.hm .hp-get.in .get-mark-p+.get-mark-p{transition-delay:.53s}.mv--tall .sc-phone .rm-h .rm-seg{display:none}.mv--tall .sc-phone .ph{left:105px;top:206px;width:190px;height:380px}+/* voice, 720 x 450 */+.vo{position:absolute;inset:0}+.vo-h{position:absolute;left:16px;right:14px;top:12px;display:flex;align-items:center;gap:8px;font-size:14px;color:var(--a-text)}+.vo-h b{font-weight:600}+.vo-h em{font-style:normal;font-family:var(--mono);font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#c4b5fd;padding:2px 6px;border-radius:5px;background:rgba(139,92,246,.16);border:1px solid rgba(139,92,246,.32)}+.vo-sw{margin-left:auto;display:flex;gap:6px}+.vo-sw svg.ic{box-sizing:border-box;width:26px;height:26px;padding:6px;border-radius:7px;background:rgba(255,255,255,.05);color:var(--a-muted)}+.vo-sw svg.ic.on{background:rgba(139,92,246,.2);color:#c4b5fd}+.vo-wv{position:absolute;left:0;right:0;top:48px;height:62px;display:flex;align-items:center;justify-content:center;gap:4px}+.vo-wv i{flex:none;width:4px;height:58px;border-radius:2px;background:#e4e4e7;transform:scaleY(.06);transition:background-color .2s}+.vo-wv.lu i{background:#a78bfa}+.vo-st{position:absolute;left:0;right:0;top:114px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;color:var(--a-muted);white-space:nowrap}+.vo-st i{display:none;width:7px;height:7px;border-radius:50%;background:#34d399}+.vo-st.on i{display:block}+.vo-st.th i{background:#fbbf24}+.vo-st.sp i{background:#a78bfa;box-shadow:0 0 0 3px rgba(139,92,246,.25)}+.sc-voice .feed{top:140px;bottom:56px}+.sc-voice .bub,.sc-voice .ans{font-size:12.5px}+.sc-voice .bub{min-height:1.4em}+.sc-voice .ans.cut{color:var(--a-faint)}+.vo-b{position:absolute;left:12px;right:12px;bottom:10px;height:40px;display:flex;align-items:center;gap:8px;padding:0 6px 0 12px;border-radius:12px;background:var(--a-surface);border:1px solid var(--a-line2);font-size:11.5px;color:var(--a-muted);white-space:nowrap}+.vo-b b{color:var(--a-text2);font-weight:600}+.vo-mic{margin-left:auto;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(255,255,255,.06);color:var(--a-muted)}+.vo-mic.on{color:#c4b5fd}+.vo-mic svg.ic{width:14px;height:14px}+.vo-go{display:grid;place-items:center;height:28px;padding:0 14px;border-radius:8px;background:#8b5cf6;color:#fff;font-size:12px;font-weight:600}+.vo-go.stop{background:rgba(248,113,113,.16);color:#fca5a5;box-shadow:inset 0 0 0 1px rgba(248,113,113,.4)}+.mv--tall .sc-voice .feed{padding:0 12px 6px}++/* computer control, 720 x 450 */+.np{position:absolute;left:34px;top:92px;width:400px;height:300px;border-radius:9px;overflow:hidden;background:#fafafa;color:#18181b;box-shadow:0 0 0 1px rgba(255,255,255,.14),0 24px 60px rgba(0,0,0,.6)}+.np-t{height:30px;display:flex;align-items:center;gap:8px;padding:0 10px;background:#e4e4e7;font-size:11.5px;color:#27272a}+.np-t i{width:12px;height:12px;border-radius:3px;background:#60a5fa}+.np-t span{margin-left:auto;display:flex}+.np-t svg.ic{width:13px;height:13px;color:#52525b}+.np-m{height:24px;display:flex;align-items:center;gap:14px;padding:0 10px;border-bottom:1px solid #e4e4e7;font-size:11px;color:#3f3f46}+.np-x{padding:10px 12px;font-family:var(--mono);font-size:13px;line-height:1.6;white-space:pre-wrap}+.np-x .caret{background:#18181b;height:14px;vertical-align:-2px}+.cc-glow{position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;box-shadow:inset 0 0 0 2px rgba(167,139,250,.85),inset 0 0 34px rgba(139,92,246,.55)}+.cc-ap{z-index:5;transform-origin:100% 0}+.cc-card{width:fit-content;padding:11px 12px;border-radius:11px;background:var(--a-surface);border:1px solid var(--a-line2);font-size:12.5px;color:var(--a-text)}+.cc-card b{font-weight:600}+.cc-card.ok{border-color:rgba(52,211,153,.45)}+.cbs{display:flex;gap:6px;margin-top:9px}+.cb{display:grid;place-items:center;height:26px;padding:0 11px;border-radius:7px;background:rgba(255,255,255,.07);border:1px solid var(--a-line2);font-size:11.5px;font-weight:600;color:var(--a-text2);white-space:nowrap}+.cb.go{background:#8b5cf6;border-color:#8b5cf6;color:#fff}+.cb.sm{height:21px;padding:0 8px;font-size:10.5px}+.cc-pn{position:absolute;right:14px;top:14px;width:232px;z-index:6;opacity:0;transform-origin:100% 0;padding:10px;border-radius:12px;background:var(--a-chrome);box-shadow:0 0 0 1px rgba(255,255,255,.12),0 20px 50px rgba(0,0,0,.65)}+.cc-pn.ask{box-shadow:0 0 0 1.5px #a78bfa,0 20px 50px rgba(0,0,0,.65)}+.cc-pn-h{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--a-text)}+.cc-pn-h svg.lu{width:18px;height:18px}+.cc-pn-h b{font-weight:600;margin-right:auto}+.cc-step{display:flex;align-items:center;gap:7px;height:20px;margin-top:9px;font-size:11.5px;color:var(--a-muted);white-space:nowrap}+.cc-qs{position:relative;height:84px;margin-top:8px}+.cc-q{position:absolute;inset:0;visibility:hidden;opacity:0;padding:9px 10px;border-radius:9px;background:var(--a-panel);border:1px solid var(--a-line2)}+.cc-q .l{display:block;font-family:var(--mono);font-size:8.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--a-faint)}+.cc-q b{display:block;margin-top:2px;font-size:12px;font-weight:600;color:var(--a-text);white-space:nowrap}+.cc-q .cbs{margin-top:8px}+.sc-computer .bub,.sc-computer .ans{font-size:12.5px}+.mv--tall .sc-computer .feed{padding:0 12px 6px}+.mv--tall .sc-computer .cmp .mc em{display:none}+.mv--tall .sc-computer .ind{padding-left:0}+.mv--tall .np{left:14px;top:206px;width:372px;height:260px}+.mv--tall .cc-pn{right:12px;top:12px}+/* cloud, 720 x 450 */.cl-tg{position:absolute;left:50%;top:22px;transform:translateX(-50%);display:flex;padding:4px;border-radius:12px;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);z-index:5}.cl-tg span{position:relative;z-index:1;width:124px;height:32px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:12.5px;font-weight:600;color:#9ca3af;transition:color .2s}@@ -767,6 +840,7 @@ html.hm .hp-get.in .get-mark-p+.get-mark-p{transition-delay:.53s}.hx-pill{margin-bottom:22px}.hx-kicker{letter-spacing:.14em}.dl-card--xl{padding:16px}+ .dl-card--cloud{padding:12px;gap:9px}.hx .dl-alts{gap:10px 18px}.mv-tc{min-width:0}.mv-ch button{padding-top:9px;padding-bottom:10px}diff --git a/docs/assets/lu.css b/docs/assets/lu.cssindex 553887c7..690dfa72 100644--- a/docs/assets/lu.css+++ b/docs/assets/lu.css@@ -562,7 +562,14 @@ main.wrap.lu-doc{text-align:center;min-height:56vh;display:flex;flex-direction:c.lu-lang{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border:0;background:none;padding:0;cursor:pointer;border-radius:var(--radius-sm);transition:background .15s}.lu-lang:hover{background:var(--fill-faint)}.lu-lang svg{width:20px;height:14px;border-radius:2.5px;display:block;box-shadow:0 0 0 1px rgba(127,127,127,.35)}-.lu-lang.fixed{position:fixed;top:14px;right:14px;z-index:1000;background:rgba(20,20,26,.7)}+.lu-lang-wrap{position:relative;display:flex}+.lu-lang-wrap.fixed{position:fixed;top:14px;right:14px;z-index:1000}+.lu-lang-wrap.fixed .lu-lang{background:rgba(20,20,26,.7)}+.lu-lang-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:1001;min-width:128px;padding:4px;border-radius:var(--radius-sm);background:var(--panel);border:1px solid var(--line-subtle);box-shadow:0 14px 40px -12px rgba(0,0,0,.6)}+.lu-lang-menu[hidden]{display:none}+.lu-lang-opt{display:flex;align-items:center;gap:9px;width:100%;padding:8px 10px;border:0;border-radius:4px;background:none;color:var(--fg);font-family:var(--sans);font-size:.84rem;font-weight:600;line-height:1;text-align:left;cursor:pointer}+.lu-lang-opt:hover,.lu-lang-opt:focus-visible{background:var(--fill-faint);outline:none}+.lu-lang-opt svg{flex:none;width:20px;height:14px;border-radius:2.5px;display:block;box-shadow:0 0 0 1px rgba(127,127,127,.35)}#lu-gt,#goog-gt-tt,.goog-te-banner-frame,.goog-te-balloon-frame,body>.skiptranslate,.VIpgJd-ZVi9od-aZ2wEe-wOHMyf{display:none!important}body{top:0!important}font.goog-text-highlight{background:none!important;box-shadow:none!important}diff --git a/docs/assets/lu.js b/docs/assets/lu.jsindex f0fdd81b..a27a9dba 100644--- a/docs/assets/lu.js+++ b/docs/assets/lu.js@@ -198,25 +198,58 @@document.body.appendChild(s);}+ // The button shows the flag of the language the page is in right now. A+ // click opens a menu with the one other language.function wireLang() {if (pageLang() !== "en") return;var pref = langPref();- var target = pref === "de" ? "en" : "de";+ var current = pref === "de" ? "de" : "en";+ var target = current === "de" ? "en" : "de";++ var wrap = document.createElement("div");+ wrap.className = "lu-lang-wrap notranslate";+ wrap.setAttribute("translate", "no");+var btn = document.createElement("button");btn.type = "button";- btn.className = "lu-lang notranslate";- btn.setAttribute("translate", "no");- btn.title = target === "de" ? "Auf Deutsch anzeigen" : "Show in English";+ btn.className = "lu-lang";+ btn.title = current === "de" ? "Sprache: Deutsch" : "Language: English";btn.setAttribute("aria-label", btn.title);- btn.innerHTML = target === "de" ? FLAG_DE : FLAG_EN;- btn.addEventListener("click", function () {+ btn.setAttribute("aria-haspopup", "menu");+ btn.setAttribute("aria-expanded", "false");+ btn.innerHTML = current === "de" ? FLAG_DE : FLAG_EN;++ var menu = document.createElement("div");+ menu.className = "lu-lang-menu";+ menu.setAttribute("role", "menu");+ menu.hidden = true;++ var opt = document.createElement("button");+ opt.type = "button";+ opt.className = "lu-lang-opt";+ opt.setAttribute("role", "menuitem");+ opt.setAttribute("lang", target);+ opt.innerHTML = (target === "de" ? FLAG_DE : FLAG_EN) + "<span>" + (target === "de" ? "Deutsch" : "English") + "</span>";+ menu.appendChild(opt);+ wrap.appendChild(btn); wrap.appendChild(menu);++ function open(on) {+ menu.hidden = !on;+ btn.setAttribute("aria-expanded", on ? "true" : "false");+ if (on) opt.focus();+ }+ btn.addEventListener("click", function (e) { e.stopPropagation(); open(menu.hidden); });+ document.addEventListener("click", function (e) { if (!menu.hidden && !wrap.contains(e.target)) open(false); });+ wrap.addEventListener("keydown", function (e) { if (e.key === "Escape" && !menu.hidden) { open(false); btn.focus(); } });+ opt.addEventListener("click", function () {try { localStorage.setItem(LANG_KEY, target); } catch (e) {}setGoogTrans(target === "de" ? "/auto/de" : null);location.reload();});+var right = document.querySelector(".lu-nav-right");- if (right) right.insertBefore(btn, right.firstChild);- else { btn.classList.add("fixed"); document.body.appendChild(btn); }+ if (right) right.insertBefore(wrap, right.firstChild);+ else { wrap.classList.add("fixed"); document.body.appendChild(wrap); }if (pref === "de") bootTranslate("de");else setGoogTrans(null);diff --git a/docs/index.html b/docs/index.htmlindex 3c20c178..5e0e16ba 100644--- a/docs/index.html+++ b/docs/index.html@@ -159,7 +159,7 @@</p></div><div class="dl-card dl-card--xl dl-card--cloud">- <span class="dl-win" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/></svg></span>+ <span class="dl-win dl-lu" aria-hidden="true"><svg viewBox="193 193 638 638"><rect x="193" y="193" width="638" height="638" rx="138" ry="138" fill="#8b5cf6"/><path fill="#fff" d="M302,342 H377 V612 H433.6 A162,162 0 0,0 500.5,680 H302 Z"/><path fill="#fff" d="M434,342 H508 V545 A69,69 0 0,0 646,545 V342 H722 V537.5 A144,144 0 0,1 434,537.5 Z"/></svg></span><div class="dl-info"><h3>LU Cloud <em>· in your browser</em></h3><p>NO GPU NEEDED · MAC · PHONE · PACKS FROM 15 EUR</p>@@ -372,6 +372,48 @@<figcaption class="sr-only">Demo: a phone scans the QR code on the PC, enters the 6-digit passcode and asks for a picture; the PC renders it and the phone shows the result.</figcaption></figure></article>++ <article class="ft ft--flip" id="voice">+ <div class="ft-copy">+ <span class="ft-num"><b>06</b> Voice</span>+ <h3 class="ft-h">Talk to it. <em>It answers out loud.</em></h3>+ <p>Click Start voice and just talk. LU hears when you are done and answers in one of fifteen voices, and you can speak over the answer at any time. Speech recognition and the voice run on your own computer, and the session is saved as a normal chat. Voice is in beta and speaks English.</p>+ <ol class="mv-ch" data-mv-for="mv-voice">+ <li><button type="button" data-i="0">Click Start voice</button></li>+ <li><button type="button" data-i="1">Just talk</button></li>+ <li><button type="button" data-i="2">It answers out loud</button></li>+ <li><button type="button" data-i="3">Speak over it</button></li>+ </ol>+ <div class="thing-tags"><span>Beta</span><span>English</span><span>15 voices</span><span>runs locally</span></div>+ </div>+ <figure class="mv" id="mv-voice" data-mv="voice">+ <div class="mv-top"><span class="mv-live"><i></i>Live demo</span><span class="mv-name">Voice · beta</span></div>+ <div class="mv-box" data-nosnippet><div class="mv-clip"><div class="mv-stage" aria-hidden="true" translate="no"></div></div></div>+ <div class="mv-ctl"><button type="button" class="mv-pp" aria-label="Pause demo"></button><div class="mv-track"><i class="mv-fill"></i></div><span class="mv-tc">0:00</span></div>+ <figcaption class="sr-only">Demo: a click on Start voice, a spoken question about dinner, a spoken answer with the transcript next to it, and the user speaking over the answer to change it.</figcaption>+ </figure>+ </article>++ <article class="ft" id="computer-control">+ <div class="ft-copy">+ <span class="ft-num"><b>07</b> Computer control</span>+ <h3 class="ft-h">It uses your mouse and keyboard. <em>Only where you allow it.</em></h3>+ <p>Switch computer control on and a model can look at your screen and click and type in the apps you approve. It asks once in every chat, once for every app and, unless you choose otherwise, before every action. The LU window shrinks to a small panel with Pause and Stop, and you see every move. Computer control is in beta and off until you switch it on. On a Mac it is not fully tested yet.</p>+ <ol class="mv-ch" data-mv-for="mv-computer">+ <li><button type="button" data-i="0">Ask in plain words</button></li>+ <li><button type="button" data-i="1">You allow it first</button></li>+ <li><button type="button" data-i="2">It asks for each app</button></li>+ <li><button type="button" data-i="3">You confirm, it acts</button></li>+ </ol>+ <div class="thing-tags"><span>Beta</span><span>off by default</span><span>asks first</span><span>Pause and Stop</span></div>+ </div>+ <figure class="mv" id="mv-computer" data-mv="computer">+ <div class="mv-top"><span class="mv-live"><i></i>Live demo</span><span class="mv-name">Computer control · beta</span></div>+ <div class="mv-box" data-nosnippet><div class="mv-clip"><div class="mv-stage" aria-hidden="true" translate="no"></div></div></div>+ <div class="mv-ctl"><button type="button" class="mv-pp" aria-label="Pause demo"></button><div class="mv-track"><i class="mv-fill"></i></div><span class="mv-tc">0:00</span></div>+ <figcaption class="sr-only">Demo: a user asks LU to write a shopping list into an open Notepad window. LU asks whether it may use computer control in this chat, shrinks to a small panel, asks before it touches Notepad, asks again before it types, then writes the list and comes back.</figcaption>+ </figure>+ </article></div></section>@@ -656,7 +698,7 @@</p></div><div class="dl-card dl-card--xl dl-card--cloud">- <span class="dl-win" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/></svg></span>+ <span class="dl-win dl-lu" aria-hidden="true"><svg viewBox="193 193 638 638"><rect x="193" y="193" width="638" height="638" rx="138" ry="138" fill="#8b5cf6"/><path fill="#fff" d="M302,342 H377 V612 H433.6 A162,162 0 0,0 500.5,680 H302 Z"/><path fill="#fff" d="M434,342 H508 V545 A69,69 0 0,0 646,545 V342 H722 V537.5 A144,144 0 0,1 434,537.5 Z"/></svg></span><div class="dl-info"><h3>LU Cloud <em>· in your browser</em></h3><p>NO GPU NEEDED · MAC · PHONE · PACKS FROM 15 EUR</p>