@qwen-code/web-shell 0.25.2-preview.1 → 0.25.2
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/{PierreFilePreview-Ctb1tsDd.js → PierreFilePreview-Dk1ZVwYX.js} +1 -1
- package/dist/{SpreadsheetPreview-D-v9WPl_.js → SpreadsheetPreview-Cfub7Cau.js} +1 -1
- package/dist/{WorkspaceFileBrowser-ChMwviRm.js → WorkspaceFileBrowser-BF1_WOlE.js} +1 -1
- package/dist/{agents-route-C_2yzkr2.js → agents-route-By3UwziU.js} +1 -1
- package/dist/{index-CAf7sm7W.js → index-1CTTJPhC.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/sw.js +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ var Ch = (e, t, n) => t in e ? Sh(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var ut = (e, t, n) => Ch(e, typeof t != "symbol" ? t + "" : t, n), Qi = (e, t, n) => t.has(e) || Ha("Cannot " + n);
|
|
7
7
|
var l = (e, t, n) => (Qi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), N = (e, t, n) => t.has(e) ? Ha("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), _ = (e, t, n, r) => (Qi(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), y = (e, t, n) => (Qi(e, t, "access private method"), n);
|
|
8
8
|
import { jsx as K, jsxs as ot, Fragment as Oa } from "react/jsx-runtime";
|
|
9
|
-
import { N as Ac, O as _h, P as Ph, Q as kh, R as xn, q as Eh, s as Dh, t as Mh, S as Th, U as Nh, v as lo, B as co, I as Ah, w as qa, d as zh } from "./index-
|
|
9
|
+
import { N as Ac, O as _h, P as Ph, Q as kh, R as xn, q as Eh, s as Dh, t as Mh, S as Th, U as Nh, v as lo, B as co, I as Ah, w as qa, d as zh } from "./index-1CTTJPhC.js";
|
|
10
10
|
import { useRef as Se, useState as it, useMemo as zc, useEffect as Fn, useSyncExternalStore as Rh, useCallback as Rc, useId as Lh, useImperativeHandle as Lc, useLayoutEffect as Vh, createContext as Vc, isValidElement as Fh, useContext as Bh, forwardRef as Gs } from "react";
|
|
11
11
|
import { EyeIcon as Hh, Code2Icon as Oh, RefreshCwIcon as qh, FolderIcon as $h, XIcon as jh, SearchIcon as Uh } from "lucide-react";
|
|
12
12
|
import { W as Wh, T as Kh } from "./useDaemonMidTurnInjected-ClQx7vwI.js";
|
|
@@ -3,7 +3,7 @@ import { useState as p, useMemo as le, useEffect as re, useRef as ne, useId as K
|
|
|
3
3
|
import { W as F, T as Ve, m as Qe } from "./useDaemonMidTurnInjected-ClQx7vwI.js";
|
|
4
4
|
import "@qwen-code/sdk/daemon";
|
|
5
5
|
import { CheckCircle2 as we, LoaderCircle as Ze, CopyIcon as qe, UsersIcon as Ie, MoreHorizontalIcon as Ae, PlusIcon as oe, ServerIcon as Xe } from "lucide-react";
|
|
6
|
-
import { D as Le, f as ye, g as He, h as $e, i as De, j as ae, p as se, I as ee, k as Te, B as _, w as Me, l as je, C as be, m as Ee, n as fe, o as ze, q as Ue, s as Pe, t as Fe, v as te, x as We, E as pe, y as ge, z as xe, A as ve, F as Ne, G as Ye, H as et, J as tt, K as ke, L as nt, M as at } from "./index-
|
|
6
|
+
import { D as Le, f as ye, g as He, h as $e, i as De, j as ae, p as se, I as ee, k as Te, B as _, w as Me, l as je, C as be, m as Ee, n as fe, o as ze, q as Ue, s as Pe, t as Fe, v as te, x as We, E as pe, y as ge, z as xe, A as ve, F as Ne, G as Ye, H as et, J as tt, K as ke, L as nt, M as at } from "./index-1CTTJPhC.js";
|
|
7
7
|
const lt = /^[A-Za-z0-9_-]{1,256}$/;
|
|
8
8
|
function rt(r) {
|
|
9
9
|
let s;
|
|
@@ -1862,7 +1862,7 @@ async function Die(e, t, n) {
|
|
|
1862
1862
|
].map(async ([a, l, c, d]) => {
|
|
1863
1863
|
const h = r.querySelector(a), f = h?.getAttribute(l) ?? "", p = h?.getAttribute("integrity") ?? "";
|
|
1864
1864
|
if (!h) return;
|
|
1865
|
-
const g = `https://unpkg.com/@qwen-code/qwen-code@0.25.2
|
|
1865
|
+
const g = `https://unpkg.com/@qwen-code/qwen-code@0.25.2/export-transcript-document.${c}`;
|
|
1866
1866
|
if (f !== g || !/^sha384-[A-Za-z0-9+/]{64}$/.test(p))
|
|
1867
1867
|
throw new Error(
|
|
1868
1868
|
"Unsupported export preview resource; use an export matching the current Web Shell version."
|
|
@@ -62131,7 +62131,7 @@ function PO({ label: e }) {
|
|
|
62131
62131
|
function iKe({ error: e }) {
|
|
62132
62132
|
return /* @__PURE__ */ s("div", { className: "text-sm text-destructive", children: e?.message });
|
|
62133
62133
|
}
|
|
62134
|
-
const aKe = Cx(async () => ({ default: (await import("./agents-route-
|
|
62134
|
+
const aKe = Cx(async () => ({ default: (await import("./agents-route-By3UwziU.js")).AgentsRoute }));
|
|
62135
62135
|
function lKe(e) {
|
|
62136
62136
|
return /* @__PURE__ */ s(xx, { fallback: null, children: /* @__PURE__ */ s(aKe, { ...e }) });
|
|
62137
62137
|
}
|
|
@@ -94646,7 +94646,7 @@ function aX(e) {
|
|
|
94646
94646
|
e instanceof Error ? e.message : String(e)
|
|
94647
94647
|
);
|
|
94648
94648
|
}
|
|
94649
|
-
const Twt = () => import("./WorkspaceFileBrowser-
|
|
94649
|
+
const Twt = () => import("./WorkspaceFileBrowser-BF1_WOlE.js").then((e) => ({ default: e.WorkspaceFileBrowser })).catch(aX), Rwt = () => import("./PierreFilePreview-Dk1ZVwYX.js").catch(aX), Awt = Cx(() => import("./SpreadsheetPreview-Cfub7Cau.js")), Ewt = 700, Mwt = [
|
|
94650
94650
|
"daily",
|
|
94651
94651
|
"weekdays",
|
|
94652
94652
|
"weekly",
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ if(typeof document!=="undefined"&&!document.querySelector('style[data-qwen-web-s
|
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import { A as t, D as n, a as o, b as r, c as i, g as u, d as S, i as g, e as l, s as c, f as p, u as d, h as A, j as m, k as E, l as P, m as T, n as h, o as v, p as D, q as M, r as _, t as W, v as b, w as L, x as N, y as O, z as k, B as C, C as F, E as G, F as R, G as H, H as I, I as f, J as x, K as B, L as U, M as V, N as w, O as y, P as J, Q as j, R as K, S as X, T as q, U as z, V as Q } from "./useDaemonMidTurnInjected-ClQx7vwI.js";
|
|
5
5
|
import { DAEMON_APPROVAL_MODES as Z } from "@qwen-code/sdk/daemon";
|
|
6
|
-
import { V as ss, W as es, X as as, Y as ts, Z as ns, _ as os, $ as rs, a0 as is, a1 as us, a2 as Ss, a3 as gs, a4 as ls, a5 as cs } from "./index-
|
|
6
|
+
import { V as ss, W as es, X as as, Y as ts, Z as ns, _ as os, $ as rs, a0 as is, a1 as us, a2 as Ss, a3 as gs, a4 as ls, a5 as cs } from "./index-1CTTJPhC.js";
|
|
7
7
|
import { h as ds } from "./codeHighlighter-pfciSYNN.js";
|
|
8
8
|
export {
|
|
9
9
|
t as AGENT_TOOL_NAME,
|
package/dist/sw.js
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* Cache-first for same-origin build assets. Manifest, daemon API requests,
|
|
7
7
|
* authenticated requests and event streams remain network-only. HTML is
|
|
8
8
|
* never cached: an unavailable daemon gets a retry page, not a stale session.
|
|
9
|
-
*/var r="0.25.2
|
|
9
|
+
*/var r="0.25.2",s="qwen-code-shell-v1-"+r;self.addEventListener("install",function(n){n.waitUntil(self.skipWaiting())});self.addEventListener("activate",function(n){n.waitUntil(caches.keys().then(function(t){return Promise.all(t.filter(function(e){return e.startsWith("qwen-code-shell-")&&e!==s}).map(function(e){return caches.delete(e)})).then(function(){return self.clients.claim()})}))});async function c(n,t){var e;try{e=await caches.open(s);var i=await e.match(n);if(i)return i}catch{}var a=await fetch(n);return e&&a.status===200&&a.type==="basic"&&t.waitUntil(e.put(n,a.clone()).catch(function(){})),a}self.addEventListener("fetch",function(n){var t=n.request,e=new URL(t.url);if(!(t.method!=="GET"||t.headers.has("Authorization")||(t.headers.get("Accept")||"").includes("text/event-stream")||e.origin!==self.location.origin)){if(e.pathname.startsWith("/assets/")&&/-[a-zA-Z0-9_-]{8,}\.[^/]+$/.test(e.pathname)){n.respondWith(c(t,n));return}t.mode==="navigate"&&(t.destination==="document"||!t.destination)&&n.respondWith(fetch(t).catch(function(){return new Response('<!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Qwen Code unavailable</title><body><h1>Cannot reach Qwen Code / <span lang="zh-CN">无法连接 Qwen Code</span></h1><p>Reconnect to the daemon, then reload this page. / <span lang="zh-CN">请重新连接守护进程,然后重新加载此页面。</span></p><a href="" onclick="location.reload();return false">Try again / <span lang="zh-CN">重试</span></a></body></html>',{status:503,headers:{"Content-Type":"text/html; charset=utf-8","Cache-Control":"no-store"}})}))}});
|