@qwen-code/web-shell 0.29.0-preview.0 → 0.29.0

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-D4vi6zJI.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-BkNSRmEr.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 { ai as z2 } from "./useDaemonMidTurnInjected-BItW6Ibf.js";
19
- import { e as DW, B as pn } from "./index-D4vi6zJI.js";
19
+ import { e as DW, B as pn } from "./index-BkNSRmEr.js";
20
20
  var r2 = {
21
21
  /***/
22
22
  463(b) {
@@ -3,7 +3,7 @@ import { ai as ee, aj as Je, ak as bt, al 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-D4vi6zJI.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-BkNSRmEr.js";
7
7
  const St = /^[A-Za-z0-9_-]{1,256}$/;
8
8
  function qt(a) {
9
9
  let r;
@@ -533,7 +533,7 @@ async function Sye(e, t, n) {
533
533
  ].map(async ([a, c, l, d]) => {
534
534
  const u = r.querySelector(a), f = u?.getAttribute(c) ?? "", m = u?.getAttribute("integrity") ?? "";
535
535
  if (!u) return;
536
- const h = `https://unpkg.com/@qwen-code/qwen-code@0.29.0-preview.0/export-transcript-document.${l}`;
536
+ const h = `https://unpkg.com/@qwen-code/qwen-code@0.29.0/export-transcript-document.${l}`;
537
537
  if (f !== h || !/^sha384-[A-Za-z0-9+/]{64}$/.test(m))
538
538
  throw new Error(
539
539
  "Unsupported export preview resource; use an export matching the current Web Shell version."
@@ -91248,7 +91248,7 @@ function GQ({ label: e }) {
91248
91248
  function Syt({ error: e }) {
91249
91249
  return /* @__PURE__ */ s("div", { className: "text-sm text-destructive", children: e?.message });
91250
91250
  }
91251
- const Cyt = oN(async () => ({ default: (await import("./agents-route-C5I-mPuv.js")).AgentsRoute }));
91251
+ const Cyt = oN(async () => ({ default: (await import("./agents-route-CJd4n--m.js")).AgentsRoute }));
91252
91252
  function xyt(e) {
91253
91253
  return /* @__PURE__ */ s(iN, { fallback: null, children: /* @__PURE__ */ s(Cyt, { ...e }) });
91254
91254
  }
@@ -120204,8 +120204,8 @@ function nue(e) {
120204
120204
  e instanceof Error ? e.message : String(e)
120205
120205
  );
120206
120206
  }
120207
- const $Dt = () => import("./WorkspaceFileBrowser-Ceci_Ofu.js").then((e) => ({ default: e.WorkspaceFileBrowser })).catch(nue), DDt = () => import("./PierreFilePreview-DNzgLsKu.js").catch(nue), ODt = oN(() => import("./SpreadsheetPreview-B0lqDTmC.js")), BDt = oN(
120208
- () => import("./WorkspacePdfRangePreview-BQY92M0Z.js")
120207
+ const $Dt = () => import("./WorkspaceFileBrowser-DzMtvhcc.js").then((e) => ({ default: e.WorkspaceFileBrowser })).catch(nue), DDt = () => import("./PierreFilePreview-DWbHmHOS.js").catch(nue), ODt = oN(() => import("./SpreadsheetPreview-B08CpKHj.js")), BDt = oN(
120208
+ () => import("./WorkspacePdfRangePreview-CAkjyk-W.js")
120209
120209
  ), FDt = 700, WDt = 4 * 1024 * 1024, zDt = [
120210
120210
  "daily",
120211
120211
  "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-BItW6Ibf.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-D4vi6zJI.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-BkNSRmEr.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.29.0-preview.0",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.29.0",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.29.0-preview.0",
3
+ "version": "0.29.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/QwenLM/qwen-code.git",