From 5b76e9f3101e42aa72752e0c8a9040d3d56b25cb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 24 Jan 2026 21:17:08 +0000 Subject: [PATCH] This build was committed by a bot. --- .../{index-CxwhROrW.js => index-zttrb_rF.js} | 27 +++++++++++++++++-- dist/index.html | 2 +- dist/sw.js | 2 +- 3 files changed, 27 insertions(+), 4 deletions(-) rename dist/assets/{index-CxwhROrW.js => index-zttrb_rF.js} (97%) diff --git a/dist/assets/index-CxwhROrW.js b/dist/assets/index-zttrb_rF.js similarity index 97% rename from dist/assets/index-CxwhROrW.js rename to dist/assets/index-zttrb_rF.js index dde98a4..664a5c9 100644 --- a/dist/assets/index-CxwhROrW.js +++ b/dist/assets/index-zttrb_rF.js @@ -729,11 +729,18 @@ ${sysPrompt}` }], max_tokens: 20, temperature: 0.2 }) }); return null; } }; -const threadRow = (t) => `
`; +const threadRow = (t) => { + const icon = t.type === "folder" ? "folder" : t.type === "file" ? "file-text" : ""; + return `
${t.type === "file" ? "" : ``}
`; +}; let sortedThreads = [], isAddingThreads = false; const THREAD_PAGE_SIZE = 50; async function renderThreads() { - sortedThreads = [...THREAD.list].filter((t) => t.status !== "deleted").sort((a, b) => b.pinned - a.pinned || b.updatedAt - a.updatedAt); + sortedThreads = [...THREAD.list].filter((t) => t.status !== "deleted").sort((a, b) => { + if (a.type === "file" && b.type !== "file") return -1; + if (a.type !== "file" && b.type === "file") return 1; + return b.pinned - a.pinned || b.updatedAt - a.updatedAt; + }); el.threadList.innerHTML = sortedThreads.slice(0, THREAD_PAGE_SIZE).map(threadRow).join(""); el.threadList.scrollTop = 0; isAddingThreads = false; @@ -765,6 +772,21 @@ $(el.threadList).on("click", async (e) => { const openBtn = e.target.closest("[data-open-thread]"), menuBtn = e.target.closest("[data-thread-menu]"); if (openBtn) { const id = openBtn.getAttribute("data-open-thread"), type = openBtn.getAttribute("data-type"); + if (type === "file") { + 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; + } if (type === "folder") { const u2 = el.threadRepoInput.value.trim(); el.threadRepoInput.value = u2 + (u2.endsWith("/") ? "" : "/") + id; @@ -1427,6 +1449,7 @@ const pullThreads = async () => { } else { THREAD.list = items.map((i) => { if (i.type === "dir") return { id: i.name, title: i.name, type: "folder", updatedAt: 0 }; + if (i.type === "file" && i.name.endsWith(".md")) return { id: i.path, title: i.name, type: "file", updatedAt: 0 }; const d = deserializeThreadName(i.name); return d ? { ...d, status: "synced" } : null; }).filter(Boolean); diff --git a/dist/index.html b/dist/index.html index a7d5512..b0eb996 100644 --- a/dist/index.html +++ b/dist/index.html @@ -12,7 +12,7 @@ - + diff --git a/dist/sw.js b/dist/sw.js index 5c7782f..51d7555 100644 --- a/dist/sw.js +++ b/dist/sw.js @@ -1 +1 @@ -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),d={module:{uri:t},exports:o,require:c};s[t]=Promise.all(n.map(e=>d[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:"34271eb878d3dc2041782cb1cca5c05d"},{url:"assets/index-JLEDB1oP.css",revision:null},{url:"assets/index-CxwhROrW.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 d=e=>i(e,t),l={module:{uri:t},exports:o,require:d};s[t]=Promise.all(n.map(e=>l[e]||d(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:"3bcb772837e53eed115988d4d3261817"},{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")))});