From c37a88a3671c50f6c4fafc445a7c9f4e289d38f0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 20:17:56 +0000 Subject: [PATCH] This build was committed by a bot. --- .../{index-DlMcCiOg.js => index-zttrb_rF.js} | 55 +++++-------------- dist/index.html | 4 +- dist/sw.js | 2 +- 3 files changed, 17 insertions(+), 44 deletions(-) rename dist/assets/{index-DlMcCiOg.js => index-zttrb_rF.js} (97%) diff --git a/dist/assets/index-DlMcCiOg.js b/dist/assets/index-zttrb_rF.js similarity index 97% rename from dist/assets/index-DlMcCiOg.js rename to dist/assets/index-zttrb_rF.js index abc7221..664a5c9 100644 --- a/dist/assets/index-DlMcCiOg.js +++ b/dist/assets/index-zttrb_rF.js @@ -424,7 +424,7 @@ if (!sunes.length) { const def = SUNE.create({ name: "Default" }); SUNE.setActive(def.id); } -const state = window.state = { messages: [], busy: false, controller: null, currentThreadId: null, abortRequested: false, attachments: [], stream: { rid: null, bubble: null, meta: null, text: "", done: false }, viewingFile: false }; +const state = window.state = { messages: [], busy: false, controller: null, currentThreadId: null, abortRequested: false, attachments: [], stream: { rid: null, bubble: null, meta: null, text: "", done: false } }; const getModelShort = (m) => { const mm = m || SUNE.model || ""; return mm.includes("/") ? mm.split("/").pop() : mm; @@ -480,7 +480,7 @@ const reflectActiveSune = async () => { const a = SUNE.active; el.suneBtnTop.title = `Settings — ${a.name}`; el.suneBtnTop.innerHTML = a.avatar ? `` : "✺"; - el.footer.classList.toggle("hidden", !!a.settings.hide_composer || state.viewingFile); + el.footer.classList.toggle("hidden", !!a.settings.hide_composer); await renderSuneHTML(); icons(); }; @@ -588,8 +588,6 @@ const clearChat = () => { state.attachments = []; updateAttachBadge(); el.fileInput.value = ""; - state.viewingFile = false; - el.footer.classList.toggle("hidden", !!SUNE.active?.settings?.hide_composer); }; const payloadWithSampling = (b) => { const o = Object.assign({}, b), s = SUNE, p = { temperature: num(s.temperature, null), top_p: num(s.top_p, null), top_k: int(s.top_k, null), frequency_penalty: num(s.frequency_penalty, null), repetition_penalty: num(s.repetition_penalty, null), min_p: num(s.min_p, null), top_a: num(s.top_a, null) }; @@ -733,7 +731,7 @@ ${sysPrompt}` }], max_tokens: 20, temperature: 0.2 }) }); }; const threadRow = (t) => { const icon = t.type === "folder" ? "folder" : t.type === "file" ? "file-text" : ""; - return `
${t.type === "folder" ? "" : ``}
`; + return `
${t.type === "file" ? "" : ``}
`; }; let sortedThreads = [], isAddingThreads = false; const THREAD_PAGE_SIZE = 50; @@ -775,25 +773,16 @@ $(el.threadList).on("click", async (e) => { if (openBtn) { const id = openBtn.getAttribute("data-open-thread"), type = openBtn.getAttribute("data-type"); if (type === "file") { - if (id.toLowerCase().endsWith(".md")) { - const u2 = el.threadRepoInput.value.trim(); - if (u2.startsWith("gh://")) { - const info = parseGhUrl(u2); - try { - const res = await ghApi(`${info.apiPath}/${id}?ref=${info.branch}`); - if (res && res.content) { - const content = btou(res.content); - clearChat(); - state.viewingFile = true; - el.footer.classList.add("hidden"); - addMessage({ role: "system", content: [{ type: "text", text: content }], sune_name: "File Preview", model: id }); - el.sidebarRight.classList.add("translate-x-full"); - el.sidebarOverlayRight.classList.add("hidden"); - hideThreadPopover(); - } - } catch (e2) { - console.error("File fetch failed", e2); - } + const u2 = el.threadRepoInput.value.trim(); + if (u2.startsWith("gh://")) { + const info = parseGhUrl(u2); + try { + await navigator.clipboard.writeText(`${info.owner}/${info.repo}/${id}`); + const old = openBtn.innerHTML; + openBtn.innerHTML = ' Copied Path'; + icons(); + setTimeout(() => (openBtn.innerHTML = old, icons()), 1200); + } catch { } } return; @@ -870,24 +859,8 @@ $(el.threadPopover).on("click", async (e) => { const act = e.target.closest("[data-action]")?.getAttribute("data-action"); if (!act || !menuThreadId) return; const th = THREAD.get(menuThreadId); - const u = el.threadRepoInput.value.trim(), prefix = u.startsWith("gh://") ? "rem_t_" : "t_"; - if (act === "copy_path") { - if (u.startsWith("gh://")) { - const info = parseGhUrl(u); - try { - await navigator.clipboard.writeText(`${info.owner}/${info.repo}@${info.branch}/${menuThreadId}`); - const btn = e.target.closest("[data-action]"); - const old = btn.innerHTML; - btn.innerHTML = 'Copied!'; - icons(); - setTimeout(() => (btn.innerHTML = old, icons()), 1200); - } catch { - } - } - hideThreadPopover(); - return; - } if (!th) return; + const u = el.threadRepoInput.value.trim(), prefix = u.startsWith("gh://") ? "rem_t_" : "t_"; if (act === "pin") { th.pinned = !th.pinned; if (u.startsWith("gh://") && th.status !== "new") th.status = "modified"; diff --git a/dist/index.html b/dist/index.html index 7819184..1731956 100644 --- a/dist/index.html +++ b/dist/index.html @@ -12,7 +12,7 @@ - + @@ -72,7 +72,6 @@ + diff --git a/dist/sw.js b/dist/sw.js index 6d08780..de9a898 100644 --- a/dist/sw.js +++ b/dist/sw.js @@ -1 +1 @@ -if(!self.define){let e,i={};const s=(s,n)=>(s=new URL(s+".js",n).href,i[s]||new Promise(i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()}).then(()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e}));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(i[t])return;let o={};const l=e=>s(e,t),c={module:{uri:t},exports:o,require:l};i[t]=Promise.all(n.map(e=>c[e]||l(e))).then(e=>(r(...e),o))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"a0a7a57f36d4eef4c193f0a58a3f6299"},{url:"assets/index-JLEDB1oP.css",revision:null},{url:"assets/index-DlMcCiOg.js",revision:null},{url:"manifest.webmanifest",revision:"7a6c5c6ab9cb5d3605d21df44c6b17a2"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}); +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const c=e=>i(e,t),l={module:{uri:t},exports:o,require:c};s[t]=Promise.all(n.map(e=>l[e]||c(e))).then(e=>(r(...e),o))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"6c855cd336a940f88841eea571238a2d"},{url:"assets/index-zttrb_rF.js",revision:null},{url:"assets/index-JLEDB1oP.css",revision:null},{url:"manifest.webmanifest",revision:"7a6c5c6ab9cb5d3605d21df44c6b17a2"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});