@qwen-code/web-shell 0.28.1-preview.1 → 0.28.3

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.
@@ -6,7 +6,7 @@ var Qu = (e, t, n) => t in e ? Xu(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-ChVhTKLB.js";
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-ChjMzQ_r.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";
@@ -16,7 +16,7 @@ var NA = (b, A, I, s) => ({
16
16
  import { jsxs as ta, jsx as vt } from "react/jsx-runtime";
17
17
  import { useRef as F2, useState as Ig, useEffect as JW } from "react";
18
18
  import { ag as z2 } from "./useDaemonMidTurnInjected-BjQ9zxRv.js";
19
- import { e as DW, B as pn } from "./index-ChVhTKLB.js";
19
+ import { e as DW, B as pn } from "./index-ChjMzQ_r.js";
20
20
  var r2 = {
21
21
  /***/
22
22
  463(b) {
@@ -3,7 +3,7 @@ import { ag as ee, ah as Je, ai as bt, aj as pt, U as gt, n as xt } from "./useD
3
3
  import { useState as x, useMemo as de, useRef as me, useEffect as pe, useId as vt, useCallback as Re } from "react";
4
4
  import "@qwen-code/sdk/daemon";
5
5
  import { CheckCircle2 as Me, LoaderCircle as Ke, CopyIcon as Ge, UsersIcon as Ve, MoreHorizontalIcon as Qe, PlusIcon as ke, ServerIcon as wt } from "lucide-react";
6
- import { D as Ze, f as Xe, g as Ye, h as et, i as tt, j as be, p as Ce, I as ce, k as nt, B as y, w as at, l as ot, C as Ae, m as rt, n as Ie, o as lt, q as it, s as st, t as ct, v as ue, x as dt, E as Le, y as He, z as je, A as Te, F as De, G as Nt, H as kt, J as Ct, K as Oe, L as _t, M as Rt } from "./index-ChVhTKLB.js";
6
+ import { D as Ze, f as Xe, g as Ye, h as et, i as tt, j as be, p as Ce, I as ce, k as nt, B as y, w as at, l as ot, C as Ae, m as rt, n as Ie, o as lt, q as it, s as st, t as ct, v as ue, x as dt, E as Le, y as He, z as je, A as Te, F as De, G as Nt, H as kt, J as Ct, K as Oe, L as _t, M as Rt } from "./index-ChjMzQ_r.js";
7
7
  const St = /^[A-Za-z0-9_-]{1,256}$/;
8
8
  function qt(a) {
9
9
  let r;
@@ -395,7 +395,7 @@ async function qge(e, t, n) {
395
395
  ].map(async ([a, c, l, d]) => {
396
396
  const p = r.querySelector(a), f = p?.getAttribute(c) ?? "", h = p?.getAttribute("integrity") ?? "";
397
397
  if (!p) return;
398
- const m = `https://unpkg.com/@qwen-code/qwen-code@0.28.1-preview.1/export-transcript-document.${l}`;
398
+ const m = `https://unpkg.com/@qwen-code/qwen-code@0.28.3/export-transcript-document.${l}`;
399
399
  if (f !== m || !/^sha384-[A-Za-z0-9+/]{64}$/.test(h))
400
400
  throw new Error(
401
401
  "Unsupported export preview resource; use an export matching the current Web Shell version."
@@ -86687,7 +86687,7 @@ function dK({ label: e }) {
86687
86687
  function Umt({ error: e }) {
86688
86688
  return /* @__PURE__ */ s("div", { className: "text-sm text-destructive", children: e?.message });
86689
86689
  }
86690
- const Hmt = kx(async () => ({ default: (await import("./agents-route-Dbjm9Y2P.js")).AgentsRoute }));
86690
+ const Hmt = kx(async () => ({ default: (await import("./agents-route-D1nhKzzl.js")).AgentsRoute }));
86691
86691
  function jmt(e) {
86692
86692
  return /* @__PURE__ */ s(_x, { fallback: null, children: /* @__PURE__ */ s(Hmt, { ...e }) });
86693
86693
  }
@@ -115947,8 +115947,8 @@ function Bae(e) {
115947
115947
  e instanceof Error ? e.message : String(e)
115948
115948
  );
115949
115949
  }
115950
- const m9t = () => import("./WorkspaceFileBrowser-1GbG0WLt.js").then((e) => ({ default: e.WorkspaceFileBrowser })).catch(Bae), h9t = () => import("./PierreFilePreview-CsARQefS.js").catch(Bae), g9t = kx(() => import("./SpreadsheetPreview-D3YGKe0n.js")), v9t = kx(
115951
- () => import("./WorkspacePdfRangePreview-it3G4-Se.js")
115950
+ const m9t = () => import("./WorkspaceFileBrowser-DQ_nK8CO.js").then((e) => ({ default: e.WorkspaceFileBrowser })).catch(Bae), h9t = () => import("./PierreFilePreview-CxOZ1g2v.js").catch(Bae), g9t = kx(() => import("./SpreadsheetPreview--Hpv2uJo.js")), v9t = kx(
115951
+ () => import("./WorkspacePdfRangePreview-B9zOI3Db.js")
115952
115952
  ), w9t = 700, y9t = 4 * 1024 * 1024, b9t = [
115953
115953
  "daily",
115954
115954
  "weekdays",
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-BjQ9zxRv.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-ChVhTKLB.js";
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-ChjMzQ_r.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.28.1-preview.1",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"}})}))}});
9
+ */var r="0.28.3",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"}})}))}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/web-shell",
3
- "version": "0.28.1-preview.1",
3
+ "version": "0.28.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/QwenLM/qwen-code.git",