openfox 2.0.139 → 2.0.141
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 +31 -0
- package/dist/CHANGELOG.md +31 -0
- package/dist/{backend-24FTDSHF.js → backend-EPISSWLB.js} +2 -2
- package/dist/{chat-handler-KGITQAXC.js → chat-handler-F7QRNO2E.js} +16 -16
- package/dist/{chunk-JTR3PC5I.js → chunk-2OTUYNXD.js} +2 -2
- package/dist/{chunk-AM5FAZJK.js → chunk-BB67GW5P.js} +7 -7
- package/dist/{chunk-YIEIVHCQ.js → chunk-CEEBKCGX.js} +5 -4
- package/dist/{chunk-7OHSAZLF.js → chunk-DBF5GKZF.js} +14 -16
- package/dist/{chunk-LSO3IGJ4.js → chunk-EE6VFEE6.js} +2 -2
- package/dist/{chunk-FIEFBRTQ.js → chunk-FBOIDBPA.js} +2 -2
- package/dist/{chunk-TG65PHHY.js → chunk-G7BQWMV7.js} +3 -3
- package/dist/{chunk-EJ5GFSD4.js → chunk-H7YL7PH3.js} +8 -4
- package/dist/{chunk-MAUQ6AW4.js → chunk-IZVIN7XC.js} +3 -3
- package/dist/chunk-LDWWVUW7.js +7 -0
- package/dist/{chunk-N4RAVCLZ.js → chunk-NDAXMOD2.js} +14 -12
- package/dist/{chunk-HEYU7FAY.js → chunk-OA7KBQ2O.js} +7 -5
- package/dist/{chunk-TVSIWRKE.js → chunk-PS5CHS7S.js} +11 -11
- package/dist/{chunk-CXB4HJAM.js → chunk-RCEGPT57.js} +4 -4
- package/dist/{chunk-EXQI5TVW.js → chunk-RHUZLWZV.js} +4 -4
- package/dist/{chunk-C543DUKL.js → chunk-SKHU4M6L.js} +78 -72
- package/dist/{chunk-VCLAPTWM.js → chunk-SSHXYKW3.js} +34 -9
- package/dist/{chunk-22DV5XO7.js → chunk-TJOKDC34.js} +2 -2
- package/dist/{chunk-EGF3PREY.js → chunk-UJO67GFD.js} +7 -7
- package/dist/{chunk-AKWJMMEJ.js → chunk-VLQ6BMU7.js} +7 -2
- package/dist/{chunk-RG326HS4.js → chunk-YFTCFJJM.js} +44 -12
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{client-6KC6SP2U.js → client-KJS7QIIV.js} +4 -4
- package/dist/{compactor-T7S4DIR3.js → compactor-QDTK3SZI.js} +6 -6
- package/dist/{describe-image-TQOD52IC.js → describe-image-UFOHQIPB.js} +5 -5
- package/dist/{dynamic-context-3MAA4AQR.js → dynamic-context-UEC6MMEV.js} +4 -4
- package/dist/{events-ZLP5V2YU.js → events-73MLUDTX.js} +3 -3
- package/dist/{export-import-ZJFYZJOP.js → export-import-7I7EJKTE.js} +4 -4
- package/dist/{http-client-VMRQHMF7.js → http-client-JVJ43TBY.js} +2 -2
- package/dist/{launch-73LDMGCT.js → launch-77CO4C7W.js} +16 -16
- package/dist/{orchestrator-MMHV6SZY.js → orchestrator-IRUEM4R4.js} +15 -15
- package/dist/package.json +1 -1
- package/dist/{path-security-V3XALT5E.js → path-security-MQXMTFRU.js} +4 -4
- package/dist/{processor-2M7N26QG.js → processor-VMUKAMG6.js} +15 -15
- package/dist/provider/index.d.ts +2 -2
- package/dist/{provider-MEENS4SB.js → provider-7LNTLWRB.js} +5 -5
- package/dist/{provider-manager-3MV7KDAD.js → provider-manager-TV5I5YJH.js} +5 -5
- package/dist/{serve-FN5XKUTC.js → serve-HTJREJEC.js} +21 -21
- package/dist/server/index.d.ts +4 -4
- package/dist/server/index.js +20 -20
- package/dist/{server-B4AJ7ETE.js → server-5FECIKQK.js} +19 -19
- package/dist/{service-JL55SFPL.js → service-7QKWUNU4.js} +6 -6
- package/dist/{session-overrides-7OPGV7CQ.js → session-overrides-WYOY7PVC.js} +3 -3
- package/dist/{sessions-VHS47DHO.js → sessions-U6D2T5QP.js} +2 -2
- package/dist/{tasks-ZMJCHW7E.js → tasks-E7EG7344.js} +6 -6
- package/dist/{tools-LZHSSSK4.js → tools-F4COIAZR.js} +13 -13
- package/dist/{types-CmiWoQ7p.d.ts → types-ofYNpiqi.d.ts} +2 -0
- package/dist/{update-L2XK6UDC.js → update-5TGZTHLD.js} +2 -2
- package/dist/web/assets/{index-D3bx1-1j.css → index-2WvLd7SC.css} +1 -1
- package/dist/web/assets/{index-dJREs6rO.js → index-A0-uewf7.js} +79 -79
- package/dist/web/index.html +6 -3
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-Z7MGLDLK.js +0 -7
|
@@ -2,21 +2,21 @@ import {
|
|
|
2
2
|
generateSessionNameForSession,
|
|
3
3
|
getSessionMessageCount,
|
|
4
4
|
needsNameGeneration
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CEEBKCGX.js";
|
|
6
6
|
import {
|
|
7
7
|
launchWorkflowRun
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UJO67GFD.js";
|
|
9
9
|
import {
|
|
10
10
|
runChatTurn
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BB67GW5P.js";
|
|
12
12
|
import {
|
|
13
13
|
applyDynamicContext,
|
|
14
14
|
computeSessionHash,
|
|
15
15
|
computeUnifiedDiff
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RCEGPT57.js";
|
|
17
17
|
import {
|
|
18
18
|
devServerManager
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NDAXMOD2.js";
|
|
20
20
|
import {
|
|
21
21
|
gitSpawnEnv
|
|
22
22
|
} from "./chunk-J7GAZGZT.js";
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
} from "./chunk-JLHYB445.js";
|
|
26
26
|
import {
|
|
27
27
|
appendCompactionPrompt
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-G7BQWMV7.js";
|
|
29
29
|
import {
|
|
30
30
|
hasRecentLLMFailure,
|
|
31
31
|
interruptLLMRetryWait
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OA7KBQ2O.js";
|
|
33
33
|
import {
|
|
34
34
|
onProcessEvent
|
|
35
35
|
} from "./chunk-UA2ATO3B.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
combineEventsWithSnapshot,
|
|
45
45
|
getEventStore
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-2OTUYNXD.js";
|
|
47
47
|
import {
|
|
48
48
|
buildMessagesFromStoredEvents,
|
|
49
49
|
foldPendingConfirmations
|
|
@@ -1350,7 +1350,7 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
|
|
|
1350
1350
|
}
|
|
1351
1351
|
const session = sessionManager.requireSession(sessionId);
|
|
1352
1352
|
try {
|
|
1353
|
-
const { buildCachedPrompt, computePreviewToolDiff } = await import("./dynamic-context-
|
|
1353
|
+
const { buildCachedPrompt, computePreviewToolDiff } = await import("./dynamic-context-UEC6MMEV.js");
|
|
1354
1354
|
const allAgents = await import("./registry-PVJAAL2Y.js");
|
|
1355
1355
|
const agentDef = allAgents.findAgentById(session.mode, await allAgents.loadAllAgentsDefault()) ?? allAgents.findAgentById("planner", await allAgents.loadAllAgentsDefault());
|
|
1356
1356
|
const modelName = session.providerModel ?? _providerManager?.getCurrentModel();
|
|
@@ -1362,7 +1362,7 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
|
|
|
1362
1362
|
const oldCached = sessionManager.getCachedPrompt(sessionId);
|
|
1363
1363
|
const oldPrompt = oldCached?.systemPrompt;
|
|
1364
1364
|
const diff = oldPrompt ? computeUnifiedDiff(oldPrompt, newPrompt) : [];
|
|
1365
|
-
const { getToolRegistryForAgent } = await import("./tools-
|
|
1365
|
+
const { getToolRegistryForAgent } = await import("./tools-F4COIAZR.js");
|
|
1366
1366
|
const unfilteredTools = getToolRegistryForAgent(agentDef).definitions;
|
|
1367
1367
|
const toolDiff = computePreviewToolDiff(oldCached?.tools, unfilteredTools, newTools);
|
|
1368
1368
|
send({
|
|
@@ -1735,4 +1735,4 @@ export {
|
|
|
1735
1735
|
signalMcpReady,
|
|
1736
1736
|
createWebSocketServer
|
|
1737
1737
|
};
|
|
1738
|
-
//# sourceMappingURL=chunk-
|
|
1738
|
+
//# sourceMappingURL=chunk-PS5CHS7S.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
getCurrentContextWindowId,
|
|
10
10
|
getEventStore
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2OTUYNXD.js";
|
|
12
12
|
import {
|
|
13
13
|
findAgentById,
|
|
14
14
|
getRuntimeConfig,
|
|
@@ -327,8 +327,8 @@ function resolveAgentDef(sessionManager, sessionId) {
|
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
async function getEffectiveToolDefinitions(agentDef, sessionId, modelName) {
|
|
330
|
-
const { getToolRegistryForAgent } = await import("./tools-
|
|
331
|
-
const { isDescribeImageEligible } = await import("./describe-image-
|
|
330
|
+
const { getToolRegistryForAgent } = await import("./tools-F4COIAZR.js");
|
|
331
|
+
const { isDescribeImageEligible } = await import("./describe-image-UFOHQIPB.js");
|
|
332
332
|
const all = getToolRegistryForAgent(agentDef, sessionId).definitions;
|
|
333
333
|
const eligible = await isDescribeImageEligible(modelName);
|
|
334
334
|
if (eligible) return all;
|
|
@@ -396,4 +396,4 @@ export {
|
|
|
396
396
|
computeSessionHash,
|
|
397
397
|
applyDynamicContext
|
|
398
398
|
};
|
|
399
|
-
//# sourceMappingURL=chunk-
|
|
399
|
+
//# sourceMappingURL=chunk-RCEGPT57.js.map
|
|
@@ -207,7 +207,7 @@ async function runCli(options) {
|
|
|
207
207
|
break;
|
|
208
208
|
}
|
|
209
209
|
case "provider": {
|
|
210
|
-
const { runProviderCommand } = await import("./provider-
|
|
210
|
+
const { runProviderCommand } = await import("./provider-7LNTLWRB.js");
|
|
211
211
|
const [, subcommand] = positionals;
|
|
212
212
|
await runProviderCommand(mode, subcommand);
|
|
213
213
|
break;
|
|
@@ -252,7 +252,7 @@ async function runCli(options) {
|
|
|
252
252
|
break;
|
|
253
253
|
}
|
|
254
254
|
case "update": {
|
|
255
|
-
const { runUpdate } = await import("./update-
|
|
255
|
+
const { runUpdate } = await import("./update-5TGZTHLD.js");
|
|
256
256
|
const code = await runUpdate();
|
|
257
257
|
if (code !== 0) {
|
|
258
258
|
process.exit(code);
|
|
@@ -265,7 +265,7 @@ async function runCli(options) {
|
|
|
265
265
|
if (!configExists) {
|
|
266
266
|
await runNetworkSetup(mode);
|
|
267
267
|
}
|
|
268
|
-
const { runServe } = await import("./serve-
|
|
268
|
+
const { runServe } = await import("./serve-HTJREJEC.js");
|
|
269
269
|
const serveOptions = { mode };
|
|
270
270
|
if (values.port) serveOptions.port = parseInt(values.port);
|
|
271
271
|
if (values["no-browser"] === true) serveOptions.openBrowser = false;
|
|
@@ -277,4 +277,4 @@ async function runCli(options) {
|
|
|
277
277
|
export {
|
|
278
278
|
runCli
|
|
279
279
|
};
|
|
280
|
-
//# sourceMappingURL=chunk-
|
|
280
|
+
//# sourceMappingURL=chunk-RHUZLWZV.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
terminalManager,
|
|
10
10
|
tokenFromPassword,
|
|
11
11
|
verifyPassword
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PS5CHS7S.js";
|
|
13
13
|
import {
|
|
14
14
|
projectSessionStatus
|
|
15
15
|
} from "./chunk-T3S5MTMD.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-IJ53Y77N.js";
|
|
28
28
|
import {
|
|
29
29
|
TEMPLATE_VARIABLES
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UJO67GFD.js";
|
|
31
31
|
import {
|
|
32
32
|
createToolRegistry,
|
|
33
33
|
devServerManager,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
setMcpManagerForTools,
|
|
43
43
|
setMcpTools,
|
|
44
44
|
setNotifyMcpServersChanged
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-NDAXMOD2.js";
|
|
46
46
|
import {
|
|
47
47
|
deleteOwnedSkill,
|
|
48
48
|
deleteProjectSkill,
|
|
@@ -106,14 +106,14 @@ import {
|
|
|
106
106
|
saveWorkflow,
|
|
107
107
|
saveWorkflowToProject,
|
|
108
108
|
workflowExists
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-TJOKDC34.js";
|
|
110
110
|
import {
|
|
111
111
|
clearSessionOverrides,
|
|
112
112
|
computeDisabledServersForProject,
|
|
113
113
|
getSessionDisabledServers,
|
|
114
114
|
initSessionMcpOverrides,
|
|
115
115
|
setSessionDisabledServers
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-FBOIDBPA.js";
|
|
117
117
|
import {
|
|
118
118
|
serverT
|
|
119
119
|
} from "./chunk-JLHYB445.js";
|
|
@@ -133,7 +133,7 @@ import {
|
|
|
133
133
|
import {
|
|
134
134
|
getPendingConfirmationsBySession,
|
|
135
135
|
providePathConfirmation
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-YFTCFJJM.js";
|
|
137
137
|
import {
|
|
138
138
|
combineEventsWithSnapshot,
|
|
139
139
|
emitAssistantMessageStart,
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
getEventStore,
|
|
152
152
|
getSessionState,
|
|
153
153
|
initEventStore
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-2OTUYNXD.js";
|
|
155
155
|
import {
|
|
156
156
|
buildMessagesFromStoredEvents
|
|
157
157
|
} from "./chunk-AE2IBEUH.js";
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
updateSessionRunning,
|
|
182
182
|
updateSessionWorkdir,
|
|
183
183
|
updateWorkflowExecutionStatus
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-DBF5GKZF.js";
|
|
185
185
|
import {
|
|
186
186
|
agentExists,
|
|
187
187
|
deleteAgent,
|
|
@@ -216,13 +216,13 @@ import {
|
|
|
216
216
|
detectModel,
|
|
217
217
|
getLlmStatus,
|
|
218
218
|
parseDefaultModelSelection
|
|
219
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-H7YL7PH3.js";
|
|
220
220
|
import {
|
|
221
221
|
buildOpenFoxMcpBootstrap
|
|
222
222
|
} from "./chunk-YNMP647F.js";
|
|
223
223
|
import {
|
|
224
224
|
VERSION
|
|
225
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-LDWWVUW7.js";
|
|
226
226
|
import {
|
|
227
227
|
deleteProject,
|
|
228
228
|
getProject,
|
|
@@ -235,7 +235,7 @@ import {
|
|
|
235
235
|
import {
|
|
236
236
|
detectBackendFromUrl,
|
|
237
237
|
getBackendDisplayName
|
|
238
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-VLQ6BMU7.js";
|
|
239
239
|
import {
|
|
240
240
|
buildModelsUrl
|
|
241
241
|
} from "./chunk-HNCM3D7Y.js";
|
|
@@ -245,7 +245,7 @@ import {
|
|
|
245
245
|
import {
|
|
246
246
|
SessionNotFoundError,
|
|
247
247
|
WorkspaceInUseError
|
|
248
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-EE6VFEE6.js";
|
|
249
249
|
import {
|
|
250
250
|
deleteSetting,
|
|
251
251
|
getSetting,
|
|
@@ -3145,8 +3145,8 @@ var SessionManager = class {
|
|
|
3145
3145
|
* @throws Error for invalid payloads or unknown project
|
|
3146
3146
|
*/
|
|
3147
3147
|
async importSession(projectId, rawPayload) {
|
|
3148
|
-
const { parseSessionExport, IMPORTED_SESSION_REMINDER, SESSION_EXPORT_VERSION } = await import("./export-import-
|
|
3149
|
-
const { injectContextDriftReminders, getToolSetFingerprint } = await import("./dynamic-context-
|
|
3148
|
+
const { parseSessionExport, IMPORTED_SESSION_REMINDER, SESSION_EXPORT_VERSION } = await import("./export-import-7I7EJKTE.js");
|
|
3149
|
+
const { injectContextDriftReminders, getToolSetFingerprint } = await import("./dynamic-context-UEC6MMEV.js");
|
|
3150
3150
|
const { loadAllAgentsDefault: loadAllAgentsDefault2, resolveDefaultAgentId } = await import("./registry-PVJAAL2Y.js");
|
|
3151
3151
|
const payload = parseSessionExport(rawPayload);
|
|
3152
3152
|
if (payload.version !== SESSION_EXPORT_VERSION) {
|
|
@@ -3246,11 +3246,11 @@ var SessionManager = class {
|
|
|
3246
3246
|
return listSessions();
|
|
3247
3247
|
}
|
|
3248
3248
|
/**
|
|
3249
|
-
* Lightweight homepage list: the
|
|
3250
|
-
*
|
|
3249
|
+
* Lightweight homepage list: the 20 most recently updated sessions across
|
|
3250
|
+
* all projects, summaries only (no prompt extraction, no snapshot parsing).
|
|
3251
3251
|
*/
|
|
3252
|
-
listHomeSessions(
|
|
3253
|
-
return listHomeSessions(
|
|
3252
|
+
listHomeSessions(limit = 20) {
|
|
3253
|
+
return listHomeSessions(limit);
|
|
3254
3254
|
}
|
|
3255
3255
|
/**
|
|
3256
3256
|
* List sessions for a project with pagination.
|
|
@@ -7246,7 +7246,7 @@ function detectWsl() {
|
|
|
7246
7246
|
// src/server/index.ts
|
|
7247
7247
|
var __dirname3 = dirname7(fileURLToPath6(import.meta.url));
|
|
7248
7248
|
async function announceContextDrift(sessionManager, sessionIds) {
|
|
7249
|
-
const { injectContextDriftRemindersForSessions } = await import("./dynamic-context-
|
|
7249
|
+
const { injectContextDriftRemindersForSessions } = await import("./dynamic-context-UEC6MMEV.js");
|
|
7250
7250
|
await injectContextDriftRemindersForSessions(sessionManager, sessionIds);
|
|
7251
7251
|
}
|
|
7252
7252
|
async function createServerHandle(config3) {
|
|
@@ -7339,7 +7339,7 @@ async function createServerHandle(config3) {
|
|
|
7339
7339
|
}
|
|
7340
7340
|
});
|
|
7341
7341
|
setMcpManagerForTools(mcpManager);
|
|
7342
|
-
const { setGlobalMcpServersProvider } = await import("./session-overrides-
|
|
7342
|
+
const { setGlobalMcpServersProvider } = await import("./session-overrides-WYOY7PVC.js");
|
|
7343
7343
|
setGlobalMcpServersProvider(
|
|
7344
7344
|
() => mcpManager.getAllServers().map((s) => ({ name: s.name, disabled: s.config.disabled }))
|
|
7345
7345
|
);
|
|
@@ -7348,22 +7348,23 @@ async function createServerHandle(config3) {
|
|
|
7348
7348
|
setMcpOAuthStoreMode(config3.mode ?? "production");
|
|
7349
7349
|
setMcpOAuthStorePath(config3.globalConfigPath ? join9(dirname7(config3.globalConfigPath), "mcp-auth.json") : void 0);
|
|
7350
7350
|
const mcpServers = config3.mcpServers ?? {};
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7351
|
+
async function connectMcpServers() {
|
|
7352
|
+
await Promise.all(
|
|
7353
|
+
Object.entries(mcpServers).map(
|
|
7354
|
+
([name, serverConfig]) => mcpManager.addServer(name, serverConfig).catch((err) => {
|
|
7355
|
+
logger.warn("Failed to connect MCP server on startup", { name, error: String(err) });
|
|
7356
|
+
})
|
|
7357
|
+
)
|
|
7358
|
+
);
|
|
7358
7359
|
const mcpTools = createMcpTools(mcpManager);
|
|
7359
7360
|
if (mcpTools.length > 0) {
|
|
7360
7361
|
setMcpTools(mcpTools);
|
|
7361
7362
|
toolRegistry = createToolRegistry();
|
|
7362
7363
|
logger.info("MCP tools registered", { count: mcpTools.length });
|
|
7363
7364
|
}
|
|
7364
|
-
const { signalMcpReady } = await import("./server-
|
|
7365
|
+
const { signalMcpReady } = await import("./server-5FECIKQK.js");
|
|
7365
7366
|
signalMcpReady();
|
|
7366
|
-
}
|
|
7367
|
+
}
|
|
7367
7368
|
const app = express();
|
|
7368
7369
|
app.use(cors());
|
|
7369
7370
|
const authMiddleware = async (req, res, next) => {
|
|
@@ -7576,9 +7577,9 @@ async function createServerHandle(config3) {
|
|
|
7576
7577
|
const sessionFavoriteRouter = express.Router();
|
|
7577
7578
|
registerSessionFavoriteRoute(sessionFavoriteRouter, sessionManager);
|
|
7578
7579
|
app.use("/api", sessionFavoriteRouter);
|
|
7579
|
-
const { createTasksService } = await import("./service-
|
|
7580
|
-
const { registerTaskRoutes } = await import("./tasks-
|
|
7581
|
-
const { setTasksService } = await import("./tools-
|
|
7580
|
+
const { createTasksService } = await import("./service-7QKWUNU4.js");
|
|
7581
|
+
const { registerTaskRoutes } = await import("./tasks-E7EG7344.js");
|
|
7582
|
+
const { setTasksService } = await import("./tools-F4COIAZR.js");
|
|
7582
7583
|
const tasksService = createTasksService({
|
|
7583
7584
|
sessionManager,
|
|
7584
7585
|
config: config3,
|
|
@@ -7610,7 +7611,7 @@ async function createServerHandle(config3) {
|
|
|
7610
7611
|
}
|
|
7611
7612
|
try {
|
|
7612
7613
|
await checkoutBranch(project.workdir, branch);
|
|
7613
|
-
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-
|
|
7614
|
+
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-U6D2T5QP.js");
|
|
7614
7615
|
const allSessions = sessionManager.listSessions();
|
|
7615
7616
|
for (const s of allSessions) {
|
|
7616
7617
|
if (sessionManager.getEffectiveWorkdir(s.id) === project.workdir) {
|
|
@@ -7646,7 +7647,7 @@ async function createServerHandle(config3) {
|
|
|
7646
7647
|
);
|
|
7647
7648
|
}
|
|
7648
7649
|
await createBranch(project.workdir, name, sb);
|
|
7649
|
-
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-
|
|
7650
|
+
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-U6D2T5QP.js");
|
|
7650
7651
|
const allSessions = sessionManager.listSessions();
|
|
7651
7652
|
for (const s of allSessions) {
|
|
7652
7653
|
if (sessionManager.getEffectiveWorkdir(s.id) === project.workdir) {
|
|
@@ -7678,7 +7679,7 @@ async function createServerHandle(config3) {
|
|
|
7678
7679
|
if (!branch || typeof branch !== "string") return res.status(400).json({ error: "branch is required" });
|
|
7679
7680
|
const effectiveWorkdir = sessionManager.getEffectiveWorkdir(req.params.id);
|
|
7680
7681
|
const { checkoutBranch, validateRef: validateRef2 } = await import("./workspace-LM646OHC.js");
|
|
7681
|
-
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-
|
|
7682
|
+
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-U6D2T5QP.js");
|
|
7682
7683
|
try {
|
|
7683
7684
|
await validateRef2(effectiveWorkdir, branch);
|
|
7684
7685
|
await checkoutBranch(effectiveWorkdir, branch);
|
|
@@ -7721,7 +7722,7 @@ All file and git operations should use this branch.
|
|
|
7721
7722
|
if (!name || typeof name !== "string") return res.status(400).json({ error: "name is required" });
|
|
7722
7723
|
const effectiveWorkdir = sessionManager.getEffectiveWorkdir(req.params.id);
|
|
7723
7724
|
const { validateRef: validateRef2 } = await import("./workspace-LM646OHC.js");
|
|
7724
|
-
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-
|
|
7725
|
+
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-U6D2T5QP.js");
|
|
7725
7726
|
try {
|
|
7726
7727
|
await validateRef2(effectiveWorkdir, name);
|
|
7727
7728
|
if (sourceBranch) {
|
|
@@ -7776,8 +7777,8 @@ All file and git operations should use this branch.
|
|
|
7776
7777
|
res.json({ workspaces: workspacesList });
|
|
7777
7778
|
});
|
|
7778
7779
|
app.get("/api/sessions", async (req, res) => {
|
|
7779
|
-
const { getRecentUserPromptsForSession } = await import("./events-
|
|
7780
|
-
const { getPendingConfirmationsBySession: getPendingConfirmationsBySession2 } = await import("./path-security-
|
|
7780
|
+
const { getRecentUserPromptsForSession } = await import("./events-73MLUDTX.js");
|
|
7781
|
+
const { getPendingConfirmationsBySession: getPendingConfirmationsBySession2 } = await import("./path-security-MQXMTFRU.js");
|
|
7781
7782
|
const projectId = req.query["projectId"];
|
|
7782
7783
|
const rawLimit = req.query["limit"];
|
|
7783
7784
|
const offset = parseInt(req.query["offset"]) || 0;
|
|
@@ -7849,7 +7850,7 @@ All file and git operations should use this branch.
|
|
|
7849
7850
|
}
|
|
7850
7851
|
const { providerId, model } = parseDefaultModelSelection(config3.defaultModelSelection);
|
|
7851
7852
|
const session = sessionManager.createSession(projectId, title, providerId ?? null, model ?? null);
|
|
7852
|
-
wssExports.
|
|
7853
|
+
wssExports.broadcastAll(buildSessionCreatedMessage(session));
|
|
7853
7854
|
res.status(201).json({ session: toClientSession(session) });
|
|
7854
7855
|
});
|
|
7855
7856
|
app.post("/api/sessions/:id/switch-workspace", async (req, res) => {
|
|
@@ -7895,9 +7896,9 @@ All file and git operations should use this branch.
|
|
|
7895
7896
|
}
|
|
7896
7897
|
});
|
|
7897
7898
|
app.get("/api/sessions/:id", async (req, res) => {
|
|
7898
|
-
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEventsWithSnapshot2 } = await import("./events-
|
|
7899
|
+
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEventsWithSnapshot2 } = await import("./events-73MLUDTX.js");
|
|
7899
7900
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations } = await import("./folding-BXMVJIFF.js");
|
|
7900
|
-
const { getPendingQuestionsForSession: getPendingQuestionsForSession2 } = await import("./tools-
|
|
7901
|
+
const { getPendingQuestionsForSession: getPendingQuestionsForSession2 } = await import("./tools-F4COIAZR.js");
|
|
7901
7902
|
const { getMaxVisibleItems } = await import("./settings-HCSHADP5.js");
|
|
7902
7903
|
const session = sessionManager.getSession(req.params.id);
|
|
7903
7904
|
if (!session) {
|
|
@@ -7926,8 +7927,8 @@ All file and git operations should use this branch.
|
|
|
7926
7927
|
});
|
|
7927
7928
|
app.get("/api/sessions/:id/status", async (req, res) => {
|
|
7928
7929
|
const { projectSessionStatus: projectSessionStatus2 } = await import("./session-status-UFO5IFI7.js");
|
|
7929
|
-
const { getPendingQuestionsForSession: getPendingQuestionsForSession2 } = await import("./tools-
|
|
7930
|
-
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEventsWithSnapshot2 } = await import("./events-
|
|
7930
|
+
const { getPendingQuestionsForSession: getPendingQuestionsForSession2 } = await import("./tools-F4COIAZR.js");
|
|
7931
|
+
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEventsWithSnapshot2 } = await import("./events-73MLUDTX.js");
|
|
7931
7932
|
const { foldPendingConfirmations } = await import("./folding-BXMVJIFF.js");
|
|
7932
7933
|
const sessionId = req.params["id"];
|
|
7933
7934
|
if (!sessionId) {
|
|
@@ -7958,8 +7959,8 @@ All file and git operations should use this branch.
|
|
|
7958
7959
|
if (!session) {
|
|
7959
7960
|
return res.status(404).json({ error: "Session not found" });
|
|
7960
7961
|
}
|
|
7961
|
-
const { stopSessionExecution } = await import("./chat-handler-
|
|
7962
|
-
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-
|
|
7962
|
+
const { stopSessionExecution } = await import("./chat-handler-F7QRNO2E.js");
|
|
7963
|
+
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-F4COIAZR.js");
|
|
7963
7964
|
sessionManager.clearMessageQueue(sessionId);
|
|
7964
7965
|
stopSessionExecution(sessionId, sessionManager);
|
|
7965
7966
|
abortSession(sessionId);
|
|
@@ -7988,7 +7989,7 @@ All file and git operations should use this branch.
|
|
|
7988
7989
|
res.json({ success: true });
|
|
7989
7990
|
});
|
|
7990
7991
|
app.post("/api/sessions/:id/provider", async (req, res) => {
|
|
7991
|
-
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEv } = await import("./events-
|
|
7992
|
+
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEv } = await import("./events-73MLUDTX.js");
|
|
7992
7993
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-BXMVJIFF.js");
|
|
7993
7994
|
const { getMaxVisibleItems } = await import("./settings-HCSHADP5.js");
|
|
7994
7995
|
const sessionId = req.params.id;
|
|
@@ -8019,7 +8020,7 @@ All file and git operations should use this branch.
|
|
|
8019
8020
|
res.json({ session: toClientSession(updatedSession), messages, hiddenCount, contextState });
|
|
8020
8021
|
});
|
|
8021
8022
|
app.delete("/api/sessions/:id/provider", async (req, res) => {
|
|
8022
|
-
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEv } = await import("./events-
|
|
8023
|
+
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEv } = await import("./events-73MLUDTX.js");
|
|
8023
8024
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-BXMVJIFF.js");
|
|
8024
8025
|
const { getMaxVisibleItems } = await import("./settings-HCSHADP5.js");
|
|
8025
8026
|
const sessionId = req.params.id;
|
|
@@ -8153,7 +8154,7 @@ All file and git operations should use this branch.
|
|
|
8153
8154
|
res.json({ success: true });
|
|
8154
8155
|
});
|
|
8155
8156
|
app.put("/api/sessions/:id/mode", async (req, res) => {
|
|
8156
|
-
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEv } = await import("./events-
|
|
8157
|
+
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEv } = await import("./events-73MLUDTX.js");
|
|
8157
8158
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-BXMVJIFF.js");
|
|
8158
8159
|
const { getMaxVisibleItems } = await import("./settings-HCSHADP5.js");
|
|
8159
8160
|
const sessionId = req.params.id;
|
|
@@ -8191,7 +8192,7 @@ All file and git operations should use this branch.
|
|
|
8191
8192
|
}
|
|
8192
8193
|
sessionManager.setDangerLevel(sessionId, dangerLevel);
|
|
8193
8194
|
if (dangerLevel === "dangerous") {
|
|
8194
|
-
const { autoApprovePendingConfirmationsForSession } = await import("./tools-
|
|
8195
|
+
const { autoApprovePendingConfirmationsForSession } = await import("./tools-F4COIAZR.js");
|
|
8195
8196
|
const approvedCallIds = autoApprovePendingConfirmationsForSession(sessionId);
|
|
8196
8197
|
for (const callId of approvedCallIds) {
|
|
8197
8198
|
wssExports.broadcastForSession(sessionId, {
|
|
@@ -8226,7 +8227,7 @@ All file and git operations should use this branch.
|
|
|
8226
8227
|
setSessionDisabledServers(sessionId, disabledServers);
|
|
8227
8228
|
const messages = session.messages ?? [];
|
|
8228
8229
|
if (messages.length === 0) {
|
|
8229
|
-
const { applyDynamicContext } = await import("./dynamic-context-
|
|
8230
|
+
const { applyDynamicContext } = await import("./dynamic-context-UEC6MMEV.js");
|
|
8230
8231
|
const modelName = session.providerModel ?? providerManager.getCurrentModel();
|
|
8231
8232
|
await applyDynamicContext(sessionManager, sessionId, modelName);
|
|
8232
8233
|
} else {
|
|
@@ -8260,7 +8261,7 @@ All file and git operations should use this branch.
|
|
|
8260
8261
|
if (alwaysAllow !== void 0 && typeof alwaysAllow !== "boolean") {
|
|
8261
8262
|
return res.status(400).json({ error: "alwaysAllow must be a boolean if provided" });
|
|
8262
8263
|
}
|
|
8263
|
-
const { providePathConfirmation: providePathConfirmation2, getConfirmationSessionId } = await import("./tools-
|
|
8264
|
+
const { providePathConfirmation: providePathConfirmation2, getConfirmationSessionId } = await import("./tools-F4COIAZR.js");
|
|
8264
8265
|
const pendingSessionId = getConfirmationSessionId(callId);
|
|
8265
8266
|
if (!pendingSessionId) {
|
|
8266
8267
|
return res.status(404).json({ error: "No pending path confirmation with that ID" });
|
|
@@ -8272,10 +8273,10 @@ All file and git operations should use this branch.
|
|
|
8272
8273
|
if (!result.found) {
|
|
8273
8274
|
return res.status(404).json({ error: "No pending path confirmation with that ID" });
|
|
8274
8275
|
}
|
|
8275
|
-
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEvents } = await import("./events-
|
|
8276
|
+
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEvents } = await import("./events-73MLUDTX.js");
|
|
8276
8277
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations } = await import("./folding-BXMVJIFF.js");
|
|
8277
8278
|
const { createSessionStateMessage } = await import("./protocol-MRMOB3P4.js");
|
|
8278
|
-
const { getPendingQuestionsForSession: getPendingQuestionsForSession2 } = await import("./tools-
|
|
8279
|
+
const { getPendingQuestionsForSession: getPendingQuestionsForSession2 } = await import("./tools-F4COIAZR.js");
|
|
8279
8280
|
const { getMaxVisibleItems } = await import("./settings-HCSHADP5.js");
|
|
8280
8281
|
const eventStore = getEventStore2();
|
|
8281
8282
|
const { snapshot, events: eventsSinceSnapshot } = eventStore.getEventsSinceSnapshot(sessionId);
|
|
@@ -8313,7 +8314,7 @@ All file and git operations should use this branch.
|
|
|
8313
8314
|
if (!skip && typeof answer !== "string") {
|
|
8314
8315
|
return res.status(400).json({ error: "answer is required when not skipping" });
|
|
8315
8316
|
}
|
|
8316
|
-
const { provideAnswer: provideAnswer2 } = await import("./tools-
|
|
8317
|
+
const { provideAnswer: provideAnswer2 } = await import("./tools-F4COIAZR.js");
|
|
8317
8318
|
const found = provideAnswer2(callId, answer ?? "", skip ?? false);
|
|
8318
8319
|
if (!found) {
|
|
8319
8320
|
return res.status(404).json({ error: "No pending question with that ID" });
|
|
@@ -8379,7 +8380,7 @@ All file and git operations should use this branch.
|
|
|
8379
8380
|
backend: activeProvider?.backend ?? llmClient.getBackend(),
|
|
8380
8381
|
model: llmClient.getModel()
|
|
8381
8382
|
};
|
|
8382
|
-
const { runAgentTurn, TurnMetrics } = await import("./orchestrator-
|
|
8383
|
+
const { runAgentTurn, TurnMetrics } = await import("./orchestrator-IRUEM4R4.js");
|
|
8383
8384
|
runAgentTurn(
|
|
8384
8385
|
{
|
|
8385
8386
|
sessionManager,
|
|
@@ -8417,15 +8418,15 @@ All file and git operations should use this branch.
|
|
|
8417
8418
|
if (!session) {
|
|
8418
8419
|
return res.status(404).json({ error: "Session not found" });
|
|
8419
8420
|
}
|
|
8420
|
-
const { stopSessionExecution } = await import("./chat-handler-
|
|
8421
|
-
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-
|
|
8421
|
+
const { stopSessionExecution } = await import("./chat-handler-F7QRNO2E.js");
|
|
8422
|
+
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-F4COIAZR.js");
|
|
8422
8423
|
const queuedMessages = sessionManager.getQueueState(sessionId);
|
|
8423
8424
|
sessionManager.clearMessageQueue(sessionId);
|
|
8424
8425
|
stopSessionExecution(sessionId, sessionManager);
|
|
8425
8426
|
abortSession(sessionId);
|
|
8426
8427
|
cancelQuestionsForSession(sessionId, "Session stopped by user");
|
|
8427
8428
|
cancelPathConfirmationsForSession(sessionId, "Session stopped by user");
|
|
8428
|
-
const eventStore = (await import("./events-
|
|
8429
|
+
const eventStore = (await import("./events-73MLUDTX.js")).getEventStore();
|
|
8429
8430
|
eventStore.append(sessionId, { type: "running.changed", data: { isRunning: false } });
|
|
8430
8431
|
res.json({ success: true, queuedMessages });
|
|
8431
8432
|
});
|
|
@@ -8466,7 +8467,7 @@ All file and git operations should use this branch.
|
|
|
8466
8467
|
if (typeof messageIndex !== "number" || messageIndex < 0) {
|
|
8467
8468
|
return res.status(400).json({ error: "messageIndex must be a non-negative number" });
|
|
8468
8469
|
}
|
|
8469
|
-
const { truncateSessionMessages } = await import("./events-
|
|
8470
|
+
const { truncateSessionMessages } = await import("./events-73MLUDTX.js");
|
|
8470
8471
|
truncateSessionMessages(sessionId, messageIndex);
|
|
8471
8472
|
res.json({ success: true });
|
|
8472
8473
|
});
|
|
@@ -8486,7 +8487,7 @@ All file and git operations should use this branch.
|
|
|
8486
8487
|
if (attachments !== void 0 && !Array.isArray(attachments)) {
|
|
8487
8488
|
return res.status(400).json({ error: "attachments must be an array if provided" });
|
|
8488
8489
|
}
|
|
8489
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
8490
|
+
const { getEventStore: getEventStore2 } = await import("./events-73MLUDTX.js");
|
|
8490
8491
|
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-BXMVJIFF.js");
|
|
8491
8492
|
const eventStore = getEventStore2();
|
|
8492
8493
|
const events = eventStore.getEvents(sessionId);
|
|
@@ -8499,7 +8500,7 @@ All file and git operations should use this branch.
|
|
|
8499
8500
|
if (msg.role !== "user" || msg.isSystemGenerated) {
|
|
8500
8501
|
return res.status(400).json({ error: "Can only replay user messages" });
|
|
8501
8502
|
}
|
|
8502
|
-
const { truncateSessionMessages } = await import("./events-
|
|
8503
|
+
const { truncateSessionMessages } = await import("./events-73MLUDTX.js");
|
|
8503
8504
|
truncateSessionMessages(sessionId, msgIndex - 1);
|
|
8504
8505
|
sessionManager.queueMessage(
|
|
8505
8506
|
sessionId,
|
|
@@ -8541,7 +8542,7 @@ All file and git operations should use this branch.
|
|
|
8541
8542
|
return res.status(404).json({ error: "Session not found" });
|
|
8542
8543
|
}
|
|
8543
8544
|
try {
|
|
8544
|
-
const { buildSessionExport } = await import("./export-import-
|
|
8545
|
+
const { buildSessionExport } = await import("./export-import-7I7EJKTE.js");
|
|
8545
8546
|
const payload = buildSessionExport(sessionManager, sessionId);
|
|
8546
8547
|
const filename = `${(payload.session.title ?? "session").replace(/[^a-zA-Z0-9-_]/g, "_")}.openfox-session.json`;
|
|
8547
8548
|
res.setHeader("Content-Disposition", `attachment; filename="${filename}"`);
|
|
@@ -8863,7 +8864,7 @@ All file and git operations should use this branch.
|
|
|
8863
8864
|
const backend = req.query["backend"];
|
|
8864
8865
|
if (!url) return res.status(400).json({ error: "url is required" });
|
|
8865
8866
|
try {
|
|
8866
|
-
const { fetchModelsWithContext } = await import("./provider-manager-
|
|
8867
|
+
const { fetchModelsWithContext } = await import("./provider-manager-TV5I5YJH.js");
|
|
8867
8868
|
const { getModelProfile: getModelProfile2 } = await import("./profiles-EBCVFYG7.js");
|
|
8868
8869
|
const { getCatalogEntry } = await import("./model-catalog-Y5MA5OZP.js");
|
|
8869
8870
|
const models = await fetchModelsWithContext(
|
|
@@ -8936,9 +8937,9 @@ All file and git operations should use this branch.
|
|
|
8936
8937
|
return res.json({ success: true, message: { content: response2.content }, raw: response2 });
|
|
8937
8938
|
}
|
|
8938
8939
|
const { getModelProfile: getModelProfile2 } = await import("./profiles-EBCVFYG7.js");
|
|
8939
|
-
const { getBackendCapabilities } = await import("./backend-
|
|
8940
|
+
const { getBackendCapabilities } = await import("./backend-EPISSWLB.js");
|
|
8940
8941
|
const { buildNonStreamingCreateParams } = await import("./client-pure-YZ4IGCU4.js");
|
|
8941
|
-
const { OpenAIHttpClient } = await import("./http-client-
|
|
8942
|
+
const { OpenAIHttpClient } = await import("./http-client-JVJ43TBY.js");
|
|
8942
8943
|
const { ensureVersionPrefix } = await import("./url-utils-C5BM7NF7.js");
|
|
8943
8944
|
const profile = getModelProfile2(model);
|
|
8944
8945
|
const capabilities = getBackendCapabilities(backend || "unknown");
|
|
@@ -9364,7 +9365,7 @@ All file and git operations should use this branch.
|
|
|
9364
9365
|
});
|
|
9365
9366
|
async function rebuildMcpTools() {
|
|
9366
9367
|
const { createMcpTools: createMcpTools2 } = await import("./tool-adapter-ZY4FC4C4.js");
|
|
9367
|
-
const { setMcpTools: setMcpTools2 } = await import("./tools-
|
|
9368
|
+
const { setMcpTools: setMcpTools2 } = await import("./tools-F4COIAZR.js");
|
|
9368
9369
|
const mcpTools = createMcpTools2(mcpManager);
|
|
9369
9370
|
setMcpTools2(mcpTools);
|
|
9370
9371
|
toolRegistry = createToolRegistry();
|
|
@@ -9939,8 +9940,8 @@ All file and git operations should use this branch.
|
|
|
9939
9940
|
() => mcpManager.getAllServers()
|
|
9940
9941
|
);
|
|
9941
9942
|
const wss = wssExports.wss;
|
|
9942
|
-
deferTasksBroadcast = (
|
|
9943
|
-
const { launchWorkflowRun, abortRunnerRun } = await import("./launch-
|
|
9943
|
+
deferTasksBroadcast = (_projectId, payload) => wssExports.broadcastAll({ type: "tasks.update", payload });
|
|
9944
|
+
const { launchWorkflowRun, abortRunnerRun } = await import("./launch-77CO4C7W.js");
|
|
9944
9945
|
deferTasksLaunchWorkflow = (sessionId, launch) => {
|
|
9945
9946
|
const effective = sessionManager.resolveEffectiveProviderModel(sessionId);
|
|
9946
9947
|
let llmClient = getLLMClient();
|
|
@@ -9985,7 +9986,7 @@ All file and git operations should use this branch.
|
|
|
9985
9986
|
const state = sessionManager.getContextState(sessionId);
|
|
9986
9987
|
wssExports.broadcastForSession(sessionId, createContextStateMessage(state));
|
|
9987
9988
|
});
|
|
9988
|
-
const { QueueProcessor } = await import("./processor-
|
|
9989
|
+
const { QueueProcessor } = await import("./processor-VMUKAMG6.js");
|
|
9989
9990
|
const queueProcessor = new QueueProcessor({
|
|
9990
9991
|
sessionManager,
|
|
9991
9992
|
providerManager,
|
|
@@ -10027,8 +10028,8 @@ All file and git operations should use this branch.
|
|
|
10027
10028
|
launchWorkflow: (sessionId, launch) => deferTasksLaunchWorkflow(sessionId, launch),
|
|
10028
10029
|
stopSession: (sessionId) => {
|
|
10029
10030
|
void (async () => {
|
|
10030
|
-
const { stopSessionExecution } = await import("./chat-handler-
|
|
10031
|
-
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-
|
|
10031
|
+
const { stopSessionExecution } = await import("./chat-handler-F7QRNO2E.js");
|
|
10032
|
+
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-F4COIAZR.js");
|
|
10032
10033
|
sessionManager.clearMessageQueue(sessionId);
|
|
10033
10034
|
stopSessionExecution(sessionId, sessionManager);
|
|
10034
10035
|
abortSession(sessionId);
|
|
@@ -10091,6 +10092,11 @@ All file and git operations should use this branch.
|
|
|
10091
10092
|
const actualPort = typeof addr === "object" && addr ? addr.port : listenPort;
|
|
10092
10093
|
setMcpOAuthServerPort(actualPort);
|
|
10093
10094
|
mcpActualPort = actualPort;
|
|
10095
|
+
connectMcpServers().catch((err) => {
|
|
10096
|
+
logger.error("MCP server startup connection failed", {
|
|
10097
|
+
error: err instanceof Error ? err.message : String(err)
|
|
10098
|
+
});
|
|
10099
|
+
});
|
|
10094
10100
|
const client = getLLMClient();
|
|
10095
10101
|
logger.info(`OpenFox server running at http://${host}:${actualPort}`);
|
|
10096
10102
|
logger.info(`WebSocket available at ws://${host}:${actualPort}/ws`);
|
|
@@ -10149,4 +10155,4 @@ export {
|
|
|
10149
10155
|
createServerHandle,
|
|
10150
10156
|
createServer
|
|
10151
10157
|
};
|
|
10152
|
-
//# sourceMappingURL=chunk-
|
|
10158
|
+
//# sourceMappingURL=chunk-SKHU4M6L.js.map
|