openfox 2.0.114 → 2.0.116
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/CHANGELOG.md +43 -0
- package/dist/CHANGELOG.md +43 -0
- package/dist/{ask-ZYPCJKZD.js → ask-UBIRH3SO.js} +2 -2
- package/dist/{auth-YY5PJYSC.js → auth-GTGIGX5X.js} +2 -2
- package/dist/{auto-config-T5GR2N6X.js → auto-config-AAUO4PKW.js} +2 -2
- package/dist/{backend-LVYHLGQJ.js → backend-67OLCS5O.js} +2 -2
- package/dist/{branch.api-XVTYACSH.js → branch.api-UMKSQMSA.js} +2 -2
- package/dist/changelog-FZUE6OSG.js +63 -0
- package/dist/{chat-handler-KWXRSWXZ.js → chat-handler-Z6BEY66U.js} +31 -31
- package/dist/{chunk-2XD65L7M.js → chunk-27NABDXB.js} +2 -2
- package/dist/{chunk-YGJIK3CG.js → chunk-2FCLCUVR.js} +5 -5
- package/dist/{chunk-UTIQ7OO5.js → chunk-3KBRMBTP.js} +2 -2
- package/dist/{chunk-SFZGMB2G.js → chunk-3PG65AXG.js} +18 -3
- package/dist/{chunk-QD7MRMCH.js → chunk-4E52GUXJ.js} +231 -173
- package/dist/{chunk-I7FY2LTR.js → chunk-4GHLULHB.js} +18 -2
- package/dist/{chunk-K733B5T2.js → chunk-4HV3PDEK.js} +135 -134
- package/dist/{chunk-PBW3YC3G.js → chunk-5PT4UMRR.js} +5 -1
- package/dist/{chunk-NWJLWLKF.js → chunk-6XHDNSA3.js} +11 -11
- package/dist/{chunk-SA34STZ6.js → chunk-AESOGRFK.js} +2 -2
- package/dist/{chunk-4H427UBV.js → chunk-AGXJ5O63.js} +2 -2
- package/dist/{chunk-7GWARYQC.js → chunk-BH3BBUGB.js} +24 -22
- package/dist/{chunk-L63Q4JQJ.js → chunk-EQ5CGNOT.js} +3 -3
- package/dist/{chunk-NLO64UE3.js → chunk-EQ7DK2TG.js} +10 -6
- package/dist/{chunk-MUSPWEBB.js → chunk-GZTMCTUS.js} +4 -4
- package/dist/{chunk-HP5CIB66.js → chunk-HD6Y77RO.js} +2 -2
- package/dist/chunk-HNHSUQCN.js +7 -0
- package/dist/{chunk-W77NBJAZ.js → chunk-HYPXL7K5.js} +178 -33
- package/dist/{chunk-OTYAEEX3.js → chunk-HZSKKJHQ.js} +9 -8
- package/dist/{chunk-JP7NM545.js → chunk-JLAR2CMV.js} +2 -2
- package/dist/{chunk-3O77NT4T.js → chunk-KLQEL2DZ.js} +10 -4
- package/dist/{chunk-UPBWEHIL.js → chunk-LNNBLB6G.js} +20 -5
- package/dist/{chunk-OXSTNSCF.js → chunk-LTYL6ZGH.js} +2 -2
- package/dist/{chunk-P5UANBBX.js → chunk-M6X6AIEG.js} +2 -2
- package/dist/{chunk-LXYPMFTH.js → chunk-MKWS7TQH.js} +4 -4
- package/dist/{chunk-SBSUDHL4.js → chunk-O6DU226D.js} +2 -2
- package/dist/{chunk-HV6IALXF.js → chunk-QJWTBVJO.js} +14 -14
- package/dist/{chunk-BZVW77PI.js → chunk-QQVPUZQB.js} +157 -21
- package/dist/{chunk-GUHHUDNL.js → chunk-SQLJRO3J.js} +10 -10
- package/dist/{chunk-JXLRL5JR.js → chunk-TGVDUK4N.js} +7 -7
- package/dist/{chunk-L737Y63F.js → chunk-TOKQ2UVG.js} +2 -2
- package/dist/{chunk-FW4NDUBL.js → chunk-U4HMAYAD.js} +15 -14
- package/dist/{chunk-V4IE7HJY.js → chunk-W7VIYHPQ.js} +2 -2
- package/dist/{chunk-VPVLO436.js → chunk-X3XKYGUN.js} +4 -4
- package/dist/{chunk-5WRI5ZAA.js → chunk-YLJ4XMA6.js} +6 -2
- package/dist/{chunk-X25Q6RAV.js → chunk-ZKLE2Q3I.js} +1 -1
- package/dist/{chunk-TKKP56QK.js → chunk-ZTOG6LJD.js} +3 -3
- package/dist/cli/dev.js +3 -3
- package/dist/cli/index.js +3 -3
- package/dist/client-KCNTDTIR.js +16 -0
- package/dist/{client-pure-VFZIIK4S.js → client-pure-B5DHEKQJ.js} +3 -3
- package/dist/command-defaults/mark-done.command.md +14 -0
- package/dist/compactor-LAXZLPPA.js +32 -0
- package/dist/{config-EAB3V4QK.js → config-TUCHLIWD.js} +2 -2
- package/dist/{dynamic-context-MVGOF5V2.js → dynamic-context-YHWFFP53.js} +10 -10
- package/dist/{events-PI7IMPHT.js → events-IVPAMMR5.js} +9 -8
- package/dist/{folding-FO57K4JM.js → folding-RTGU63BW.js} +7 -6
- package/dist/http-client-IPUW2MSW.js +11 -0
- package/dist/inspect-proxy-WPEDMCG7.js +13 -0
- package/dist/{install-CPOPMCSE.js → install-VA2F6X6Z.js} +2 -2
- package/dist/launch-PAVQAWGP.js +52 -0
- package/dist/{manager-66YAEO7K.js → manager-EMLSLMMT.js} +6 -6
- package/dist/{model-overrides-L53PZNZA.js → model-overrides-7F2EOA4U.js} +5 -5
- package/dist/{oauth-provider-52YILVUJ.js → oauth-provider-DGBC2YM6.js} +2 -2
- package/dist/{oauth-store-XCFXV2VM.js → oauth-store-KECHUT54.js} +2 -2
- package/dist/{openFolder-HX7X356L.js → openFolder-XCMSU3OI.js} +2 -2
- package/dist/orchestrator-CS3KXLZE.js +63 -0
- package/dist/package.json +5 -2
- package/dist/{path-security-RSEI3YKB.js → path-security-JTCHWYG3.js} +13 -12
- package/dist/{paths-F27V3S4I.js → paths-BHR7CZ7I.js} +2 -2
- package/dist/{permissions-K6YEA2ZZ.js → permissions-UKR524ZB.js} +2 -2
- package/dist/{platform-WA4GK5BO.js → platform-ECDDYMAR.js} +5 -5
- package/dist/{processor-WDZSFBVO.js → processor-RZD4JRDX.js} +30 -30
- package/dist/profiles-GYHXBWPV.js +10 -0
- package/dist/{project-creator-676WQXVI.js → project-creator-PMQ65NKN.js} +4 -4
- package/dist/{projects-SSBWIYL4.js → projects-NDPNOV6D.js} +6 -4
- package/dist/{protocol-BzHs024-.d.ts → protocol-CfUkCYxF.d.ts} +12 -3
- package/dist/{protocol-RKSWKNXI.js → protocol-HYA5BYVN.js} +8 -4
- package/dist/provider/index.d.ts +4 -4
- package/dist/{provider-PLIWRBCF.js → provider-Q7J4UFTS.js} +11 -11
- package/dist/{provider-manager-2QSJTPWS.js → provider-manager-TMBO4DFG.js} +9 -9
- package/dist/{pwa-XPHP3PY2.js → pwa-2GRFSXD7.js} +3 -3
- package/dist/{registry-ZP4TN2IN.js → registry-5QL3BOWN.js} +6 -5
- package/dist/{serve-MZ3BCCWC.js → serve-KR22J37W.js} +36 -36
- package/dist/server/index.d.ts +26 -6
- package/dist/server/index.js +35 -35
- package/dist/server-ESKTIZL5.js +55 -0
- package/dist/service-M7XJHAK4.js +25 -0
- package/dist/{service-CXWJQFOZ.js → service-WKABQHKL.js} +2 -2
- package/dist/{session-overrides-LXN6W7SA.js → session-overrides-CWBKPHMF.js} +8 -7
- package/dist/{sessions-CHPVUG6H.js → sessions-I7ELDIIP.js} +9 -6
- package/dist/{settings-NEBM3GQX.js → settings-FGXQHKUH.js} +4 -4
- package/dist/shared/index.d.ts +3 -3
- package/dist/shared/index.js +2 -2
- package/dist/{store-SARB6V2N.js → store-JYPZ2RXB.js} +2 -2
- package/dist/{tasks-TJXG2V3U.js → tasks-X5H5HM4J.js} +12 -12
- package/dist/{tool-adapter-FEAHWU5C.js → tool-adapter-FJAFLDZA.js} +2 -2
- package/dist/{tools-CIM26IFB.js → tools-KBS6X3EN.js} +28 -28
- package/dist/{types-CbggXFvR.d.ts → types-CIVhQMvD.d.ts} +1 -1
- package/dist/{types-CMtHpDWT.d.ts → types-Df7NM9b5.d.ts} +2 -0
- package/dist/{update-UZBBO42X.js → update-TDS6LP5N.js} +4 -4
- package/dist/{update-server-LOOXIXDW.js → update-server-SVPV6ZJZ.js} +2 -2
- package/dist/{url-utils-SAJP7AEX.js → url-utils-C5BM7NF7.js} +2 -2
- package/dist/web/assets/index-ChtRS33s.js +324 -0
- package/dist/web/assets/{index-BmILAZrT.css → index-c43YT-4A.css} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/dist/workflow-defaults/default.workflow.json +2 -2
- package/dist/{workspace-2XODU4YJ.js → workspace-IQLLHMYR.js} +5 -5
- package/package.json +5 -2
- package/dist/chunk-NCZRWCJN.js +0 -7
- package/dist/client-EM7ISGUP.js +0 -16
- package/dist/compactor-V3LR7APW.js +0 -31
- package/dist/http-client-33EZ3BLR.js +0 -11
- package/dist/inspect-proxy-NHKQQ2CD.js +0 -13
- package/dist/launch-L5ROVNI3.js +0 -52
- package/dist/orchestrator-XK5K3RPL.js +0 -63
- package/dist/profiles-5J7F4BML.js +0 -10
- package/dist/server-EPXODFMB.js +0 -55
- package/dist/service-54PGIPDQ.js +0 -25
- package/dist/web/assets/index-rZHXkfMq.js +0 -324
|
@@ -110,6 +110,10 @@ function runMigrations(db2) {
|
|
|
110
110
|
logger.info("Migrating projects table: adding is_starred column");
|
|
111
111
|
db2.exec(`ALTER TABLE projects ADD COLUMN is_starred INTEGER NOT NULL DEFAULT 0`);
|
|
112
112
|
}
|
|
113
|
+
if (!projectColumnNames.includes("default_agent")) {
|
|
114
|
+
logger.info("Migrating projects table: adding default_agent column");
|
|
115
|
+
db2.exec(`ALTER TABLE projects ADD COLUMN default_agent TEXT`);
|
|
116
|
+
}
|
|
113
117
|
if (!projectColumnNames.includes("workspace_root_dir")) {
|
|
114
118
|
logger.info("Migrating projects table: adding workspace_root_dir column");
|
|
115
119
|
db2.exec(`ALTER TABLE projects ADD COLUMN workspace_root_dir TEXT`);
|
|
@@ -320,4 +324,4 @@ export {
|
|
|
320
324
|
initDatabase,
|
|
321
325
|
getDatabase
|
|
322
326
|
};
|
|
323
|
-
//# sourceMappingURL=chunk-
|
|
327
|
+
//# sourceMappingURL=chunk-5PT4UMRR.js.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
combineEventsWithSnapshot,
|
|
3
3
|
getEventStore
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TGVDUK4N.js";
|
|
5
|
+
import {
|
|
6
|
+
updateSessionMetadata
|
|
7
|
+
} from "./chunk-KLQEL2DZ.js";
|
|
5
8
|
import {
|
|
6
9
|
createContextStateMessage,
|
|
7
10
|
createSessionStateMessage
|
|
8
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4GHLULHB.js";
|
|
9
12
|
import {
|
|
10
13
|
getPendingQuestionsForSession
|
|
11
14
|
} from "./chunk-JURM3RPZ.js";
|
|
12
15
|
import {
|
|
13
16
|
buildMessagesFromStoredEvents,
|
|
14
17
|
foldPendingConfirmations
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
updateSessionMetadata
|
|
18
|
-
} from "./chunk-3O77NT4T.js";
|
|
18
|
+
} from "./chunk-3KBRMBTP.js";
|
|
19
19
|
import {
|
|
20
20
|
getRuntimeConfig
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LNNBLB6G.js";
|
|
22
22
|
import {
|
|
23
23
|
getMaxVisibleItems
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HD6Y77RO.js";
|
|
25
25
|
import {
|
|
26
26
|
logger
|
|
27
27
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -34,7 +34,7 @@ function getSessionMessageCount(sessionId) {
|
|
|
34
34
|
for (const event of events) {
|
|
35
35
|
if (event.type === "message.start") {
|
|
36
36
|
const data = event.data;
|
|
37
|
-
if (data.role === "user") {
|
|
37
|
+
if (data.role === "user" && !data.isSystemGenerated) {
|
|
38
38
|
count++;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -153,7 +153,7 @@ async function generateSessionNameForSession(sessionId, userMessage, deps, signa
|
|
|
153
153
|
client = deps.getLLMClient();
|
|
154
154
|
client.setModel(providerConfig.model);
|
|
155
155
|
} else if (providerConfig) {
|
|
156
|
-
const { createLLMClient } = await import("./client-
|
|
156
|
+
const { createLLMClient } = await import("./client-KCNTDTIR.js");
|
|
157
157
|
client = createLLMClient({
|
|
158
158
|
llm: {
|
|
159
159
|
baseUrl: providerConfig.baseUrl,
|
|
@@ -204,4 +204,4 @@ export {
|
|
|
204
204
|
needsNameGeneration,
|
|
205
205
|
generateSessionNameForSession
|
|
206
206
|
};
|
|
207
|
-
//# sourceMappingURL=chunk-
|
|
207
|
+
//# sourceMappingURL=chunk-6XHDNSA3.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETTINGS_KEYS,
|
|
3
3
|
getSetting
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HD6Y77RO.js";
|
|
5
5
|
|
|
6
6
|
// src/server/utils/platform.ts
|
|
7
7
|
import os from "os";
|
|
@@ -63,4 +63,4 @@ export {
|
|
|
63
63
|
isWindowsPath,
|
|
64
64
|
isAbsolutePath
|
|
65
65
|
};
|
|
66
|
-
//# sourceMappingURL=chunk-
|
|
66
|
+
//# sourceMappingURL=chunk-AESOGRFK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS,
|
|
3
3
|
__toESM
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YLJ4XMA6.js";
|
|
5
5
|
|
|
6
6
|
// node_modules/sisteransi/src/index.js
|
|
7
7
|
var require_src = __commonJS({
|
|
@@ -1295,4 +1295,4 @@ export {
|
|
|
1295
1295
|
select,
|
|
1296
1296
|
text
|
|
1297
1297
|
};
|
|
1298
|
-
//# sourceMappingURL=chunk-
|
|
1298
|
+
//# sourceMappingURL=chunk-AGXJ5O63.js.map
|
|
@@ -2,27 +2,27 @@ import {
|
|
|
2
2
|
generateSessionNameForSession,
|
|
3
3
|
getSessionMessageCount,
|
|
4
4
|
needsNameGeneration
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6XHDNSA3.js";
|
|
6
6
|
import {
|
|
7
7
|
launchWorkflowRun
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HYPXL7K5.js";
|
|
9
9
|
import {
|
|
10
10
|
runChatTurn
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-U4HMAYAD.js";
|
|
12
12
|
import {
|
|
13
13
|
devServerManager
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4HV3PDEK.js";
|
|
15
15
|
import {
|
|
16
16
|
applyDynamicContext,
|
|
17
17
|
computeSessionHash,
|
|
18
18
|
computeUnifiedDiff
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SQLJRO3J.js";
|
|
20
20
|
import {
|
|
21
21
|
appendCompactionPrompt
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-X3XKYGUN.js";
|
|
23
23
|
import {
|
|
24
24
|
onProcessEvent
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZTOG6LJD.js";
|
|
26
26
|
import {
|
|
27
27
|
killProcessTree
|
|
28
28
|
} from "./chunk-I72ACQ6R.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
combineEventsWithSnapshot,
|
|
34
34
|
getEventStore
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-TGVDUK4N.js";
|
|
36
36
|
import {
|
|
37
37
|
createChatErrorMessage,
|
|
38
38
|
createChatMessageMessage,
|
|
@@ -47,10 +47,10 @@ import {
|
|
|
47
47
|
parseClientMessage,
|
|
48
48
|
serializeServerMessage,
|
|
49
49
|
storedEventToServerMessage
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-4GHLULHB.js";
|
|
51
51
|
import {
|
|
52
52
|
getPlatformShell
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-AESOGRFK.js";
|
|
54
54
|
import {
|
|
55
55
|
getPendingQuestionsForSession,
|
|
56
56
|
provideAnswer
|
|
@@ -58,19 +58,19 @@ import {
|
|
|
58
58
|
import {
|
|
59
59
|
buildMessagesFromStoredEvents,
|
|
60
60
|
foldPendingConfirmations
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-3KBRMBTP.js";
|
|
62
62
|
import {
|
|
63
63
|
getRuntimeConfig
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-LNNBLB6G.js";
|
|
65
65
|
import {
|
|
66
66
|
getMaxVisibleItems
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-HD6Y77RO.js";
|
|
68
68
|
import {
|
|
69
69
|
logger
|
|
70
70
|
} from "./chunk-K44MW7JJ.js";
|
|
71
71
|
import {
|
|
72
72
|
createServerMessage
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-ZKLE2Q3I.js";
|
|
74
74
|
|
|
75
75
|
// src/server/ws/server.ts
|
|
76
76
|
import { WebSocketServer, WebSocket as WebSocket2 } from "ws";
|
|
@@ -885,7 +885,7 @@ function createWebSocketServer(httpServer, _config, getLLMClient, getActiveProvi
|
|
|
885
885
|
const { messages, hiddenCount } = buildMessagesFromStoredEvents(events, maxVisible || void 0);
|
|
886
886
|
const pendingConfirmations = foldPendingConfirmations(events);
|
|
887
887
|
const pendingQuestions = getPendingQuestionsForSession(updatedSession.id);
|
|
888
|
-
const activeWorkflowExecution = sessionManager.
|
|
888
|
+
const activeWorkflowExecution = sessionManager.getDisplayWorkflowExecution(updatedSession.id);
|
|
889
889
|
const effectiveWorkdir = updatedSession.workspace ?? updatedSession.workdir;
|
|
890
890
|
for (const [, client] of clients) {
|
|
891
891
|
if (client.activeSessionId === updatedSession.id && client.activeWorkdir !== effectiveWorkdir) {
|
|
@@ -1266,15 +1266,16 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
|
|
|
1266
1266
|
break;
|
|
1267
1267
|
}
|
|
1268
1268
|
case "context.applyDynamic.preview": {
|
|
1269
|
-
|
|
1269
|
+
const payload = message.payload;
|
|
1270
|
+
const sessionId = payload?.sessionId ?? client.activeSessionId;
|
|
1271
|
+
if (!sessionId) {
|
|
1270
1272
|
send(createErrorMessage("NO_SESSION", "No active session", message.id));
|
|
1271
1273
|
return;
|
|
1272
1274
|
}
|
|
1273
|
-
const sessionId = client.activeSessionId;
|
|
1274
1275
|
const session = sessionManager.requireSession(sessionId);
|
|
1275
1276
|
try {
|
|
1276
|
-
const { buildCachedPrompt } = await import("./dynamic-context-
|
|
1277
|
-
const allAgents = await import("./registry-
|
|
1277
|
+
const { buildCachedPrompt } = await import("./dynamic-context-YHWFFP53.js");
|
|
1278
|
+
const allAgents = await import("./registry-5QL3BOWN.js");
|
|
1278
1279
|
const agentDef = allAgents.findAgentById(session.mode, await allAgents.loadAllAgentsDefault()) ?? allAgents.findAgentById("planner", await allAgents.loadAllAgentsDefault());
|
|
1279
1280
|
const modelName = session.providerModel ?? _providerManager?.getCurrentModel();
|
|
1280
1281
|
const { systemPrompt: newPrompt, hash: newHash } = await buildCachedPrompt(
|
|
@@ -1313,11 +1314,12 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
|
|
|
1313
1314
|
break;
|
|
1314
1315
|
}
|
|
1315
1316
|
case "context.applyDynamic": {
|
|
1316
|
-
|
|
1317
|
+
const payload = message.payload;
|
|
1318
|
+
const sessionId = payload?.sessionId ?? client.activeSessionId;
|
|
1319
|
+
if (!sessionId) {
|
|
1317
1320
|
send(createErrorMessage("NO_SESSION", "No active session", message.id));
|
|
1318
1321
|
return;
|
|
1319
1322
|
}
|
|
1320
|
-
const sessionId = client.activeSessionId;
|
|
1321
1323
|
const session = sessionManager.requireSession(sessionId);
|
|
1322
1324
|
if (session.isRunning) {
|
|
1323
1325
|
send(createErrorMessage("SESSION_RUNNING", "Cannot apply dynamic context while session is running", message.id));
|
|
@@ -1542,4 +1544,4 @@ export {
|
|
|
1542
1544
|
signalMcpReady,
|
|
1543
1545
|
createWebSocketServer
|
|
1544
1546
|
};
|
|
1545
|
-
//# sourceMappingURL=chunk-
|
|
1547
|
+
//# sourceMappingURL=chunk-BH3BBUGB.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateSessionMcpDisabledServers
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KLQEL2DZ.js";
|
|
4
4
|
import {
|
|
5
5
|
getDatabase
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5PT4UMRR.js";
|
|
7
7
|
|
|
8
8
|
// src/server/mcp/session-overrides.ts
|
|
9
9
|
var sessionOverrides = /* @__PURE__ */ new Map();
|
|
@@ -62,4 +62,4 @@ export {
|
|
|
62
62
|
clearSessionOverrides,
|
|
63
63
|
getAllSessionOverrides
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-EQ5CGNOT.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-J2GP3J3X.js";
|
|
4
4
|
import {
|
|
5
5
|
getModelProfile
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W7VIYHPQ.js";
|
|
7
7
|
import {
|
|
8
8
|
getBackendCapabilities
|
|
9
9
|
} from "./chunk-AZHWLLPP.js";
|
|
10
10
|
import {
|
|
11
11
|
buildModelParams
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TOKQ2UVG.js";
|
|
13
13
|
import {
|
|
14
14
|
logger
|
|
15
15
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -84,7 +84,7 @@ function computeAggregatedStats(input) {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
// src/server/chat/stream-pure.ts
|
|
87
|
-
function createEmptyStreamResult(aborted, modelParams, patternMatch) {
|
|
87
|
+
function createEmptyStreamResult(aborted, modelParams, patternMatch, error) {
|
|
88
88
|
return {
|
|
89
89
|
content: "",
|
|
90
90
|
toolCalls: [],
|
|
@@ -94,7 +94,8 @@ function createEmptyStreamResult(aborted, modelParams, patternMatch) {
|
|
|
94
94
|
aborted,
|
|
95
95
|
modelParams,
|
|
96
96
|
finishReason: "stop",
|
|
97
|
-
...patternMatch ? { patternMatch } : {}
|
|
97
|
+
...patternMatch ? { patternMatch } : {},
|
|
98
|
+
...error ? { error } : {}
|
|
98
99
|
};
|
|
99
100
|
}
|
|
100
101
|
async function* streamLLMPure(options) {
|
|
@@ -142,6 +143,7 @@ async function* streamLLMPure(options) {
|
|
|
142
143
|
const toolArgs = /* @__PURE__ */ new Map();
|
|
143
144
|
let result = null;
|
|
144
145
|
let aborted = false;
|
|
146
|
+
let streamError;
|
|
145
147
|
let accumulatedContent = "";
|
|
146
148
|
let accumulatedThinking = "";
|
|
147
149
|
let patternMatch;
|
|
@@ -241,6 +243,8 @@ async function* streamLLMPure(options) {
|
|
|
241
243
|
}
|
|
242
244
|
case "error":
|
|
243
245
|
if (signal?.aborted) break;
|
|
246
|
+
streamError = value.error;
|
|
247
|
+
if (options.suppressChatError) break;
|
|
244
248
|
yield {
|
|
245
249
|
type: "chat.error",
|
|
246
250
|
data: { error: value.error, recoverable: true }
|
|
@@ -267,7 +271,7 @@ async function* streamLLMPure(options) {
|
|
|
267
271
|
return createEmptyStreamResult(false, modelParams, patternMatch);
|
|
268
272
|
}
|
|
269
273
|
if (!result) {
|
|
270
|
-
return createEmptyStreamResult(aborted, modelParams);
|
|
274
|
+
return createEmptyStreamResult(aborted, modelParams, void 0, streamError);
|
|
271
275
|
}
|
|
272
276
|
const baseResult = {
|
|
273
277
|
content: result.content,
|
|
@@ -438,4 +442,4 @@ export {
|
|
|
438
442
|
createChatDoneEvent,
|
|
439
443
|
consumeStreamGenerator
|
|
440
444
|
};
|
|
441
|
-
//# sourceMappingURL=chunk-
|
|
445
|
+
//# sourceMappingURL=chunk-EQ7DK2TG.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLLMClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MKWS7TQH.js";
|
|
4
4
|
import {
|
|
5
5
|
getModelProfile
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W7VIYHPQ.js";
|
|
7
7
|
import {
|
|
8
8
|
getBackendCapabilities
|
|
9
9
|
} from "./chunk-AZHWLLPP.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-HNCM3D7Y.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveAttachmentsInMessages
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TOKQ2UVG.js";
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
20
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -803,4 +803,4 @@ export {
|
|
|
803
803
|
parseDefaultModelSelection,
|
|
804
804
|
createProviderManager
|
|
805
805
|
};
|
|
806
|
-
//# sourceMappingURL=chunk-
|
|
806
|
+
//# sourceMappingURL=chunk-GZTMCTUS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDatabase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5PT4UMRR.js";
|
|
4
4
|
|
|
5
5
|
// src/server/db/settings.ts
|
|
6
6
|
var SETTINGS_KEYS = {
|
|
@@ -131,4 +131,4 @@ export {
|
|
|
131
131
|
getAllSettings,
|
|
132
132
|
getMaxVisibleItems
|
|
133
133
|
};
|
|
134
|
-
//# sourceMappingURL=chunk-
|
|
134
|
+
//# sourceMappingURL=chunk-HD6Y77RO.js.map
|