@codex-ultra/cxu 0.2.50 → 0.2.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/vendor/saVmTool.d.ts +26 -1
- package/dist/vendor/saVmTreeSitter.d.ts +53 -0
- package/package.json +1 -1
- package/server-bundle/index.js +524 -491
- package/web-dist/index.html +1 -1
- package/web-dist/sw.js +1 -1
package/web-dist/index.html
CHANGED
package/web-dist/sw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const CACHE_NAME="codex-ultra-pwa-
|
|
1
|
+
const CACHE_NAME="codex-ultra-pwa-mudmat9d-ao019k",APP_SHELL=["/manifest.webmanifest","/icons/icon.svg"];self.addEventListener("install",e=>{e.waitUntil(caches.open(CACHE_NAME).then(t=>t.addAll(APP_SHELL)).then(()=>self.skipWaiting()))}),self.addEventListener("activate",e=>{e.waitUntil(caches.keys().then(t=>Promise.all(t.filter(n=>n!==CACHE_NAME).map(n=>caches.delete(n)))).then(()=>self.clients.claim()))}),self.addEventListener("fetch",e=>{const t=e.request;if(t.method!=="GET")return;const n=new URL(t.url);if(n.origin!==self.location.origin||n.pathname.startsWith("/api/")||n.pathname.startsWith("/ws"))return;if(t.mode==="navigate"||t.destination==="document"||(t.headers.get("accept")??"").includes("text/html")){e.respondWith(fetch(t).catch(()=>new Response('<!doctype html><meta charset="utf-8"><title>Codex UI offline</title><body>Codex UI is offline. Reconnect and refresh.</body>',{headers:{"Content-Type":"text/html; charset=utf-8"}})));return}e.respondWith(fetch(t).then(i=>{if(i.ok&&i.type==="basic"){const a=i.clone();caches.open(CACHE_NAME).then(s=>s.put(t,a))}return i}).catch(()=>caches.match(t).then(i=>i??Response.error())))});
|