@qwen-code/web-shell 0.24.3-nightly.20260922.c5920f479b → 0.24.4
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/daemon-react-sdk.js +1 -1
- package/dist/index.js +29080 -28828
- package/dist/sw.js +1 -1
- package/dist/{toolNames-CUaha9-B.js → toolNames-Cnaa5VCB.js} +20 -8
- package/dist/transcript.js +2426 -2397
- package/dist/types/adapters/types.d.ts +4 -1
- package/dist/types/components/StandaloneAuth.d.ts +2 -1
- package/dist/types/components/local-control-api.d.ts +3 -1
- package/dist/types/components/messages/ToolGroup.d.ts +0 -1
- package/dist/types/config/pairing.d.ts +9 -0
- package/dist/types/config/remote-workspace-add.d.ts +25 -0
- package/dist/types/customization.d.ts +2 -0
- package/dist/types/daemon/session/session-context.d.ts +11 -0
- package/dist/types/utils/unifiedDiff.d.ts +1 -0
- package/dist/types/utils/workspace.d.ts +3 -2
- package/package.json +1 -1
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.24.
|
|
9
|
+
*/var r="0.24.4",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="">Try again / <span lang="zh-CN">重试</span></a></body></html>',{status:503,headers:{"Content-Type":"text/html; charset=utf-8","Cache-Control":"no-store"}})}))}});
|
|
@@ -724,10 +724,6 @@ function Rr(e, t, o) {
|
|
|
724
724
|
) ?? o;
|
|
725
725
|
}
|
|
726
726
|
function Fl(e) {
|
|
727
|
-
if (!Array.isArray(e.features) || !e.features.includes("multi_workspace_sessions"))
|
|
728
|
-
throw new Error(
|
|
729
|
-
"Daemon does not advertise multi-workspace session routing"
|
|
730
|
-
);
|
|
731
727
|
const t = Array.isArray(e.workspaces) ? e.workspaces : [], o = t.filter(
|
|
732
728
|
(a) => a.kind === "live"
|
|
733
729
|
);
|
|
@@ -4600,8 +4596,8 @@ const Wa = {
|
|
|
4600
4596
|
"sidebar.addWorkspaceBusyError": "Another workspace operation is in progress",
|
|
4601
4597
|
"sidebar.addWorkspacePersistenceError": "The daemon did not confirm persistent workspace registration",
|
|
4602
4598
|
"sidebar.addWorkspaceRefreshError": "Workspace added, but the workspace list could not be refreshed",
|
|
4603
|
-
"sidebar.addWorkspaceAbsError": "
|
|
4604
|
-
"sidebar.addWorkspaceHint": "Enter
|
|
4599
|
+
"sidebar.addWorkspaceAbsError": "Enter an absolute path or an SSH workspace URL.",
|
|
4600
|
+
"sidebar.addWorkspaceHint": "Enter a local absolute path or ssh://user@host/absolute/project. SSH requires key authentication, a trusted host key and Python 3 on the remote computer. Shell commands also require Bash; Qwen is not required there.",
|
|
4605
4601
|
"sidebar.addWorkspaceSuggestions": "Directory suggestions",
|
|
4606
4602
|
"sidebar.addWorkspacePersist": "Keep after daemon restart",
|
|
4607
4603
|
"sidebar.addWorkspacePersistHint": "Persist this workspace registration in the daemon configuration.",
|
|
@@ -6430,6 +6426,14 @@ const Wa = {
|
|
|
6430
6426
|
"settings.localControl.maySleep": "This Mac may sleep",
|
|
6431
6427
|
"settings.localControl.urlRedacted": "The pairing URL is not shown here because this daemon has no bearer token. It was printed to the terminal where the daemon is running — pair from there.",
|
|
6432
6428
|
"localControl.open": "Mobile access",
|
|
6429
|
+
"localControl.expires": (e) => `One-time QR · Expires in ${e?.seconds ?? ""}s · Refreshes automatically`,
|
|
6430
|
+
"localControl.expired": "QR code expired. Getting a fresh code…",
|
|
6431
|
+
"localControl.retry": "Retry",
|
|
6432
|
+
"localControl.noNetwork": "No local network address is available. Open the Web Shell through an address your phone can reach.",
|
|
6433
|
+
"localControl.securePairing": "Scan to grant access until this daemon restarts.",
|
|
6434
|
+
"localControl.insecurePairing": "Scan to grant access until this daemon restarts. Traffic is unencrypted; use a trusted network.",
|
|
6435
|
+
"localControl.securePairingDynamic": "Scan to grant access to this daemon. The device that scans stays signed in until the daemon restarts or that device's tab is closed.",
|
|
6436
|
+
"localControl.insecurePairingDynamic": "Scan to grant access to this daemon. The device that scans stays signed in until the daemon restarts or that device's tab is closed. Traffic is unencrypted; use a trusted network.",
|
|
6433
6437
|
"localControl.disabledHint": "Local Control is off. Turn it on in Settings to pair a phone on the same network.",
|
|
6434
6438
|
"localControl.openSettings": "Open Settings",
|
|
6435
6439
|
"settings.models.title": "Models",
|
|
@@ -7971,8 +7975,8 @@ const Wa = {
|
|
|
7971
7975
|
"sidebar.addWorkspaceBusyError": "另一个工作区操作正在进行中",
|
|
7972
7976
|
"sidebar.addWorkspacePersistenceError": "守护进程未确认工作区已持久化注册",
|
|
7973
7977
|
"sidebar.addWorkspaceRefreshError": "工作区已添加,但无法刷新工作区列表",
|
|
7974
|
-
"sidebar.addWorkspaceAbsError": "
|
|
7975
|
-
"sidebar.addWorkspaceHint": "
|
|
7978
|
+
"sidebar.addWorkspaceAbsError": "请输入绝对路径或 SSH 工作区地址。",
|
|
7979
|
+
"sidebar.addWorkspaceHint": "请输入本地绝对路径或 ssh://user@host/absolute/project。SSH 需要密钥认证、已确认的主机密钥,以及远端 Python 3。Shell 命令还需要 Bash;远端无需安装 Qwen。",
|
|
7976
7980
|
"sidebar.addWorkspaceSuggestions": "目录建议",
|
|
7977
7981
|
"sidebar.addWorkspacePersist": "服务重启后保留",
|
|
7978
7982
|
"sidebar.addWorkspacePersistHint": "将此工作区注册持久化到守护进程配置中。",
|
|
@@ -9788,6 +9792,14 @@ const Wa = {
|
|
|
9788
9792
|
"settings.localControl.maySleep": "这台 Mac 可能进入睡眠",
|
|
9789
9793
|
"settings.localControl.urlRedacted": "由于该守护进程未配置 bearer token,配对 URL 不在此显示。它已打印到运行守护进程的终端,请到该终端获取配对 URL 完成配对。",
|
|
9790
9794
|
"localControl.open": "手机访问",
|
|
9795
|
+
"localControl.expires": (e) => `一次性二维码 · ${e?.seconds ?? ""} 秒后过期 · 自动刷新`,
|
|
9796
|
+
"localControl.expired": "二维码已过期,正在获取新码…",
|
|
9797
|
+
"localControl.retry": "重试",
|
|
9798
|
+
"localControl.noNetwork": "没有可用的局域网地址。请通过手机可访问的地址打开 Web Shell。",
|
|
9799
|
+
"localControl.securePairing": "扫码将授予访问权限,直到 daemon 重启。",
|
|
9800
|
+
"localControl.insecurePairing": "扫码将授予访问权限,直到 daemon 重启。流量未加密,请使用受信任网络。",
|
|
9801
|
+
"localControl.securePairingDynamic": "扫码将授予此 daemon 的访问权限。扫码的设备保持登录,直到 daemon 重启或该设备上的标签页关闭。",
|
|
9802
|
+
"localControl.insecurePairingDynamic": "扫码将授予此 daemon 的访问权限。扫码的设备保持登录,直到 daemon 重启或该设备上的标签页关闭。流量未加密,请使用受信任网络。",
|
|
9791
9803
|
"localControl.disabledHint": "本地控制未开启。请在设置中开启后,配对同一网络下的手机。",
|
|
9792
9804
|
"localControl.openSettings": "打开设置",
|
|
9793
9805
|
"settings.models.title": "模型",
|