@qwen-code/web-shell 0.24.7-nightly.20261004.9915c7ff8f → 0.25.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.
- package/README.md +45 -2
- package/dist/{ThreadsRoute-DIZyi2qi.js → ThreadsRoute-CtecWS_K.js} +2 -2
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/{index-B623DgwE.js → index-tVJkU24-.js} +47784 -47319
- package/dist/index.js +3 -3
- package/dist/sw.js +1 -1
- package/dist/{toolNames-BofSebCU.js → toolNames-CAeFJ9L9.js} +119 -93
- package/dist/transcript.js +142 -128
- package/dist/types/App.d.ts +2 -2
- package/dist/types/components/ChatEditor.d.ts +1 -0
- package/dist/types/components/DesktopRelayControl.d.ts +2 -1
- package/dist/types/components/LocalFilesControl.d.ts +3 -1
- package/dist/types/components/channels/ChannelsManagerPage.d.ts +1 -1
- package/dist/types/components/managed/generated/managed-agent-api.d.ts +55 -8
- package/dist/types/components/sidebar/UpdateControl.d.ts +3 -1
- package/dist/types/components/sidebar/WebShellSidebar.d.ts +15 -5
- package/dist/types/components/sidebar/WorkspaceSection.d.ts +2 -1
- package/dist/types/live/LiveVoiceButton.d.ts +2 -1
- package/dist/types/navigation.d.ts +1 -0
- package/dist/types/utils/navigationUrl.d.ts +1 -1
- package/package.json +1 -1
|
@@ -751,7 +751,7 @@ function Wi(e) {
|
|
|
751
751
|
if (!(typeof e != "object" || e === null || !("body" in e) || typeof e.body != "object" || e.body === null || Array.isArray(e.body)))
|
|
752
752
|
return e.body;
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function Ho(e) {
|
|
755
755
|
const t = Wi(e)?.code;
|
|
756
756
|
return typeof t == "string" ? t : void 0;
|
|
757
757
|
}
|
|
@@ -901,7 +901,7 @@ function Kc({
|
|
|
901
901
|
onPromptRemoved: st
|
|
902
902
|
}) {
|
|
903
903
|
const Re = /* @__PURE__ */ new Set();
|
|
904
|
-
let Ht = t.current, Eo = 0, it = 0, Ye = 0, Gt, vo = !1,
|
|
904
|
+
let Ht = t.current, Eo = 0, it = 0, Ye = 0, Gt, vo = !1, Vo = t.current?.client, $o = t.current?.sessionId, Je = t.current?.clientId;
|
|
905
905
|
async function Pt(c) {
|
|
906
906
|
const d = Xn(
|
|
907
907
|
i,
|
|
@@ -919,7 +919,7 @@ function Kc({
|
|
|
919
919
|
);
|
|
920
920
|
}
|
|
921
921
|
function ee(c, d) {
|
|
922
|
-
const p =
|
|
922
|
+
const p = Ho(d);
|
|
923
923
|
p !== "working_directory_missing" && p !== "working_directory_compromised" || ke(
|
|
924
924
|
(T) => T.sessionId === c && T.sessionContext?.kind === "standalone" ? {
|
|
925
925
|
...T,
|
|
@@ -1083,7 +1083,7 @@ function Kc({
|
|
|
1083
1083
|
b = b.filter((C, F) => {
|
|
1084
1084
|
const _ = w[F];
|
|
1085
1085
|
if (_?.status !== "rejected") return !1;
|
|
1086
|
-
const D =
|
|
1086
|
+
const D = Ho(_.reason);
|
|
1087
1087
|
return D !== "source_limit_reached" && D !== "invalid_source" && D !== "source_attachment_not_found";
|
|
1088
1088
|
}), !(t.current !== c || !b.length) && vt(c)({
|
|
1089
1089
|
severity: "warning",
|
|
@@ -1213,7 +1213,7 @@ function Kc({
|
|
|
1213
1213
|
errorStatus: jt(re),
|
|
1214
1214
|
standaloneSession: F?.kind === "standalone" ? {
|
|
1215
1215
|
...he.standaloneSession,
|
|
1216
|
-
errorCode:
|
|
1216
|
+
errorCode: Ho(re)
|
|
1217
1217
|
} : void 0,
|
|
1218
1218
|
loadingTranscript: void 0,
|
|
1219
1219
|
catchingUp: void 0
|
|
@@ -1951,7 +1951,7 @@ function Kc({
|
|
|
1951
1951
|
workspaceCwd: void 0,
|
|
1952
1952
|
standaloneSession: {
|
|
1953
1953
|
creationRecovery: k.recovery,
|
|
1954
|
-
errorCode:
|
|
1954
|
+
errorCode: Ho(k.originalError)
|
|
1955
1955
|
},
|
|
1956
1956
|
error: k.message,
|
|
1957
1957
|
errorStatus: jt(k.originalError),
|
|
@@ -2280,7 +2280,7 @@ function Kc({
|
|
|
2280
2280
|
if (d?.sessionId && d.sessionId !== p.sessionId)
|
|
2281
2281
|
throw new Error("Attachment session changed");
|
|
2282
2282
|
const T = c.mimeType ?? c.mediaType ?? c.media_type ?? ("name" in c ? "application/octet-stream" : "image/*");
|
|
2283
|
-
return
|
|
2283
|
+
return Vo = p.client, $o = p.sessionId, Je = p.clientId, "name" in c ? await p.uploadAttachment(
|
|
2284
2284
|
c.data ?? new Blob([c.text ?? ""], { type: T }),
|
|
2285
2285
|
c.name,
|
|
2286
2286
|
T,
|
|
@@ -2306,7 +2306,7 @@ function Kc({
|
|
|
2306
2306
|
return await c.listAttachments();
|
|
2307
2307
|
},
|
|
2308
2308
|
async removeAttachment(c, d) {
|
|
2309
|
-
const p = t.current, T = d?.sessionId ?? p?.sessionId, u = p?.client ??
|
|
2309
|
+
const p = t.current, T = d?.sessionId ?? p?.sessionId, u = p?.client ?? Vo;
|
|
2310
2310
|
if (!T || !u)
|
|
2311
2311
|
throw Se(
|
|
2312
2312
|
M,
|
|
@@ -3020,13 +3020,15 @@ const rd = {
|
|
|
3020
3020
|
"settings.liveSetup.apiKey": "DashScope Realtime API key",
|
|
3021
3021
|
"settings.liveSetup.apiKeyPlaceholder": "Enter a DashScope API key",
|
|
3022
3022
|
"settings.liveSetup.apiKeyReplace": "Enter a new key to replace it",
|
|
3023
|
+
"settings.liveSetup.keyFromModel": "The selected model uses the API key from its model provider configuration.",
|
|
3023
3024
|
"settings.liveSetup.keyFromEnv": (e) => `Read from the ${e?.env ?? ""} environment variable of the selected model.`,
|
|
3024
3025
|
"settings.liveSetup.keyFromEnvMissing": (e) => `The selected model reads its key from ${e?.env ?? ""}, which is not set in the daemon's environment.`,
|
|
3025
3026
|
"settings.liveSetup.model": "Realtime model",
|
|
3026
3027
|
"settings.liveSetup.modelHint": "Pick “Other model id…” to use any Realtime model.",
|
|
3027
3028
|
"settings.liveSetup.modelCustom": "Other model id…",
|
|
3028
3029
|
"settings.liveSetup.endpoint": "Realtime endpoint",
|
|
3029
|
-
"settings.liveSetup.
|
|
3030
|
+
"settings.liveSetup.endpointUnchanged": "Unchanged — keep the saved endpoint",
|
|
3031
|
+
"settings.liveSetup.endpointHint": "The OpenAI-compatible base URL of your key’s region or dedicated domain. Clear the field to use the default (Beijing).",
|
|
3030
3032
|
"settings.liveSetup.endpointFromRoute": "Follows the base URL of the selected model's modelProviders route.",
|
|
3031
3033
|
"settings.liveSetup.voice": "Voice",
|
|
3032
3034
|
"settings.liveSetup.voiceHint": "A voice name of the selected model. It is checked with the provider when Live Voice is on.",
|
|
@@ -3058,6 +3060,10 @@ const rd = {
|
|
|
3058
3060
|
"settings.liveSetup.install.error": "Setup needs attention",
|
|
3059
3061
|
"settings.liveSetup.confirmTitle": "Enable experimental Qwen Live?",
|
|
3060
3062
|
"settings.liveSetup.confirmDescription": "Qwen Code will download, verify, install, and open the signed Qwen Live Host app. macOS will then ask you to grant Microphone, Accessibility, and Screen Recording access.",
|
|
3063
|
+
"settings.liveSetup.conflict": "Settings changed elsewhere while you were editing. Your draft has not been saved. Load the latest settings and review your changes before saving.",
|
|
3064
|
+
"settings.liveSetup.reloadSettings": "Discard draft and load latest settings",
|
|
3065
|
+
"settings.liveSetup.keyRemovalPending": "Key will be removed on save",
|
|
3066
|
+
"settings.liveSetup.undoRemoveKey": "Undo removal",
|
|
3061
3067
|
"settings.liveSetup.cancel": "Cancel",
|
|
3062
3068
|
"settings.liveSetup.confirm": "Enable and install",
|
|
3063
3069
|
"live.refresh": "Refresh status",
|
|
@@ -3143,13 +3149,15 @@ const rd = {
|
|
|
3143
3149
|
"settings.liveSetup.apiKey": "DashScope Realtime API Key",
|
|
3144
3150
|
"settings.liveSetup.apiKeyPlaceholder": "输入 DashScope API Key",
|
|
3145
3151
|
"settings.liveSetup.apiKeyReplace": "输入新 Key 以替换当前配置",
|
|
3152
|
+
"settings.liveSetup.keyFromModel": "所选模型使用模型提供商配置中的 API Key。",
|
|
3146
3153
|
"settings.liveSetup.keyFromEnv": (e) => `从所选模型的环境变量 ${e?.env ?? ""} 读取。`,
|
|
3147
3154
|
"settings.liveSetup.keyFromEnvMissing": (e) => `所选模型从 ${e?.env ?? ""} 读取 key,但 daemon 的环境里没有设置它。`,
|
|
3148
3155
|
"settings.liveSetup.model": "Realtime 模型",
|
|
3149
3156
|
"settings.liveSetup.modelHint": "选“其他模型 id…”可填写任意 Realtime 模型。",
|
|
3150
3157
|
"settings.liveSetup.modelCustom": "其他模型 id…",
|
|
3151
3158
|
"settings.liveSetup.endpoint": "Realtime 接入地址",
|
|
3152
|
-
"settings.liveSetup.
|
|
3159
|
+
"settings.liveSetup.endpointUnchanged": "未修改,保留已保存的接入地址",
|
|
3160
|
+
"settings.liveSetup.endpointHint": "填写 Key 所属地域或专属域名的 OpenAI 兼容 baseUrl,清空后使用默认地址(北京)。",
|
|
3153
3161
|
"settings.liveSetup.endpointFromRoute": "跟随所选模型在 modelProviders 中路由的 baseUrl。",
|
|
3154
3162
|
"settings.liveSetup.voice": "音色",
|
|
3155
3163
|
"settings.liveSetup.voiceHint": "所选模型的音色名称。开启 Live Voice 时保存前会先向 provider 校验。",
|
|
@@ -3181,6 +3189,10 @@ const rd = {
|
|
|
3181
3189
|
"settings.liveSetup.install.error": "安装需要处理",
|
|
3182
3190
|
"settings.liveSetup.confirmTitle": "启用实验性 Qwen Live?",
|
|
3183
3191
|
"settings.liveSetup.confirmDescription": "Qwen Code 将自动下载、校验、安装并打开已签名的 Qwen Live Host。之后 macOS 会要求授予麦克风、辅助功能和屏幕录制权限。",
|
|
3192
|
+
"settings.liveSetup.conflict": "编辑期间设置已在其他地方发生变化,当前草稿尚未保存。请加载最新设置,重新核对修改后再保存。",
|
|
3193
|
+
"settings.liveSetup.reloadSettings": "放弃草稿并加载最新设置",
|
|
3194
|
+
"settings.liveSetup.keyRemovalPending": "保存时将移除 Key",
|
|
3195
|
+
"settings.liveSetup.undoRemoveKey": "撤销移除",
|
|
3184
3196
|
"settings.liveSetup.cancel": "取消",
|
|
3185
3197
|
"settings.liveSetup.confirm": "启用并安装",
|
|
3186
3198
|
"live.refresh": "刷新状态",
|
|
@@ -4143,7 +4155,7 @@ const dd = {
|
|
|
4143
4155
|
"settings.label.agents.arena.preserveArtifacts": "保留 Arena 产物",
|
|
4144
4156
|
"settings.description.agents.arena.preserveArtifacts": "启用后,Arena worktree 和会话状态文件会在会话结束或主智能体退出后保留。"
|
|
4145
4157
|
}, Np = ["en", "zh-CN"];
|
|
4146
|
-
function
|
|
4158
|
+
function qo(e, t) {
|
|
4147
4159
|
const o = typeof e == "number" ? e : Number(e ?? 0), s = Number.isFinite(o) ? o : 0;
|
|
4148
4160
|
return `${s} ${t}${s === 1 ? "" : "s"}`;
|
|
4149
4161
|
}
|
|
@@ -5652,6 +5664,12 @@ const Xa = {
|
|
|
5652
5664
|
"turnOutputs.artifactMissing": "File not found in the workspace",
|
|
5653
5665
|
"turnOutputs.artifactUnavailable": (e) => e?.path ? `File not found in the workspace · ${e.path}` : "File not found in the workspace",
|
|
5654
5666
|
"sidebar.label": "Workspace sidebar",
|
|
5667
|
+
"sidebar.home": "Home",
|
|
5668
|
+
"sidebar.channelSettings": "Settings",
|
|
5669
|
+
"sidebar.liveSettings": "Settings",
|
|
5670
|
+
"sidebar.liveSettingsUnavailable": "Live settings are not available on this server.",
|
|
5671
|
+
"sidebar.more": "More",
|
|
5672
|
+
"sidebar.navigation": "Main navigation",
|
|
5655
5673
|
"sidebar.toggleMenu": "Toggle menu",
|
|
5656
5674
|
"sidebar.newChat": "New chat",
|
|
5657
5675
|
"sidebar.newTask": "New task",
|
|
@@ -6847,15 +6865,15 @@ const Xa = {
|
|
|
6847
6865
|
"trajectory.olderPartial": "Earlier records could only be read in part, so they are left out.",
|
|
6848
6866
|
"trajectory.loadFailed": (e) => `Could not read the transcript: ${e?.message ?? ""}`,
|
|
6849
6867
|
"trajectory.partial": "Part of this transcript could not be read, so some records are missing.",
|
|
6850
|
-
"trajectory.totals": (e) => `Loaded window · ${
|
|
6868
|
+
"trajectory.totals": (e) => `Loaded window · ${qo(e?.turns, "turn")} · ${qo(e?.requests, "request")} · ${qo(e?.tools, "tool")}`,
|
|
6851
6869
|
"trajectory.turn": (e) => `Turn ${e?.index ?? 0}`,
|
|
6852
6870
|
"trajectory.turnPartial": (e) => `Turn ${e?.index ?? 0} (continued)`,
|
|
6853
|
-
"trajectory.turnSummary": (e) => `${
|
|
6871
|
+
"trajectory.turnSummary": (e) => `${qo(e?.requests, "request")} · ${qo(e?.tools, "tool")} · main model total ${e?.duration ?? ""}`,
|
|
6854
6872
|
"trajectory.request": "Model request",
|
|
6855
6873
|
"trajectory.requestFailed": "Request failed",
|
|
6856
6874
|
"trajectory.toolFailed": "Tool failed",
|
|
6857
6875
|
"trajectory.ttft": (e) => `First token ${e?.duration ?? ""}`,
|
|
6858
|
-
"trajectory.subagentRollup": (e) => `subagent ${
|
|
6876
|
+
"trajectory.subagentRollup": (e) => `subagent ${qo(e?.requests, "request")} · ${qo(e?.tools, "tool")} · ${e?.duration ?? ""}`,
|
|
6859
6877
|
"trajectory.badge.user": "you",
|
|
6860
6878
|
"trajectory.badge.message": "say",
|
|
6861
6879
|
"trajectory.badge.thought": "think",
|
|
@@ -6867,7 +6885,7 @@ const Xa = {
|
|
|
6867
6885
|
"trajectory.badge.cancelled": "stop",
|
|
6868
6886
|
"trajectory.badge.other": "other",
|
|
6869
6887
|
"trajectory.cancelled": "Turn cancelled",
|
|
6870
|
-
"trajectory.overview.label": (e) => `Timeline of ${
|
|
6888
|
+
"trajectory.overview.label": (e) => `Timeline of ${qo(e?.spans, "timed record")}, ${e?.busy ?? ""} of activity`,
|
|
6871
6889
|
"trajectory.overview.busy": (e) => `${e?.duration ?? ""} active`,
|
|
6872
6890
|
"trajectory.range.status": (e) => `Visible records ${e?.shown ?? 0} / window records ${e?.total ?? 0} (including context)`,
|
|
6873
6891
|
"trajectory.collapsed": (e) => `${e?.count ?? 0} records collapsed`,
|
|
@@ -7431,6 +7449,7 @@ const Xa = {
|
|
|
7431
7449
|
"channels.workspace.label": "Workspace",
|
|
7432
7450
|
"channels.workspace.primary": "Primary",
|
|
7433
7451
|
"channels.loading": "Loading channels",
|
|
7452
|
+
"channels.configuredCount": (e) => qo(e?.count, "configured channel"),
|
|
7434
7453
|
"channels.configured": "Configured channels",
|
|
7435
7454
|
"channels.configured.description": "Manage the bots that receive and deliver messages for this workspace.",
|
|
7436
7455
|
"channels.availablePlatforms": "Available platforms",
|
|
@@ -9256,6 +9275,12 @@ const Xa = {
|
|
|
9256
9275
|
"turnOutputs.artifactMissing": "工作区中未找到该文件",
|
|
9257
9276
|
"turnOutputs.artifactUnavailable": (e) => e?.path ? `工作区中未找到该文件 · ${e.path}` : "工作区中未找到该文件",
|
|
9258
9277
|
"sidebar.label": "工作区侧边栏",
|
|
9278
|
+
"sidebar.home": "首页",
|
|
9279
|
+
"sidebar.channelSettings": "设置",
|
|
9280
|
+
"sidebar.liveSettings": "设置",
|
|
9281
|
+
"sidebar.liveSettingsUnavailable": "当前服务未提供 Live 设置。",
|
|
9282
|
+
"sidebar.more": "更多",
|
|
9283
|
+
"sidebar.navigation": "主导航",
|
|
9259
9284
|
"sidebar.toggleMenu": "切换菜单",
|
|
9260
9285
|
"sidebar.newChat": "新对话",
|
|
9261
9286
|
"sidebar.newTask": "新建任务",
|
|
@@ -11022,6 +11047,7 @@ const Xa = {
|
|
|
11022
11047
|
"channels.workspace.label": "工作区",
|
|
11023
11048
|
"channels.workspace.primary": "主工作区",
|
|
11024
11049
|
"channels.loading": "正在加载频道",
|
|
11050
|
+
"channels.configuredCount": (e) => `已配置 ${e?.count ?? 0} 个频道`,
|
|
11025
11051
|
"channels.configured": "已配置频道",
|
|
11026
11052
|
"channels.configured.description": "管理当前工作区中负责收发消息的机器人。",
|
|
11027
11053
|
"channels.availablePlatforms": "可连接平台",
|
|
@@ -13690,7 +13716,7 @@ function um(e, t = {}) {
|
|
|
13690
13716
|
]
|
|
13691
13717
|
} : {},
|
|
13692
13718
|
isStreaming: y.streaming,
|
|
13693
|
-
sourceBlockIds:
|
|
13719
|
+
sourceBlockIds: Go(ne.sourceBlockIds, x.id),
|
|
13694
13720
|
...y.branchRecordId ? { branchRecordId: y.branchRecordId } : {},
|
|
13695
13721
|
...se ? { usage: se } : {}
|
|
13696
13722
|
}, A = !1, U = null;
|
|
@@ -13727,7 +13753,7 @@ function um(e, t = {}) {
|
|
|
13727
13753
|
...B,
|
|
13728
13754
|
content: B.content + y.text,
|
|
13729
13755
|
isStreaming: y.streaming,
|
|
13730
|
-
sourceBlockIds:
|
|
13756
|
+
sourceBlockIds: Go(B.sourceBlockIds, x.id)
|
|
13731
13757
|
}, A = !1) : (o.push({
|
|
13732
13758
|
id: x.id,
|
|
13733
13759
|
role: "thinking",
|
|
@@ -13774,14 +13800,14 @@ function um(e, t = {}) {
|
|
|
13774
13800
|
const pe = typeof G.rawOutput == "string" ? G.rawOutput : "", oe = {
|
|
13775
13801
|
...G,
|
|
13776
13802
|
rawOutput: pe + y.text,
|
|
13777
|
-
sourceBlockIds:
|
|
13803
|
+
sourceBlockIds: Go(
|
|
13778
13804
|
G.sourceBlockIds,
|
|
13779
13805
|
x.id
|
|
13780
13806
|
)
|
|
13781
13807
|
};
|
|
13782
13808
|
o[o.length - 1] = {
|
|
13783
13809
|
...W,
|
|
13784
|
-
sourceBlockIds:
|
|
13810
|
+
sourceBlockIds: Go(W.sourceBlockIds, x.id),
|
|
13785
13811
|
tools: [
|
|
13786
13812
|
...W.tools.slice(0, B),
|
|
13787
13813
|
oe,
|
|
@@ -13971,7 +13997,7 @@ function ku(e) {
|
|
|
13971
13997
|
return s;
|
|
13972
13998
|
};
|
|
13973
13999
|
for (const o of e)
|
|
13974
|
-
o.role === "tool_group" && (o.sourceBlockIds =
|
|
14000
|
+
o.role === "tool_group" && (o.sourceBlockIds = Go(
|
|
13975
14001
|
o.sourceBlockIds,
|
|
13976
14002
|
...t(o.tools)
|
|
13977
14003
|
));
|
|
@@ -13985,21 +14011,21 @@ function bu(e) {
|
|
|
13985
14011
|
delete o.sourceBlockIds, o.role === "tool_group" && t(o.tools);
|
|
13986
14012
|
}
|
|
13987
14013
|
function vu(e, t) {
|
|
13988
|
-
e.subTools ||= [], e.subTools.push(t), e.sourceBlockIds =
|
|
14014
|
+
e.subTools ||= [], e.subTools.push(t), e.sourceBlockIds = Go(
|
|
13989
14015
|
e.sourceBlockIds,
|
|
13990
14016
|
...t.sourceBlockIds ?? []
|
|
13991
14017
|
);
|
|
13992
14018
|
}
|
|
13993
|
-
function
|
|
14019
|
+
function Go(e, ...t) {
|
|
13994
14020
|
return [.../* @__PURE__ */ new Set([...e ?? [], ...t])];
|
|
13995
14021
|
}
|
|
13996
14022
|
function ii(e, t, o) {
|
|
13997
|
-
e.subContent = (e.subContent || "") + t, e.sourceBlockIds =
|
|
14023
|
+
e.subContent = (e.subContent || "") + t, e.sourceBlockIds = Go(e.sourceBlockIds, o);
|
|
13998
14024
|
}
|
|
13999
14025
|
function Ca(e, t, o, s) {
|
|
14000
14026
|
const n = (r) => ns(r), a = e[e.length - 1];
|
|
14001
14027
|
if (a && a.role === "tool_group" && a.id.startsWith("tg-") && !n(o) && !a.tools.some(n)) {
|
|
14002
|
-
a.tools.push(o), a.sourceBlockIds =
|
|
14028
|
+
a.tools.push(o), a.sourceBlockIds = Go(a.sourceBlockIds, t);
|
|
14003
14029
|
return;
|
|
14004
14030
|
}
|
|
14005
14031
|
e.push({
|
|
@@ -14022,7 +14048,7 @@ function yu(e) {
|
|
|
14022
14048
|
return e.length - 1;
|
|
14023
14049
|
}
|
|
14024
14050
|
function li(e, t, o = {}) {
|
|
14025
|
-
e.status = t.status ?? e.status, e.title = t.title ?? e.title, e.toolName = t.toolName ?? e.toolName, e.kind = t.kind ?? e.kind, e.sourceBlockIds =
|
|
14051
|
+
e.status = t.status ?? e.status, e.title = t.title ?? e.title, e.toolName = t.toolName ?? e.toolName, e.kind = t.kind ?? e.kind, e.sourceBlockIds = Go(
|
|
14026
14052
|
e.sourceBlockIds,
|
|
14027
14053
|
...t.sourceBlockIds ?? []
|
|
14028
14054
|
), e.content = t.content ?? e.content, e.endTime = t.endTime ?? e.endTime, e.wasCancelled = t.wasCancelled ?? e.wasCancelled, o.replaceRawOutput !== !1 && (e.rawOutput = t.rawOutput ?? e.rawOutput), o.replaceArgs !== !1 && (e.args = t.args ?? e.args), e.executionMode = t.executionMode ?? e.executionMode, e.subagentSessionReady = e.subagentSessionReady === !0 ? !0 : t.subagentSessionReady ?? e.subagentSessionReady, e.locations = t.locations ?? e.locations;
|
|
@@ -14579,7 +14605,7 @@ class Fs extends Error {
|
|
|
14579
14605
|
super("Historical transcript page exceeds the cache budget"), this.name = "HistoricalTranscriptPageTooLargeError";
|
|
14580
14606
|
}
|
|
14581
14607
|
}
|
|
14582
|
-
class
|
|
14608
|
+
class jo extends Error {
|
|
14583
14609
|
constructor() {
|
|
14584
14610
|
super("Historical transcript window is full; move the selection and retry"), this.name = "HistoricalTranscriptWindowFullError";
|
|
14585
14611
|
}
|
|
@@ -14714,7 +14740,7 @@ class Hu {
|
|
|
14714
14740
|
if (O.pageIds.some(
|
|
14715
14741
|
(P) => [...this.viewportPins.values()].includes(P)
|
|
14716
14742
|
))
|
|
14717
|
-
throw new
|
|
14743
|
+
throw new jo();
|
|
14718
14744
|
A = this.restoreCachedBoundaries(
|
|
14719
14745
|
A.filter((P) => P.id !== O.id),
|
|
14720
14746
|
O.id
|
|
@@ -14815,7 +14841,7 @@ class Hu {
|
|
|
14815
14841
|
if (x.pageIds.some(
|
|
14816
14842
|
(Z) => [...this.viewportPins.values()].includes(Z)
|
|
14817
14843
|
))
|
|
14818
|
-
throw new
|
|
14844
|
+
throw new jo();
|
|
14819
14845
|
H = this.restoreCachedBoundaries(
|
|
14820
14846
|
H.filter((Z) => Z.id !== x.id),
|
|
14821
14847
|
x.id
|
|
@@ -14890,7 +14916,7 @@ class Hu {
|
|
|
14890
14916
|
(g) => g.id === t ? Object.freeze(r) : g
|
|
14891
14917
|
), m = this.measureRetainedBytes(i, l);
|
|
14892
14918
|
if (m > this.options.maxRetainedBytes)
|
|
14893
|
-
throw new
|
|
14919
|
+
throw new jo();
|
|
14894
14920
|
this.snapshot = Object.freeze({
|
|
14895
14921
|
pages: i,
|
|
14896
14922
|
ranges: Object.freeze(l),
|
|
@@ -15199,19 +15225,19 @@ class Hu {
|
|
|
15199
15225
|
pages: n,
|
|
15200
15226
|
ranges: Object.freeze(a),
|
|
15201
15227
|
retainedBytes: this.measureRetainedBytes(n, a)
|
|
15202
|
-
}), new
|
|
15203
|
-
if (r()) throw new
|
|
15228
|
+
}), new jo();
|
|
15229
|
+
if (r()) throw new jo();
|
|
15204
15230
|
break;
|
|
15205
15231
|
}
|
|
15206
15232
|
const g = (s?.direction === "older" ? [l.pageIds.at(-1), l.pageIds[0]] : [l.pageIds[0], l.pageIds.at(-1)]).find(
|
|
15207
15233
|
(A) => A !== o && A !== this.selectedPageId && A !== s?.pageId && ![...this.viewportPins.values()].includes(A)
|
|
15208
15234
|
);
|
|
15209
|
-
if (!g) throw new
|
|
15235
|
+
if (!g) throw new jo();
|
|
15210
15236
|
const h = g === l.pageIds[0];
|
|
15211
15237
|
n.delete(g);
|
|
15212
15238
|
const v = l.pageIds.filter((A) => A !== g), R = v[0] ? n.get(v[0]) : void 0, U = n.get(v.at(-1));
|
|
15213
15239
|
if (!h && !U?.newerRequest)
|
|
15214
|
-
throw new
|
|
15240
|
+
throw new jo();
|
|
15215
15241
|
h ? this.cachedBoundaryRequests.delete(
|
|
15216
15242
|
this.boundaryKey(l.id, "older")
|
|
15217
15243
|
) : this.cachedBoundaryRequests.delete(
|
|
@@ -15775,13 +15801,13 @@ function zu(e = {}) {
|
|
|
15775
15801
|
});
|
|
15776
15802
|
}
|
|
15777
15803
|
}
|
|
15778
|
-
async function
|
|
15804
|
+
async function Vo(u, f, b) {
|
|
15779
15805
|
const k = i, w = g;
|
|
15780
15806
|
try {
|
|
15781
15807
|
return await $o(u, f, () => {
|
|
15782
15808
|
});
|
|
15783
15809
|
} catch (Q) {
|
|
15784
|
-
if (!(Q instanceof
|
|
15810
|
+
if (!(Q instanceof jo)) throw Q;
|
|
15785
15811
|
}
|
|
15786
15812
|
const C = p(u.turnOrdinal), F = () => f.isCurrent() && u.sessionId === r && u.revision === G.revision && w === g && k !== void 0 && oe(k);
|
|
15787
15813
|
if (!F() || !k || C?.entry.turnId !== u.turnId)
|
|
@@ -16108,7 +16134,7 @@ function zu(e = {}) {
|
|
|
16108
16134
|
if (!Q()) return;
|
|
16109
16135
|
const N = B.getSnapshot().ranges.find((j) => j.id === u);
|
|
16110
16136
|
if (!N || N[f].kind !== "loading") return;
|
|
16111
|
-
if (b && X instanceof
|
|
16137
|
+
if (b && X instanceof jo)
|
|
16112
16138
|
throw B.cancelBoundaryLoad(u, f, C), ne(F()), X;
|
|
16113
16139
|
if (As(X))
|
|
16114
16140
|
c();
|
|
@@ -16373,7 +16399,7 @@ function zu(e = {}) {
|
|
|
16373
16399
|
locateViewportOrdinal: Je,
|
|
16374
16400
|
scanConversation: vo,
|
|
16375
16401
|
resolveMessageRecord: async (u, f) => (await vo("", f, u)).hits[0],
|
|
16376
|
-
locateViewportSearchHit:
|
|
16402
|
+
locateViewportSearchHit: Vo,
|
|
16377
16403
|
refreshHead: Ye,
|
|
16378
16404
|
loadOlder: (u) => Pt(u, "older"),
|
|
16379
16405
|
loadNewer: (u) => Pt(u, "newer"),
|
|
@@ -16783,8 +16809,8 @@ function Am(e) {
|
|
|
16783
16809
|
Gt.current = ne;
|
|
16784
16810
|
const vo = Y(i);
|
|
16785
16811
|
vo.current = i;
|
|
16786
|
-
const
|
|
16787
|
-
|
|
16812
|
+
const Vo = Y(pe);
|
|
16813
|
+
Vo.current = pe;
|
|
16788
16814
|
const $o = Y(
|
|
16789
16815
|
oe
|
|
16790
16816
|
);
|
|
@@ -17048,7 +17074,7 @@ function Am(e) {
|
|
|
17048
17074
|
ht,
|
|
17049
17075
|
lr
|
|
17050
17076
|
]);
|
|
17051
|
-
const Fo = Y(() => !1),
|
|
17077
|
+
const Fo = Y(() => !1), Ko = Y(
|
|
17052
17078
|
() => !1
|
|
17053
17079
|
), cr = Y(() => {
|
|
17054
17080
|
}), Ks = Y(!1);
|
|
@@ -17153,22 +17179,22 @@ function Am(e) {
|
|
|
17153
17179
|
if (!Ce && (await Promise.resolve(), K))
|
|
17154
17180
|
return;
|
|
17155
17181
|
const ue = Le.current ?? new _s({ baseUrl: W, token: B });
|
|
17156
|
-
let ye, kt, Ke = ce, So = !N.current && !ce && wn > 0, oo = 0,
|
|
17157
|
-
const ta = (
|
|
17182
|
+
let ye, kt, Ke = ce, So = !N.current && !ce && wn > 0, oo = 0, Qo, rn = !1, On = !1, ea = !1, pr = () => !1;
|
|
17183
|
+
const ta = (Yo) => {
|
|
17158
17184
|
const To = D.current;
|
|
17159
|
-
return To?.sessionId !== void 0 &&
|
|
17160
|
-
}, bn = (
|
|
17185
|
+
return To?.sessionId !== void 0 && Yo !== void 0 && To?.workspaceCwd === Yo.workspaceCwd && To.sessionId === Yo.sessionId ? To.active : void 0;
|
|
17186
|
+
}, bn = (Yo = ye ?? ee.current ?? xe.current) => pr() || xe.current.backgroundTurn ? !1 : ta(Yo) === !0 ? (console.debug(
|
|
17161
17187
|
"[DaemonSessionProvider] settle skipped: daemon reports the prompt in flight"
|
|
17162
17188
|
), !1) : !0;
|
|
17163
17189
|
if (!ce && !Ke && !So && (xe.current.standaloneSession?.creationRecovery || N.current && xe.current.status === "error"))
|
|
17164
17190
|
return;
|
|
17165
17191
|
let oa = !1, mr = !1, gr = !1;
|
|
17166
17192
|
for (; !K && !I.signal.aborted; ) {
|
|
17167
|
-
const
|
|
17193
|
+
const Yo = rn;
|
|
17168
17194
|
rn = !1;
|
|
17169
|
-
let To = !1,
|
|
17195
|
+
let To = !1, Jo, na;
|
|
17170
17196
|
const sa = () => {
|
|
17171
|
-
na?.(), na = void 0, vt.current ===
|
|
17197
|
+
na?.(), na = void 0, vt.current === Jo && (vt.current = void 0);
|
|
17172
17198
|
};
|
|
17173
17199
|
try {
|
|
17174
17200
|
let Pe = !1, ls = !1, Uo = !1, Co = !1, qt, wt, Ue, vn;
|
|
@@ -17193,7 +17219,7 @@ function Am(e) {
|
|
|
17193
17219
|
kt = fe, se.current = fe;
|
|
17194
17220
|
const et = Array.isArray(fe.features) && fe.features.includes(Gn);
|
|
17195
17221
|
Q.current = Array.isArray(fe.features) && fe.features.includes("client_heartbeat");
|
|
17196
|
-
const tt = Gt.current ?? fe.workspaceCwd, dt = Ve ??
|
|
17222
|
+
const tt = Gt.current ?? fe.workspaceCwd, dt = Ve ?? Vo.current ?? (tt ? {
|
|
17197
17223
|
kind: "workspace",
|
|
17198
17224
|
cwd: tt
|
|
17199
17225
|
} : void 0);
|
|
@@ -17250,7 +17276,7 @@ function Am(e) {
|
|
|
17250
17276
|
);
|
|
17251
17277
|
return;
|
|
17252
17278
|
}
|
|
17253
|
-
const [Ge, co, dn,
|
|
17279
|
+
const [Ge, co, dn, Xo] = await Promise.allSettled([
|
|
17254
17280
|
ue.workspaceProviders(),
|
|
17255
17281
|
P ? lo ? lo.workspaceConfigSkills() : ue.workspaceSkills() : Promise.resolve(void 0),
|
|
17256
17282
|
P && !Bo && No ? ue.workspaceAcpStatus() : Promise.resolve(void 0),
|
|
@@ -17278,7 +17304,7 @@ function Am(e) {
|
|
|
17278
17304
|
sessionContext: dt,
|
|
17279
17305
|
workspaceCwd: je,
|
|
17280
17306
|
standaloneSession: void 0,
|
|
17281
|
-
gitBranch: !O && Ct.workspaceCwd === je ? Ct.gitBranch :
|
|
17307
|
+
gitBranch: !O && Ct.workspaceCwd === je ? Ct.gitBranch : Xo.status === "fulfilled" ? Xo.value?.branch ?? void 0 : void 0,
|
|
17282
17308
|
models: bs.models,
|
|
17283
17309
|
currentModel: bs.currentModel,
|
|
17284
17310
|
currentMode: bs.currentMode,
|
|
@@ -17456,8 +17482,8 @@ function Am(e) {
|
|
|
17456
17482
|
Ge.target.promptId
|
|
17457
17483
|
) : void 0;
|
|
17458
17484
|
if (!Ge || Ge.sessionId !== ge.sessionId || ge.replayDegraded === !0 || !dn) {
|
|
17459
|
-
const
|
|
17460
|
-
if (ge !==
|
|
17485
|
+
const Xo = ee.current;
|
|
17486
|
+
if (ge !== Xo && await ge.detach().catch((ks) => {
|
|
17461
17487
|
console.warn(
|
|
17462
17488
|
"[DaemonSessionProvider] detach rejected repair load failed:",
|
|
17463
17489
|
ks
|
|
@@ -17466,8 +17492,8 @@ function Am(e) {
|
|
|
17466
17492
|
new Error(
|
|
17467
17493
|
ge.replayDegraded === !0 ? "Fresh replay is degraded" : "Fresh replay does not contain the complete target turn"
|
|
17468
17494
|
)
|
|
17469
|
-
)), j.current ===
|
|
17470
|
-
ye =
|
|
17495
|
+
)), j.current === Xo && (j.current = void 0), Xo?.sessionId === ge.sessionId) {
|
|
17496
|
+
ye = Xo, Ke = Xo.sessionId, oo = 0, rn = !0;
|
|
17471
17497
|
continue;
|
|
17472
17498
|
}
|
|
17473
17499
|
return;
|
|
@@ -17510,7 +17536,7 @@ function Am(e) {
|
|
|
17510
17536
|
at.current,
|
|
17511
17537
|
L.sessionId
|
|
17512
17538
|
);
|
|
17513
|
-
pr = Io, Fo.current = Io,
|
|
17539
|
+
pr = Io, Fo.current = Io, Ko.current = cs, Fe(
|
|
17514
17540
|
(S) => Io() ? "streaming" : (
|
|
17515
17541
|
// A Last-Event-ID resume on the same session is not a turn
|
|
17516
17542
|
// boundary. `hasSessionActivePrompt()` only knows about
|
|
@@ -17746,7 +17772,7 @@ function Am(e) {
|
|
|
17746
17772
|
loadingTranscript: void 0,
|
|
17747
17773
|
catchingUp: Fn ? S.catchingUp : Pe || L.lastEventId != null || void 0
|
|
17748
17774
|
})), ds && (Js.current = L.sessionId, Xs.current = Tt, Zs.current = void 0, b.current = void 0, ds.timeout !== void 0 && clearTimeout(ds.timeout), j.current === L && (j.current = void 0), ds.resolve());
|
|
17749
|
-
const la =
|
|
17775
|
+
const la = Yo || Co && xe.current.commands !== void 0 && xe.current.skills !== void 0 && xe.current.supportedCommands !== void 0 && xe.current.context !== void 0, wr = Mo.current.get(L) ?? 0, ms = xe.current.sessionId === L.sessionId ? xe.current.goalState : void 0, zl = Yo ? Promise.resolve({ branch: xe.current.gitBranch }) : _t && O ? L.workspaceCwd ? ue.workspaceByCwd(L.workspaceCwd).workspaceGit() : ue.workspaceGit() : Promise.resolve(void 0), kr = !la || !!xe.current.context?.recovery, br = kr ? Xn(
|
|
17750
17776
|
Et.current,
|
|
17751
17777
|
L
|
|
17752
17778
|
) : void 0, Vl = Promise.allSettled([
|
|
@@ -17870,7 +17896,7 @@ function Am(e) {
|
|
|
17870
17896
|
const S = at.current.get(
|
|
17871
17897
|
L.sessionId
|
|
17872
17898
|
);
|
|
17873
|
-
c.current.has(L.sessionId) && (d.current = L.sessionId), S?.controller.abort(), at.current.delete(L.sessionId), cn && cs(), Qe(_), Fe("idle"), St(), me.reset(), L.setLastEventId(0), Ke = L.sessionId, fs = !0,
|
|
17899
|
+
c.current.has(L.sessionId) && (d.current = L.sessionId), S?.controller.abort(), at.current.delete(L.sessionId), cn && cs(), Qe(_), Fe("idle"), St(), me.reset(), L.setLastEventId(0), Ke = L.sessionId, fs = !0, Qo = "state_resync", ye = void 0, ee.current = void 0, Fo.current = () => !1, Ko.current = () => !1, be((fe) => ({
|
|
17874
17900
|
...fe,
|
|
17875
17901
|
status: "connecting",
|
|
17876
17902
|
error: void 0,
|
|
@@ -17880,17 +17906,17 @@ function Am(e) {
|
|
|
17880
17906
|
)
|
|
17881
17907
|
}));
|
|
17882
17908
|
}, ws = new AbortController();
|
|
17883
|
-
|
|
17909
|
+
Jo = {
|
|
17884
17910
|
sessionId: L.sessionId,
|
|
17885
17911
|
controller: ws,
|
|
17886
17912
|
restartRequested: !1
|
|
17887
|
-
}, vt.current =
|
|
17913
|
+
}, vt.current = Jo;
|
|
17888
17914
|
const Cr = () => ws.abort(I.signal.reason);
|
|
17889
17915
|
I.signal.addEventListener("abort", Cr, {
|
|
17890
17916
|
once: !0
|
|
17891
17917
|
}), na = () => I.signal.removeEventListener("abort", Cr);
|
|
17892
|
-
const Ir =
|
|
17893
|
-
|
|
17918
|
+
const Ir = Qo;
|
|
17919
|
+
Qo = void 0;
|
|
17894
17920
|
const oc = L.lastEventId ?? 0;
|
|
17895
17921
|
for await (const S of L.events({
|
|
17896
17922
|
signal: ws.signal,
|
|
@@ -17957,10 +17983,10 @@ function Am(e) {
|
|
|
17957
17983
|
);
|
|
17958
17984
|
L.context().then(
|
|
17959
17985
|
(Ae) => {
|
|
17960
|
-
K || I.signal.aborted || ws.signal.aborted || vt.current !==
|
|
17986
|
+
K || I.signal.aborted || ws.signal.aborted || vt.current !== Jo || ee.current !== L || le !== Et.current.get(
|
|
17961
17987
|
L
|
|
17962
17988
|
) || Ae.sessionId !== L.sessionId || be(
|
|
17963
|
-
(ge) => ge.context && vt.current ===
|
|
17989
|
+
(ge) => ge.context && vt.current === Jo && ee.current === L && le === Et.current.get(
|
|
17964
17990
|
L
|
|
17965
17991
|
) ? {
|
|
17966
17992
|
...ge,
|
|
@@ -18078,7 +18104,7 @@ function Am(e) {
|
|
|
18078
18104
|
)), St(), me.reset(), console.warn(
|
|
18079
18105
|
"[DaemonSessionProvider] ring eviction detected, reloading session (sessionId=%s)",
|
|
18080
18106
|
L.sessionId
|
|
18081
|
-
), fs = !0,
|
|
18107
|
+
), fs = !0, Qo = "state_resync", ye = void 0, ee.current = void 0, Fo.current = () => !1, Ko.current = () => !1, be((Ae) => ({
|
|
18082
18108
|
...Ae,
|
|
18083
18109
|
status: "connecting",
|
|
18084
18110
|
error: void 0,
|
|
@@ -18119,12 +18145,12 @@ function Am(e) {
|
|
|
18119
18145
|
return;
|
|
18120
18146
|
}
|
|
18121
18147
|
ve();
|
|
18122
|
-
const nc =
|
|
18148
|
+
const nc = Jo.restartRequested;
|
|
18123
18149
|
if (sa(), mr) {
|
|
18124
18150
|
Qs.current = $, ct({
|
|
18125
18151
|
type: "assistant.done",
|
|
18126
18152
|
reason: "cancelled"
|
|
18127
|
-
}), Fe("idle"), Qe(_), Fo.current = () => !1,
|
|
18153
|
+
}), Fe("idle"), Qe(_), Fo.current = () => !1, Ko.current = () => !1, kn((S) => ({
|
|
18128
18154
|
...S,
|
|
18129
18155
|
status: "disconnected",
|
|
18130
18156
|
runtimeStopped: !0,
|
|
@@ -18139,7 +18165,7 @@ function Am(e) {
|
|
|
18139
18165
|
return;
|
|
18140
18166
|
}
|
|
18141
18167
|
if (nc) {
|
|
18142
|
-
|
|
18168
|
+
Qo = "prompt_restart", oo = 0, rn = !0;
|
|
18143
18169
|
continue;
|
|
18144
18170
|
}
|
|
18145
18171
|
if (oa) {
|
|
@@ -18164,10 +18190,10 @@ function Am(e) {
|
|
|
18164
18190
|
return;
|
|
18165
18191
|
}
|
|
18166
18192
|
if (N.current) {
|
|
18167
|
-
ye = void 0, ee.current = void 0, Fo.current = () => !1,
|
|
18193
|
+
ye = void 0, ee.current = void 0, Fo.current = () => !1, Ko.current = () => !1;
|
|
18168
18194
|
return;
|
|
18169
18195
|
}
|
|
18170
|
-
!K && !I.signal.aborted && !fs && (
|
|
18196
|
+
!K && !I.signal.aborted && !fs && (Qo = "stream_end", ee.current === L && (console.debug("[DaemonSessionProvider] SSE stream ended"), Qe(_), bn() && (Fe("idle"), ct({
|
|
18171
18197
|
type: "assistant.done",
|
|
18172
18198
|
reason: "stream_ended"
|
|
18173
18199
|
}))), be((S) => ({
|
|
@@ -18180,13 +18206,13 @@ function Am(e) {
|
|
|
18180
18206
|
)
|
|
18181
18207
|
})));
|
|
18182
18208
|
} catch (Pe) {
|
|
18183
|
-
const ls =
|
|
18209
|
+
const ls = Jo?.restartRequested === !0;
|
|
18184
18210
|
if (sa(), ye && ee.current !== ye) {
|
|
18185
18211
|
St();
|
|
18186
18212
|
return;
|
|
18187
18213
|
}
|
|
18188
18214
|
if (ls && !K && !I.signal.aborted) {
|
|
18189
|
-
ve(),
|
|
18215
|
+
ve(), Qo = "prompt_restart", oo = 0, rn = !0;
|
|
18190
18216
|
continue;
|
|
18191
18217
|
}
|
|
18192
18218
|
if (K || I.signal.aborted) return;
|
|
@@ -18196,7 +18222,7 @@ function Am(e) {
|
|
|
18196
18222
|
...We,
|
|
18197
18223
|
standaloneSession: {
|
|
18198
18224
|
...We.standaloneSession,
|
|
18199
|
-
errorCode:
|
|
18225
|
+
errorCode: Ho(Pe)
|
|
18200
18226
|
}
|
|
18201
18227
|
})), On) {
|
|
18202
18228
|
On = !1, N.current = !0;
|
|
@@ -18213,9 +18239,9 @@ function Am(e) {
|
|
|
18213
18239
|
workspaceCwd: void 0,
|
|
18214
18240
|
standaloneSession: We ? {
|
|
18215
18241
|
creationRecovery: Pe.recovery,
|
|
18216
|
-
errorCode:
|
|
18242
|
+
errorCode: Ho(Pe.originalError)
|
|
18217
18243
|
} : {
|
|
18218
|
-
errorCode: Pe instanceof fa ? Pe.capability :
|
|
18244
|
+
errorCode: Pe instanceof fa ? Pe.capability : Ho(Pe)
|
|
18219
18245
|
},
|
|
18220
18246
|
error: Co,
|
|
18221
18247
|
errorStatus: Qt(
|
|
@@ -18250,7 +18276,7 @@ function Am(e) {
|
|
|
18250
18276
|
continue;
|
|
18251
18277
|
}
|
|
18252
18278
|
const ln = ye?.sessionId ?? Ke ?? d.current, Tt = Cp(Pe), _t = Tp(Pe);
|
|
18253
|
-
if (ln && (Tt || _t) && (c.current.delete(ln), d.current === ln && (d.current = void 0), at.current.get(ln)?.controller.abort(), at.current.delete(ln)), Qe(_), (Tt || _t || bn()) && Fe("idle"), wt && Ue && (wt.sessionId === ce || wt.sessionId === Ke) && (j.current?.sessionId === wt.sessionId && (j.current = void 0), b.current = void 0, wt.timeout !== void 0 && clearTimeout(wt.timeout), wt.reject(Pe)), Uo || ye === void 0 && Je.current?.kind === "standalone" && Bc(
|
|
18279
|
+
if (ln && (Tt || _t) && (c.current.delete(ln), d.current === ln && (d.current = void 0), at.current.get(ln)?.controller.abort(), at.current.delete(ln)), Qe(_), (Tt || _t || bn()) && Fe("idle"), wt && Ue && (wt.sessionId === ce || wt.sessionId === Ke) && (j.current?.sessionId === wt.sessionId && (j.current = void 0), b.current = void 0, wt.timeout !== void 0 && clearTimeout(wt.timeout), wt.reject(Pe)), Uo || ye === void 0 && Je.current?.kind === "standalone" && Bc(Ho(Pe)) || ea || Pe instanceof fa || ye === void 0 && Je.current?.kind !== "workspace" && Je.current !== void 0 && Wc(Pe)) {
|
|
18254
18280
|
const We = ce ?? Ke;
|
|
18255
18281
|
be((pt) => ({
|
|
18256
18282
|
...pt,
|
|
@@ -18268,7 +18294,7 @@ function Am(e) {
|
|
|
18268
18294
|
),
|
|
18269
18295
|
standaloneSession: Je.current?.kind === "standalone" ? {
|
|
18270
18296
|
...pt.standaloneSession,
|
|
18271
|
-
errorCode: Pe instanceof fa ? Pe.capability :
|
|
18297
|
+
errorCode: Pe instanceof fa ? Pe.capability : Ho(Pe)
|
|
18272
18298
|
} : void 0,
|
|
18273
18299
|
missingSession: !1,
|
|
18274
18300
|
loadingTranscript: void 0,
|
|
@@ -18352,7 +18378,7 @@ function Am(e) {
|
|
|
18352
18378
|
console.debug(
|
|
18353
18379
|
"[DaemonSessionProvider] retriable SSE error, preserving session for delta resume (sessionId=%s)",
|
|
18354
18380
|
ye?.sessionId
|
|
18355
|
-
),
|
|
18381
|
+
), Jo && (Qo = "transport_error");
|
|
18356
18382
|
if (!H) {
|
|
18357
18383
|
ye = void 0, ee.current = void 0, be((We) => ({
|
|
18358
18384
|
...We,
|
|
@@ -18409,7 +18435,7 @@ function Am(e) {
|
|
|
18409
18435
|
const ye = ue !== void 0 && ee.current === ue, kt = ue === void 0 && ee.current === void 0, Ke = ye && (ue === j.current || $o.current !== void 0);
|
|
18410
18436
|
ye && $o.current !== void 0 ? (ae.current = ue, re.current = Je.current) : ae.current === ue && (ae.current = void 0, re.current = void 0);
|
|
18411
18437
|
const So = !Ks.current;
|
|
18412
|
-
ye || kt ? ve() : St(), ye && (!Ke || So) && (Fo.current = () => !1,
|
|
18438
|
+
ye || kt ? ve() : St(), ye && (!Ke || So) && (Fo.current = () => !1, Ko.current = () => !1, Fe("idle"), Qe(_)), Me !== void 0 && b.current === Me && (ye || kt) && (!Ke || So) && (b.current.timeout !== void 0 && clearTimeout(b.current.timeout), b.current.reject(
|
|
18413
18439
|
new DOMException("Session load interrupted by cleanup", "AbortError")
|
|
18414
18440
|
), b.current = void 0), ye && (!Ke || So) && ue.clientId && Lr({
|
|
18415
18441
|
baseUrl: W,
|
|
@@ -18562,11 +18588,11 @@ function Am(e) {
|
|
|
18562
18588
|
passiveAssistantDoneTimerRef: _,
|
|
18563
18589
|
daemonActivePromptRef: D,
|
|
18564
18590
|
hasSessionActivePrompt: () => Fo.current(),
|
|
18565
|
-
settleRestoredActivePrompt: () =>
|
|
18591
|
+
settleRestoredActivePrompt: () => Ko.current(),
|
|
18566
18592
|
flushTranscript: () => cr.current(),
|
|
18567
18593
|
getEventDetailMode: () => Xe.current,
|
|
18568
18594
|
resetCurrentSessionActivePrompt: () => {
|
|
18569
|
-
Fo.current = () => !1,
|
|
18595
|
+
Fo.current = () => !1, Ko.current = () => !1;
|
|
18570
18596
|
},
|
|
18571
18597
|
restartEventStream: ($) => {
|
|
18572
18598
|
const I = vt.current;
|
|
@@ -18623,7 +18649,7 @@ function Am(e) {
|
|
|
18623
18649
|
getDefaultSessionContext: () => {
|
|
18624
18650
|
const $ = $o.current;
|
|
18625
18651
|
if ($ !== void 0) throw new Error($);
|
|
18626
|
-
return
|
|
18652
|
+
return Vo.current;
|
|
18627
18653
|
},
|
|
18628
18654
|
getConnection: () => xe.current,
|
|
18629
18655
|
addNotice: Bt,
|
|
@@ -19197,7 +19223,7 @@ function Om() {
|
|
|
19197
19223
|
);
|
|
19198
19224
|
return e;
|
|
19199
19225
|
}
|
|
19200
|
-
function
|
|
19226
|
+
function zo() {
|
|
19201
19227
|
return Lt(El);
|
|
19202
19228
|
}
|
|
19203
19229
|
function _l() {
|
|
@@ -19476,7 +19502,7 @@ function Um(e = {}) {
|
|
|
19476
19502
|
const t = bo(), o = de(
|
|
19477
19503
|
() => t.listAgents(),
|
|
19478
19504
|
[t]
|
|
19479
|
-
), s = Ot(o, e), n =
|
|
19505
|
+
), s = Ot(o, e), n = zo();
|
|
19480
19506
|
return ko(
|
|
19481
19507
|
n?.agentsVersion,
|
|
19482
19508
|
s.reload,
|
|
@@ -19502,7 +19528,7 @@ function Nm(e = {}) {
|
|
|
19502
19528
|
const t = bo(), o = de(
|
|
19503
19529
|
() => t.getAuthStatus(),
|
|
19504
19530
|
[t]
|
|
19505
|
-
), s = Ot(o, e), n =
|
|
19531
|
+
), s = Ot(o, e), n = zo();
|
|
19506
19532
|
return ko(
|
|
19507
19533
|
n?.authVersion,
|
|
19508
19534
|
s.reload,
|
|
@@ -19626,7 +19652,7 @@ function Wm(e = {}) {
|
|
|
19626
19652
|
), s = de(
|
|
19627
19653
|
() => t.loadPreflight(),
|
|
19628
19654
|
[t]
|
|
19629
|
-
), n = Ot(o, e), a = Ot(s, e), r =
|
|
19655
|
+
), n = Ot(o, e), a = Ot(s, e), r = zo();
|
|
19630
19656
|
return ko(
|
|
19631
19657
|
r?.initVersion,
|
|
19632
19658
|
n.reload,
|
|
@@ -19676,7 +19702,7 @@ function Hm(e = {}) {
|
|
|
19676
19702
|
), i = de(
|
|
19677
19703
|
() => r ? r.runtimeMcp() : t.loadMcpStatus(),
|
|
19678
19704
|
[t, r]
|
|
19679
|
-
), l = Ot(i, a), m =
|
|
19705
|
+
), l = Ot(i, a), m = zo();
|
|
19680
19706
|
ko(
|
|
19681
19707
|
m?.mcpVersion,
|
|
19682
19708
|
l.reload,
|
|
@@ -19750,7 +19776,7 @@ function Gm(e = {}) {
|
|
|
19750
19776
|
return typeof l?.content == "string" ? { content: l.content, truncated: l.truncated === !0 } : t.readWorkspaceFile(r);
|
|
19751
19777
|
},
|
|
19752
19778
|
[t]
|
|
19753
|
-
), a =
|
|
19779
|
+
), a = zo();
|
|
19754
19780
|
return ko(
|
|
19755
19781
|
a?.memoryVersion,
|
|
19756
19782
|
s.reload,
|
|
@@ -19966,7 +19992,7 @@ function Vm(e = {}) {
|
|
|
19966
19992
|
te()
|
|
19967
19993
|
]);
|
|
19968
19994
|
return G ?? B;
|
|
19969
|
-
}, [te, H, R]), y =
|
|
19995
|
+
}, [te, H, R]), y = zo(), W = y ? y.settingsVersion + y.extensionsVersion + y.skillsVersion : void 0;
|
|
19970
19996
|
return ko(W, H, P.data !== void 0), ko(W, J, q.data !== void 0), {
|
|
19971
19997
|
data: P.data ?? q.data,
|
|
19972
19998
|
status: P.data ?? q.data,
|
|
@@ -20065,7 +20091,7 @@ function Ym(e = {}) {
|
|
|
20065
20091
|
const t = bo(), o = de(
|
|
20066
20092
|
() => t.loadToolsStatus(),
|
|
20067
20093
|
[t]
|
|
20068
|
-
), s = Ot(o, e), n =
|
|
20094
|
+
), s = Ot(o, e), n = zo();
|
|
20069
20095
|
return ko(
|
|
20070
20096
|
n?.toolsVersion,
|
|
20071
20097
|
s.reload,
|
|
@@ -20087,7 +20113,7 @@ function Jm(e = {}) {
|
|
|
20087
20113
|
const t = bo(), o = de(
|
|
20088
20114
|
() => t.loadSettingsStatus(),
|
|
20089
20115
|
[t]
|
|
20090
|
-
), s = Ot(o, e), n =
|
|
20116
|
+
), s = Ot(o, e), n = zo();
|
|
20091
20117
|
return ko(
|
|
20092
20118
|
n?.settingsVersion,
|
|
20093
20119
|
s.reload,
|
|
@@ -20108,7 +20134,7 @@ function Xm(e = {}) {
|
|
|
20108
20134
|
const t = bo(), o = de(
|
|
20109
20135
|
() => t.loadProviders(),
|
|
20110
20136
|
[t]
|
|
20111
|
-
), s = Ot(o, e), n =
|
|
20137
|
+
), s = Ot(o, e), n = zo();
|
|
20112
20138
|
return ko(
|
|
20113
20139
|
n?.settingsVersion,
|
|
20114
20140
|
s.reload,
|
|
@@ -20299,7 +20325,7 @@ export {
|
|
|
20299
20325
|
Qm as S,
|
|
20300
20326
|
as as T,
|
|
20301
20327
|
bo as U,
|
|
20302
|
-
|
|
20328
|
+
zo as V,
|
|
20303
20329
|
jp as W,
|
|
20304
20330
|
fp as X,
|
|
20305
20331
|
um as Y,
|
|
@@ -20331,7 +20357,7 @@ export {
|
|
|
20331
20357
|
Wp as aL,
|
|
20332
20358
|
Bp as aM,
|
|
20333
20359
|
Bc as aN,
|
|
20334
|
-
|
|
20360
|
+
Ho as aO,
|
|
20335
20361
|
hd as aP,
|
|
20336
20362
|
Sm as aQ,
|
|
20337
20363
|
om as aR,
|