@qwen-code/web-shell 0.26.0-nightly.20261023.5a0be33432 → 0.26.1
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/README.md +1 -1
- package/dist/{PierreFilePreview-DoUYeaAC.js → PierreFilePreview-BSn2Dh41.js} +1 -1
- package/dist/{SpreadsheetPreview-Ozgw7gyf.js → SpreadsheetPreview-Cs6SPlHq.js} +2 -2
- package/dist/{WorkspaceFileBrowser-BKeFy6PK.js → WorkspaceFileBrowser-Du2JJJeH.js} +2 -2
- package/dist/{agents-route-D8D6jBvQ.js → agents-route-Dk7VmGeH.js} +2 -2
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/{index-BInj1IN7.js → index-C7o_tVb8.js} +43879 -43338
- package/dist/index.js +3 -3
- package/dist/sw.js +1 -1
- package/dist/transcript.js +177 -171
- package/dist/types/components/SessionPrBadge.d.ts +5 -3
- package/dist/types/components/managed/generated/managed-agent-api.d.ts +2 -2
- package/dist/types/components/messages/SettingsMessage.d.ts +7 -1
- package/dist/types/components/sidebar/RecentSessions.d.ts +23 -0
- package/dist/types/components/sidebar/StandaloneRecents.d.ts +1 -1
- package/dist/types/components/sidebar/WebShellSidebar.d.ts +5 -2
- package/dist/types/components/sidebar/WorkspaceMenu.d.ts +1 -0
- package/dist/types/settings.d.ts +3 -0
- package/dist/{useDaemonMidTurnInjected-BUXyeZuZ.js → useDaemonMidTurnInjected-DGp6d4J1.js} +18 -2
- package/package.json +1 -1
|
@@ -14,9 +14,11 @@ interface SessionPrBadgeProps {
|
|
|
14
14
|
tabIndex?: number;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* The bound PRs the badge can open
|
|
18
|
-
* a defense-in-depth measure
|
|
19
|
-
*
|
|
17
|
+
* The bound PRs the badge can open, in the order given. Bindings whose URL
|
|
18
|
+
* the external opener refuses are filtered out as a defense-in-depth measure
|
|
19
|
+
* on top of the daemon-side validators. Callers that lay out around the badge
|
|
20
|
+
* use this to know whether it renders, and the session details tooltip lists
|
|
21
|
+
* the same set.
|
|
20
22
|
*/
|
|
21
23
|
export declare function openableSessionPrs(prs: DaemonSessionPrInfo[]): DaemonSessionPrInfo[];
|
|
22
24
|
/**
|
|
@@ -525,7 +525,7 @@ export interface paths {
|
|
|
525
525
|
};
|
|
526
526
|
get?: never;
|
|
527
527
|
put?: never;
|
|
528
|
-
/** @description Change the execution approval policy of an eligible Workspace Session: built-in qwen-code or a stored AgentDefinition on exactly hosted-workspace-files/1 or hosted-workspace-shell/1. With liveSupported, execution policy changes affect subsequent current-Turn permission checks and permit eligible pending ordinary tool approvals. Otherwise the Session must be idle. Plan changes remain idle-only. Requires its recorded owner, current OPERATOR or OWNER access and Session-specific Harness feature support. Changes are revision-checked and actor/session-scoped idempotent. Definition creation policy and pins remain immutable. */
|
|
528
|
+
/** @description Change the execution approval policy of an eligible Workspace Session: built-in qwen-code or a stored AgentDefinition on exactly hosted-workspace-files/1, hosted-workspace-files/3 or hosted-workspace-shell/1. With liveSupported, execution policy changes affect subsequent current-Turn permission checks and permit eligible pending ordinary tool approvals. Otherwise the Session must be idle. Plan changes remain idle-only. Requires its recorded owner, current OPERATOR or OWNER access and Session-specific Harness feature support. Changes are revision-checked and actor/session-scoped idempotent. Definition creation policy and pins remain immutable. */
|
|
529
529
|
post: operations["changeWebShellSessionApproval"];
|
|
530
530
|
delete?: never;
|
|
531
531
|
options?: never;
|
|
@@ -1101,7 +1101,7 @@ export interface components {
|
|
|
1101
1101
|
foregroundShell?: boolean;
|
|
1102
1102
|
/** @description The caller may request an idle Session model change using the server model catalog. Missing means unsupported; authorization and revision admission still apply. */
|
|
1103
1103
|
modelChange?: boolean;
|
|
1104
|
-
/** @description The caller owns this eligible Workspace Session with current OPERATOR or OWNER access. Built-in qwen-code requires approval-selection/1; stored AgentDefinitions on exactly hosted-workspace-files/1 or hosted-workspace-shell/1 also require agent-definition-approval-selection/1. Idle-state admission is checked separately. Missing means false. */
|
|
1104
|
+
/** @description The caller owns this eligible Workspace Session with current OPERATOR or OWNER access. Built-in qwen-code requires approval-selection/1; stored AgentDefinitions on exactly hosted-workspace-files/1, hosted-workspace-files/3 or hosted-workspace-shell/1 also require agent-definition-approval-selection/1. Idle-state admission is checked separately. Missing means false. */
|
|
1105
1105
|
approvalModeChange?: boolean;
|
|
1106
1106
|
/** @description Optional deployment capability; missing means false. */
|
|
1107
1107
|
inputAttachments?: boolean;
|
|
@@ -10,6 +10,12 @@ interface SettingsMessageProps {
|
|
|
10
10
|
settingsState: SettingsMessageSettingsState;
|
|
11
11
|
presentation?: WebShellSettingsOptions;
|
|
12
12
|
onLanguageChange: (language: WebShellLanguage, scope: Scope) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Applies a model output language through `/language output`. Resolves to
|
|
15
|
+
* whether the value was applied, so a rejected commit can restore the saved
|
|
16
|
+
* value instead of leaving an unsaved draft on screen.
|
|
17
|
+
*/
|
|
18
|
+
onOutputLanguageChange: (language: string) => Promise<boolean> | boolean;
|
|
13
19
|
onSubDialog: (settingKey: string, scope: Scope) => void;
|
|
14
20
|
onThemeChange: (theme: WebShellTheme) => void;
|
|
15
21
|
chatWidthMode: ChatWidthMode;
|
|
@@ -45,5 +51,5 @@ export type FlatRow = {
|
|
|
45
51
|
localKey: 'chatWidth' | 'browserNotifications';
|
|
46
52
|
};
|
|
47
53
|
export declare function nextSettingIdx(rows: FlatRow[], current: number, dir: 1 | -1): number;
|
|
48
|
-
export declare function SettingsMessage({ settingsState, presentation, onLanguageChange, onSubDialog, onThemeChange, chatWidthMode, onChatWidthModeChange, modelManagementSectionProps, connections, embedded, initialCategory, }: SettingsMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export declare function SettingsMessage({ settingsState, presentation, onLanguageChange, onOutputLanguageChange, onSubDialog, onThemeChange, chatWidthMode, onChatWidthModeChange, modelManagementSectionProps, connections, embedded, initialCategory, }: SettingsMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
49
55
|
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { DaemonClient, DaemonSessionSummary, DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
|
|
3
|
+
export interface RecentSessionEntry {
|
|
4
|
+
session: DaemonSessionSummary;
|
|
5
|
+
workspaceCwd?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function sortRecentSessions(entries: RecentSessionEntry[]): RecentSessionEntry[];
|
|
8
|
+
interface RecentSessionsProps {
|
|
9
|
+
client: DaemonClient;
|
|
10
|
+
workspaces: DaemonWorkspaceCapability[];
|
|
11
|
+
includeStandalone: boolean;
|
|
12
|
+
sourceMetadataEnabled: boolean;
|
|
13
|
+
organizationEnabled: boolean;
|
|
14
|
+
currentSessionId?: string;
|
|
15
|
+
refreshKey: number;
|
|
16
|
+
refreshPaused?: boolean;
|
|
17
|
+
onNewSession: () => void;
|
|
18
|
+
newSessionDisabled: boolean;
|
|
19
|
+
renderSession: (entry: RecentSessionEntry) => ReactNode;
|
|
20
|
+
onVisibleRowsChange?: (keys: string) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function RecentSessions({ client, workspaces, includeStandalone, sourceMetadataEnabled, organizationEnabled, currentSessionId, refreshKey, refreshPaused, renderSession, onVisibleRowsChange, onNewSession, newSessionDisabled, }: RecentSessionsProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -18,7 +18,7 @@ interface StandaloneRecentsProps {
|
|
|
18
18
|
onUnarchive?: () => void;
|
|
19
19
|
onDelete: () => void;
|
|
20
20
|
}) => ReactNode;
|
|
21
|
-
onLoadSession: (sessionId: string) => Promise<void> | void;
|
|
21
|
+
onLoadSession: (sessionId: string, displayName?: string) => Promise<void> | void;
|
|
22
22
|
onRenameSession?: (sessionId: string, displayName: string) => void;
|
|
23
23
|
onMutated?: () => void;
|
|
24
24
|
onStatusChange?: (status: {
|
|
@@ -40,12 +40,15 @@ export interface WebShellSidebarSessionActionsOptions {
|
|
|
40
40
|
/** Session action items to show. Defaults to all. */
|
|
41
41
|
items?: readonly WebShellSidebarSessionActionItem[];
|
|
42
42
|
/**
|
|
43
|
-
* Which items appear as inline buttons (on hover).
|
|
43
|
+
* Which items appear as inline buttons on standard session rows (on hover).
|
|
44
|
+
* Defaults to ['pin'];
|
|
44
45
|
* archive stays in the dropdown so a stray click on the hover slot cannot
|
|
45
46
|
* archive a session.
|
|
46
47
|
* Only items that also pass their built-in visibility condition are rendered.
|
|
47
48
|
* Only items with working inline handlers are accepted
|
|
48
49
|
* (details/group/archive are dropdown-only).
|
|
50
|
+
* Recent sessions use dedicated Pin and Archive buttons instead of this
|
|
51
|
+
* layout; the items policy still controls whether those actions are enabled.
|
|
49
52
|
*/
|
|
50
53
|
inlineItems?: readonly WebShellSidebarSessionInlineActionItem[];
|
|
51
54
|
}
|
|
@@ -170,7 +173,7 @@ interface WebShellSidebarProps {
|
|
|
170
173
|
/** Start a new session that works in an isolated git worktree. */
|
|
171
174
|
onNewWorktreeSession?: (workspaceCwd?: string) => Promise<boolean> | boolean | void;
|
|
172
175
|
projectFeaturesEnabled?: boolean;
|
|
173
|
-
onLoadStandaloneSession?: (sessionId: string) => Promise<void> | void;
|
|
176
|
+
onLoadStandaloneSession?: (sessionId: string, displayName?: string) => Promise<void> | void;
|
|
174
177
|
onStandaloneNotice?: (message: string) => void;
|
|
175
178
|
}
|
|
176
179
|
export declare function WebShellSidebar({ collapsed, layout, activePage, containerWidth, onOpenHome, onCollapsedChange, onOpenSettings, onOpenAgents, onOpenPlugins, onOpenChannels, onOpenLive, onLiveVoiceSlotChange, onOpenManagedSessions, onOpenDaemonStatus, onOpenScheduledTasks, onOpenWorkflows, onOpenGoals, onOpenSessions, canOpenSessionsOverview, onOpenWorkspacesOverview, onOpenSplitView, canOpenSplitView, onNewSession, onNewStandaloneSession, onLoadSession, onOpenHostSession, onSelectCurrentSession, onSessionRenameConfirmed, onSessionsDeleted, onError, theme, onThemeChange, mobileOpen, onMobileClose, selectedWorkspaceCwd, onSelectWorkspace, onOpenGitDiff, onOpenCommit, onOpenAddWorkspace, workspaces: providedWorkspaces, lockedWorkspaceCwd, lockedWorkspace: lockedWorkspaceOptions, branding, primaryNav: primaryNavOptions, sessionContent, sessionHeader, managedWorkspaces, managedArchivedSessions, onSearchQueryChange, currentSessionActive, showSessionSourceSwitch, showLive, hideProjectHeader, sessionActions: sessionActionsOptions, footer, workspaceOverview, onOpenWorkspaceManagement, onNewWorktreeSession, projectFeaturesEnabled, onLoadStandaloneSession, onStandaloneNotice, }: WebShellSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -19,6 +19,7 @@ export interface WorkspaceMenuActions {
|
|
|
19
19
|
openTerminal?: () => void;
|
|
20
20
|
newSession?: () => void;
|
|
21
21
|
newWorktreeSession?: () => void;
|
|
22
|
+
createGroup?: () => void;
|
|
22
23
|
moveUp?: () => void;
|
|
23
24
|
moveDown?: () => void;
|
|
24
25
|
openManagement?: (target: WorkspaceManagementTarget) => void;
|
package/dist/types/settings.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** Stable presentation aliases; schema paths are private implementation details. */
|
|
2
|
+
export declare const OUTPUT_LANGUAGE_SETTING_KEY = "general.outputLanguage";
|
|
2
3
|
declare const SETTING_KEYS: {
|
|
3
4
|
readonly 'setting:auto-update': "general.enableAutoUpdate";
|
|
4
5
|
readonly 'setting:session-recap': "general.showSessionRecap";
|
|
@@ -7,6 +8,7 @@ declare const SETTING_KEYS: {
|
|
|
7
8
|
readonly 'setting:git-commit-co-author': "general.gitCoAuthor.commit";
|
|
8
9
|
readonly 'setting:git-pr-co-author': "general.gitCoAuthor.pr";
|
|
9
10
|
readonly 'setting:language': "general.language";
|
|
11
|
+
readonly 'setting:output-language': "general.outputLanguage";
|
|
10
12
|
readonly 'setting:prevent-system-sleep': "general.preventSystemSleep";
|
|
11
13
|
readonly 'setting:review-attribution': "review.attribution";
|
|
12
14
|
readonly 'setting:review-sandbox': "review.sandbox";
|
|
@@ -48,6 +50,7 @@ declare const SETTING_KEYS: {
|
|
|
48
50
|
readonly 'setting:workflow-size': "tools.workflowSizeGuideline";
|
|
49
51
|
readonly 'setting:workflow-name-only': "tools.workflowNameOnly";
|
|
50
52
|
readonly 'setting:permission-strategy': "policy.permissionStrategy";
|
|
53
|
+
readonly 'setting:max-sessions': "serve.maxSessions";
|
|
51
54
|
readonly 'setting:model-proposed-goals': "goals.modelProposed";
|
|
52
55
|
readonly 'setting:arena-artifacts': "agents.arena.preserveArtifacts";
|
|
53
56
|
readonly 'setting:session-workflow': "experimental.sessionWorkflow";
|
|
@@ -4615,6 +4615,10 @@ const uu = {
|
|
|
4615
4615
|
* SPDX-License-Identifier: Apache-2.0
|
|
4616
4616
|
*/
|
|
4617
4617
|
const mu = {
|
|
4618
|
+
"settings.label.general.outputLanguage": "Language: Model output",
|
|
4619
|
+
"settings.description.general.outputLanguage": "Language the model replies in. Leave empty to follow your input language (auto). Changes rewrite the session’s output-language.md and apply to the running session.",
|
|
4620
|
+
"settings.placeholder.general.outputLanguage": "auto (follow input)",
|
|
4621
|
+
"settings.option.general.outputLanguage.useCustom": (e) => `Use "${e?.value ?? ""}"`,
|
|
4618
4622
|
"settings.label.ui.accessibility.enableLoadingPhrases": "Enable Loading Phrases",
|
|
4619
4623
|
"settings.description.ui.accessibility.enableLoadingPhrases": "Show rotating loading phrases. Turn off to hide both built-in and host-provided phrases.",
|
|
4620
4624
|
"settings.label.experimental.generatedUi": "Generated UI",
|
|
@@ -4788,6 +4792,10 @@ const mu = {
|
|
|
4788
4792
|
"settings.description.general.gitCoAuthor.pr": "运行 gh pr create 时,在 PR 描述中追加 Qwen Code 归因行。",
|
|
4789
4793
|
"settings.label.general.language": "语言:界面",
|
|
4790
4794
|
"settings.description.general.language": "用户界面的语言。使用 auto 可根据系统设置自动检测;也可以在 ~/.qwen/locales/ 中放置 JS 语言文件来使用自定义语言代码。",
|
|
4795
|
+
"settings.label.general.outputLanguage": "语言:模型输出",
|
|
4796
|
+
"settings.description.general.outputLanguage": "模型回复使用的语言。留空表示自动跟随你的输入语言(auto)。修改会重写当前会话读取的 output-language.md,并立即作用于当前会话。",
|
|
4797
|
+
"settings.placeholder.general.outputLanguage": "自动(跟随输入)",
|
|
4798
|
+
"settings.option.general.outputLanguage.useCustom": (e) => `使用“${e?.value ?? ""}”`,
|
|
4791
4799
|
"settings.label.general.preventSystemSleep": "运行时防止系统睡眠",
|
|
4792
4800
|
"settings.description.general.preventSystemSleep": "当 Qwen Code 正在流式生成模型回复或执行工具时防止系统睡眠。空闲输入状态和权限确认状态不会阻止睡眠。",
|
|
4793
4801
|
"settings.label.review.attribution": "归因:review",
|
|
@@ -4905,6 +4913,8 @@ const mu = {
|
|
|
4905
4913
|
"settings.option.policy.permissionStrategy.designated": "指定发起方",
|
|
4906
4914
|
"settings.option.policy.permissionStrategy.consensus": "共识法定人数",
|
|
4907
4915
|
"settings.option.policy.permissionStrategy.local-only": "仅本机",
|
|
4916
|
+
"settings.label.serve.maxSessions": "最大并发会话数",
|
|
4917
|
+
"settings.description.serve.maxSessions": "单个工作区同时存活的会话数上限;超出的新会话请求返回 503,接入已有会话不受影响。设为 0 表示不限制。仅在用户、系统、系统默认作用域生效;传入 qwen serve --max-sessions 时以命令行参数为准。修改后需要重启 daemon。",
|
|
4908
4918
|
"settings.label.experimental.cron": "启用 Cron/Loop 工具",
|
|
4909
4919
|
"settings.description.experimental.cron": "启用会话内 cron/loop 工具。启用后,模型可以用 cron_create、cron_list 和 cron_delete 创建周期性提示。也可通过 QWEN_CODE_DISABLE_CRON=1 环境变量禁用。",
|
|
4910
4920
|
"settings.label.experimental.sessionWorkflow": "Session Workflow 计划并审阅",
|
|
@@ -6833,6 +6843,8 @@ const ku = {
|
|
|
6833
6843
|
"sidebar.liveVoicePending": "Voice chat",
|
|
6834
6844
|
"sidebar.project": "Project",
|
|
6835
6845
|
"sidebar.pinnedSessions": "Pinned",
|
|
6846
|
+
"sidebar.recentSessions": "Recent sessions",
|
|
6847
|
+
"sidebar.standalonePinUnavailable": "Pinning no-workspace sessions is not supported yet.",
|
|
6836
6848
|
"sidebar.workspaceSelectLabel": "Workspace",
|
|
6837
6849
|
"sidebar.noWorkspace": "No workspace",
|
|
6838
6850
|
"sidebar.noWorkspaceSessions": "No-workspace sessions",
|
|
@@ -7218,7 +7230,7 @@ const ku = {
|
|
|
7218
7230
|
"language.invalid": "Invalid language. Available: en, zh-CN",
|
|
7219
7231
|
"language.options": "Available options:",
|
|
7220
7232
|
"language.set": "Set UI language",
|
|
7221
|
-
"language.usage": "Usage: /language ui [en|zh-CN]",
|
|
7233
|
+
"language.usage": "Usage: /language ui [en|zh-CN] | output <language>",
|
|
7222
7234
|
"localCommand.noSession": "No active session yet. Send your first message before using this command.",
|
|
7223
7235
|
"localCommand.diffNoWorkspace": "No workspace is available yet to show changes for.",
|
|
7224
7236
|
"localCommand.logNoWorkspace": "No workspace is available yet to show history for.",
|
|
@@ -7247,6 +7259,7 @@ const ku = {
|
|
|
7247
7259
|
"local.remember": "Save a durable memory to the memory system",
|
|
7248
7260
|
"local.summary": "Generate a project summary file",
|
|
7249
7261
|
"local.workflows": "List workflow runs or cooperatively pause/resume a live run",
|
|
7262
|
+
"skilldesc.autofixPr": "Watch a pull request and fix its CI, review feedback and conflicts",
|
|
7250
7263
|
"skilldesc.batch": "Run batch operations across many files in parallel",
|
|
7251
7264
|
"skilldesc.dataviz": "Design guidance for charts and data visualizations",
|
|
7252
7265
|
"skilldesc.extensionCreator": "Create, test, and customize Qwen Code extensions",
|
|
@@ -10590,6 +10603,8 @@ const ku = {
|
|
|
10590
10603
|
"sidebar.liveVoicePending": "Voice chat",
|
|
10591
10604
|
"sidebar.project": "项目",
|
|
10592
10605
|
"sidebar.pinnedSessions": "置顶",
|
|
10606
|
+
"sidebar.recentSessions": "最近会话",
|
|
10607
|
+
"sidebar.standalonePinUnavailable": "暂不支持置顶无工作区会话。",
|
|
10593
10608
|
"sidebar.workspaceSelectLabel": "工作区",
|
|
10594
10609
|
"sidebar.noWorkspace": "无工作区",
|
|
10595
10610
|
"sidebar.noWorkspaceSessions": "无工作区会话",
|
|
@@ -10972,7 +10987,7 @@ const ku = {
|
|
|
10972
10987
|
"language.invalid": "语言无效。可用值:en, zh-CN",
|
|
10973
10988
|
"language.options": "可用选项:",
|
|
10974
10989
|
"language.set": "设置 UI 语言",
|
|
10975
|
-
"language.usage": "用法:/language ui [en|zh-CN]",
|
|
10990
|
+
"language.usage": "用法:/language ui [en|zh-CN] | output <language>",
|
|
10976
10991
|
"localCommand.noSession": "当前还没有会话。请先发送第一条消息,再使用这个命令。",
|
|
10977
10992
|
"localCommand.diffNoWorkspace": "当前还没有可用于查看变更的工作区。",
|
|
10978
10993
|
"localCommand.logNoWorkspace": "当前还没有可用于查看历史的工作区。",
|
|
@@ -11001,6 +11016,7 @@ const ku = {
|
|
|
11001
11016
|
"local.remember": "将持久记忆保存到记忆系统",
|
|
11002
11017
|
"local.summary": "生成项目摘要文件",
|
|
11003
11018
|
"local.workflows": "列出工作流运行,或协作式暂停/恢复运行中的任务",
|
|
11019
|
+
"skilldesc.autofixPr": "盯住一个 PR,修复其 CI、评审意见和冲突",
|
|
11004
11020
|
"skilldesc.batch": "并行批量处理多个文件",
|
|
11005
11021
|
"skilldesc.dataviz": "图表与数据可视化设计指南",
|
|
11006
11022
|
"skilldesc.extensionCreator": "创建、测试和定制 Qwen Code 扩展",
|