@qwen-code/web-shell 0.27.2-preview.0 → 0.27.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-B4n5WCtp.js → PierreFilePreview-CVi_Wsf-.js} +1 -1
- package/dist/{SpreadsheetPreview-Bbxqbb8z.js → SpreadsheetPreview-CTyYrLmD.js} +1 -1
- package/dist/{WorkspaceFileBrowser-Bj4bedRP.js → WorkspaceFileBrowser-DkQgnDFv.js} +1 -1
- package/dist/{agents-route-CT-Zjn4s.js → agents-route-ZD8W2lTb.js} +1 -1
- package/dist/{index-CULFv0Jj.js → index-BGsppGgG.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 Qu = (e, t, n) => t in e ? Yu(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var ct = (e, t, n) => Qu(e, typeof t != "symbol" ? t + "" : t, n), Oi = (e, t, n) => t.has(e) || pl("Cannot " + n);
|
|
7
7
|
var s = (e, t, n) => (Oi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), M = (e, t, n) => t.has(e) ? pl("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), b = (e, t, n, r) => (Oi(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), m = (e, t, n) => (Oi(e, t, "access private method"), n);
|
|
8
8
|
import { jsx as V, jsxs as xe, Fragment as ti } from "react/jsx-runtime";
|
|
9
|
-
import { N as Zu, O as Ju, P as ed, Q as td, q as nd, s as rd, t as od, v as cn, R as id, S as sd, U as ld, V as ad, D as cd, f as ud, g as dd, h as hd, i as fd, W as ro, X as pd, I as ml, k as md, B as Jt, Y as gd, Z as vd, _ as yd, $ as bd, a0 as Id, a1 as wd, a2 as xd, a3 as Sd, a4 as Cd, a5 as gl, a6 as _d, w as vl, d as kd } from "./index-
|
|
9
|
+
import { N as Zu, O as Ju, P as ed, Q as td, q as nd, s as rd, t as od, v as cn, R as id, S as sd, U as ld, V as ad, D as cd, f as ud, g as dd, h as hd, i as fd, W as ro, X as pd, I as ml, k as md, B as Jt, Y as gd, Z as vd, _ as yd, $ as bd, a0 as Id, a1 as wd, a2 as xd, a3 as Sd, a4 as Cd, a5 as gl, a6 as _d, w as vl, d as kd } from "./index-BGsppGgG.js";
|
|
10
10
|
import { usePanelRef as yl } from "react-resizable-panels";
|
|
11
11
|
import { EyeIcon as Pd, Code2Icon as Ed, StickyNotePlusIcon as Dd, FolderPlusIcon as Md, RotateCwIcon as Td, FolderIcon as Nd, XIcon as bl, SearchIcon as Ad } from "lucide-react";
|
|
12
12
|
import { useMemo as Rd, useRef as it, useState as We, useId as Vd, useEffect as oo } from "react";
|
|
@@ -3,7 +3,7 @@ import { X as ee, Y as We, Z as ht, _ as bt, U as ft, n as pt } from "./useDaemo
|
|
|
3
3
|
import { useState as v, useMemo as ce, useRef as de, useEffect as pe, useId as gt, useCallback as Ce } from "react";
|
|
4
4
|
import "@qwen-code/sdk/daemon";
|
|
5
5
|
import { CheckCircle2 as $e, LoaderCircle as Be, CopyIcon as Je, UsersIcon as Ge, MoreHorizontalIcon as Ke, PlusIcon as we, ServerIcon as xt } from "lucide-react";
|
|
6
|
-
import { D as Ve, f as Qe, g as Ze, h as Xe, i as Ye, j as fe, p as Ne, I as se, k as et, B as q, w as tt, l as nt, C as qe, m as at, n as ye, o as lt, q as rt, s as ot, t as it, v as me, x as st, E as Ae, y as Ie, z as Le, A as je, F as He, G as vt, H as wt, J as Nt, K as Me, L as kt, M as Ct } from "./index-
|
|
6
|
+
import { D as Ve, f as Qe, g as Ze, h as Xe, i as Ye, j as fe, p as Ne, I as se, k as et, B as q, w as tt, l as nt, C as qe, m as at, n as ye, o as lt, q as rt, s as ot, t as it, v as me, x as st, E as Ae, y as Ie, z as Le, A as je, F as He, G as vt, H as wt, J as Nt, K as Me, L as kt, M as Ct } from "./index-BGsppGgG.js";
|
|
7
7
|
const _t = /^[A-Za-z0-9_-]{1,256}$/;
|
|
8
8
|
function St(a) {
|
|
9
9
|
let l;
|
|
@@ -376,7 +376,7 @@ async function Vwe(e, t, n) {
|
|
|
376
376
|
].map(async ([a, c, d, l]) => {
|
|
377
377
|
const u = r.querySelector(a), p = u?.getAttribute(c) ?? "", m = u?.getAttribute("integrity") ?? "";
|
|
378
378
|
if (!u) return;
|
|
379
|
-
const f = `https://unpkg.com/@qwen-code/qwen-code@0.27.2
|
|
379
|
+
const f = `https://unpkg.com/@qwen-code/qwen-code@0.27.2/export-transcript-document.${d}`;
|
|
380
380
|
if (p !== f || !/^sha384-[A-Za-z0-9+/]{64}$/.test(m))
|
|
381
381
|
throw new Error(
|
|
382
382
|
"Unsupported export preview resource; use an export matching the current Web Shell version."
|
|
@@ -80234,7 +80234,7 @@ function uG({ label: e }) {
|
|
|
80234
80234
|
function mft({ error: e }) {
|
|
80235
80235
|
return /* @__PURE__ */ s("div", { className: "text-sm text-destructive", children: e?.message });
|
|
80236
80236
|
}
|
|
80237
|
-
const gft = I3(async () => ({ default: (await import("./agents-route-
|
|
80237
|
+
const gft = I3(async () => ({ default: (await import("./agents-route-ZD8W2lTb.js")).AgentsRoute }));
|
|
80238
80238
|
function vft(e) {
|
|
80239
80239
|
return /* @__PURE__ */ s(N3, { fallback: null, children: /* @__PURE__ */ s(gft, { ...e }) });
|
|
80240
80240
|
}
|
|
@@ -116539,7 +116539,7 @@ function Yle(e) {
|
|
|
116539
116539
|
e instanceof Error ? e.message : String(e)
|
|
116540
116540
|
);
|
|
116541
116541
|
}
|
|
116542
|
-
const CPt = () => import("./WorkspaceFileBrowser-
|
|
116542
|
+
const CPt = () => import("./WorkspaceFileBrowser-DkQgnDFv.js").then((e) => ({ default: e.WorkspaceFileBrowser })).catch(Yle), xPt = () => import("./PierreFilePreview-CVi_Wsf-.js").catch(Yle), IPt = I3(() => import("./SpreadsheetPreview-CTyYrLmD.js")), NPt = 700, TPt = [
|
|
116543
116543
|
"daily",
|
|
116544
116544
|
"weekdays",
|
|
116545
116545
|
"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 n, D as t, a as o, b as r, c as i, g as u, d as S, i as l, e as c, s as g, f as p, u as d, h as A, j as E, k as P, l as m, m as T, n as h, o as v, p as D, q as M, r as b, t as _, v as W, w as k, x as L, y as N, z as O, B as C, C as F, E as w, F as G, G as R, H as f, I as H, J as I, K as x, L as B, M as U, N as y, O as J, P as V, Q as j, R as Q, S as K, T as q, U as z, V as X, W as Y } from "./useDaemonMidTurnInjected-B7dPEdqk.js";
|
|
5
5
|
import { DAEMON_APPROVAL_MODES as $ } from "@qwen-code/sdk/daemon";
|
|
6
|
-
import { a7 as as, a8 as es, a9 as ns, aa as ts, ab as os, ac as rs, ad as is, ae as us, af as Ss, ag as ls, ah as cs, ai as gs, aj as ps, ak as ds, al as As } from "./index-
|
|
6
|
+
import { a7 as as, a8 as es, a9 as ns, aa as ts, ab as os, ac as rs, ad as is, ae as us, af as Ss, ag as ls, ah as cs, ai as gs, aj as ps, ak as ds, al as As } from "./index-BGsppGgG.js";
|
|
7
7
|
import { h as Ps } from "./codeHighlighter-pfciSYNN.js";
|
|
8
8
|
export {
|
|
9
9
|
n 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.27.2
|
|
9
|
+
*/var r="0.27.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"}})}))}});
|