openfox 2.0.138 → 2.0.139
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 +10 -0
- package/dist/CHANGELOG.md +10 -0
- package/dist/{chat-handler-AUB5HDQD.js → chat-handler-KGITQAXC.js} +22 -22
- package/dist/{chunk-QBWJCO5K.js → chunk-22DV5XO7.js} +3 -3
- package/dist/{chunk-MOYWDP73.js → chunk-46Q2SHGJ.js} +2 -2
- package/dist/{chunk-BHVR2YS5.js → chunk-4F4ARGAM.js} +2 -2
- package/dist/{chunk-X4PVR6AW.js → chunk-7OHSAZLF.js} +2 -2
- package/dist/{chunk-MMGHIPBU.js → chunk-AE2IBEUH.js} +2 -2
- package/dist/{chunk-2Q4THMD7.js → chunk-AM5FAZJK.js} +12 -12
- package/dist/{chunk-HI25RCRW.js → chunk-C543DUKL.js} +89 -89
- package/dist/{chunk-Q33DL67W.js → chunk-CRJ5J7U5.js} +2 -2
- package/dist/{chunk-BENMBAU2.js → chunk-CXB4HJAM.js} +7 -7
- package/dist/{chunk-5CZPHAHN.js → chunk-EGF3PREY.js} +9 -9
- package/dist/{chunk-G5GUQKLS.js → chunk-EJ5GFSD4.js} +2 -2
- package/dist/{chunk-QUAEH3MP.js → chunk-EMXMTCSY.js} +3 -1
- package/dist/{chunk-RJ2GRUVF.js → chunk-EXQI5TVW.js} +4 -4
- package/dist/{chunk-DG2YSWMC.js → chunk-FIEFBRTQ.js} +2 -2
- package/dist/{chunk-4LLGI372.js → chunk-GKRYQ56N.js} +34 -3
- package/dist/{chunk-4SBVW4UH.js → chunk-JLHYB445.js} +2 -2
- package/dist/{chunk-2OO46UAW.js → chunk-JTR3PC5I.js} +5 -5
- package/dist/{chunk-N5JKVNLH.js → chunk-LSO3IGJ4.js} +2 -2
- package/dist/{chunk-76C2PVOC.js → chunk-MAUQ6AW4.js} +6 -6
- package/dist/{chunk-N3PANDLT.js → chunk-N4RAVCLZ.js} +18 -18
- package/dist/{chunk-DBCWILV3.js → chunk-RG326HS4.js} +3 -3
- package/dist/{chunk-U7XCK7WL.js → chunk-TG65PHHY.js} +3 -3
- package/dist/{chunk-2KCREKHC.js → chunk-TVSIWRKE.js} +17 -17
- package/dist/{chunk-SAGDTQXD.js → chunk-UA2ATO3B.js} +3 -3
- package/dist/{chunk-64YDOCQR.js → chunk-VCLAPTWM.js} +2 -2
- package/dist/{chunk-XS2QQERB.js → chunk-YIEIVHCQ.js} +7 -7
- package/dist/chunk-Z7MGLDLK.js +7 -0
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{client-MVI3J7SN.js → client-6KC6SP2U.js} +4 -4
- package/dist/{compactor-KDTY4ERE.js → compactor-T7S4DIR3.js} +9 -9
- package/dist/{describe-image-AU6KBSWA.js → describe-image-TQOD52IC.js} +10 -10
- package/dist/{dynamic-context-SKHOUP4T.js → dynamic-context-3MAA4AQR.js} +10 -10
- package/dist/{events-ADE2KEHI.js → events-ZLP5V2YU.js} +6 -6
- package/dist/{export-import-SC3UW22Z.js → export-import-ZJFYZJOP.js} +7 -7
- package/dist/{folding-CM63AVSB.js → folding-BXMVJIFF.js} +4 -4
- package/dist/{http-client-C6UYWVWZ.js → http-client-VMRQHMF7.js} +3 -3
- package/dist/{launch-PTMPNZEN.js → launch-73LDMGCT.js} +22 -22
- package/dist/{manager-FSPRJCYT.js → manager-JZNNVDYR.js} +4 -4
- package/dist/{orchestrator-KRHMAVBN.js → orchestrator-MMHV6SZY.js} +21 -21
- package/dist/package.json +1 -1
- package/dist/{path-security-YP2MRJNS.js → path-security-V3XALT5E.js} +8 -8
- package/dist/{platform-KPKYBU54.js → platform-DBPLSLE4.js} +3 -3
- package/dist/{processor-QZOGF5ES.js → processor-2M7N26QG.js} +21 -21
- package/dist/{provider-SOC6Z25R.js → provider-MEENS4SB.js} +5 -5
- package/dist/{provider-manager-Y53SVVQ3.js → provider-manager-3MV7KDAD.js} +5 -5
- package/dist/{registry-FMDMGIUB.js → registry-PVJAAL2Y.js} +3 -3
- package/dist/{serve-LVDF4XLG.js → serve-FN5XKUTC.js} +27 -27
- package/dist/server/index.js +26 -26
- package/dist/{server-AIRQGHHR.js → server-B4AJ7ETE.js} +25 -25
- package/dist/{service-NKLQH647.js → service-JL55SFPL.js} +7 -7
- package/dist/{session-overrides-ANQBKV74.js → session-overrides-7OPGV7CQ.js} +5 -5
- package/dist/{sessions-GLYACE5R.js → sessions-VHS47DHO.js} +4 -4
- package/dist/{settings-WH6BVQCP.js → settings-HCSHADP5.js} +2 -2
- package/dist/{tasks-GPM3JAE6.js → tasks-ZMJCHW7E.js} +7 -7
- package/dist/{tools-NIPKV4YY.js → tools-LZHSSSK4.js} +19 -19
- package/dist/{update-Y5QXN3FK.js → update-L2XK6UDC.js} +2 -2
- package/dist/web/assets/{index-C1oW6oq0.css → index-D3bx1-1j.css} +1 -1
- package/dist/web/assets/{index-CTAslWsi.js → index-dJREs6rO.js} +58 -58
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-OU7WD35E.js +0 -7
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
terminalManager,
|
|
10
10
|
tokenFromPassword,
|
|
11
11
|
verifyPassword
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TVSIWRKE.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-EGF3PREY.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-N4RAVCLZ.js";
|
|
46
46
|
import {
|
|
47
47
|
deleteOwnedSkill,
|
|
48
48
|
deleteProjectSkill,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
setSkillEnabled,
|
|
62
62
|
skillExists,
|
|
63
63
|
updateOwnedSkill
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-CRJ5J7U5.js";
|
|
65
65
|
import {
|
|
66
66
|
checkoutBranchFromSharedSource,
|
|
67
67
|
deleteWorkspace,
|
|
@@ -106,22 +106,22 @@ import {
|
|
|
106
106
|
saveWorkflow,
|
|
107
107
|
saveWorkflowToProject,
|
|
108
108
|
workflowExists
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-22DV5XO7.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-FIEFBRTQ.js";
|
|
117
117
|
import {
|
|
118
118
|
serverT
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-JLHYB445.js";
|
|
120
120
|
import {
|
|
121
121
|
ALWAYS_ALLOWED,
|
|
122
122
|
ALWAYS_ALLOWED_FOR_SUBAGENTS,
|
|
123
123
|
TOP_LEVEL_ONLY_TOOLS
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-GKRYQ56N.js";
|
|
125
125
|
import {
|
|
126
126
|
createMcpTools
|
|
127
127
|
} from "./chunk-VIJVLLPT.js";
|
|
@@ -133,7 +133,7 @@ import {
|
|
|
133
133
|
import {
|
|
134
134
|
getPendingConfirmationsBySession,
|
|
135
135
|
providePathConfirmation
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-RG326HS4.js";
|
|
137
137
|
import {
|
|
138
138
|
combineEventsWithSnapshot,
|
|
139
139
|
emitAssistantMessageStart,
|
|
@@ -151,10 +151,10 @@ import {
|
|
|
151
151
|
getEventStore,
|
|
152
152
|
getSessionState,
|
|
153
153
|
initEventStore
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-JTR3PC5I.js";
|
|
155
155
|
import {
|
|
156
156
|
buildMessagesFromStoredEvents
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-AE2IBEUH.js";
|
|
158
158
|
import {
|
|
159
159
|
clearWorkflowExecution,
|
|
160
160
|
createSession,
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
updateSessionRunning,
|
|
182
182
|
updateSessionWorkdir,
|
|
183
183
|
updateWorkflowExecutionStatus
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-7OHSAZLF.js";
|
|
185
185
|
import {
|
|
186
186
|
agentExists,
|
|
187
187
|
deleteAgent,
|
|
@@ -198,7 +198,7 @@ import {
|
|
|
198
198
|
saveAgent,
|
|
199
199
|
saveAgentToProject,
|
|
200
200
|
setRuntimeConfig
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-4F4ARGAM.js";
|
|
202
202
|
import {
|
|
203
203
|
findFileByInternalId,
|
|
204
204
|
pathExists
|
|
@@ -210,19 +210,19 @@ import {
|
|
|
210
210
|
import {
|
|
211
211
|
getPathSeparator,
|
|
212
212
|
isAbsolutePath
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-46Q2SHGJ.js";
|
|
214
214
|
import {
|
|
215
215
|
createProviderManager,
|
|
216
216
|
detectModel,
|
|
217
217
|
getLlmStatus,
|
|
218
218
|
parseDefaultModelSelection
|
|
219
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-EJ5GFSD4.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-Z7MGLDLK.js";
|
|
226
226
|
import {
|
|
227
227
|
deleteProject,
|
|
228
228
|
getProject,
|
|
@@ -245,12 +245,12 @@ import {
|
|
|
245
245
|
import {
|
|
246
246
|
SessionNotFoundError,
|
|
247
247
|
WorkspaceInUseError
|
|
248
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-LSO3IGJ4.js";
|
|
249
249
|
import {
|
|
250
250
|
deleteSetting,
|
|
251
251
|
getSetting,
|
|
252
252
|
setSetting
|
|
253
|
-
} from "./chunk-
|
|
253
|
+
} from "./chunk-EMXMTCSY.js";
|
|
254
254
|
import {
|
|
255
255
|
initDatabase
|
|
256
256
|
} from "./chunk-JU757HVI.js";
|
|
@@ -3145,9 +3145,9 @@ 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-
|
|
3150
|
-
const { loadAllAgentsDefault: loadAllAgentsDefault2, resolveDefaultAgentId } = await import("./registry-
|
|
3148
|
+
const { parseSessionExport, IMPORTED_SESSION_REMINDER, SESSION_EXPORT_VERSION } = await import("./export-import-ZJFYZJOP.js");
|
|
3149
|
+
const { injectContextDriftReminders, getToolSetFingerprint } = await import("./dynamic-context-3MAA4AQR.js");
|
|
3150
|
+
const { loadAllAgentsDefault: loadAllAgentsDefault2, resolveDefaultAgentId } = await import("./registry-PVJAAL2Y.js");
|
|
3151
3151
|
const payload = parseSessionExport(rawPayload);
|
|
3152
3152
|
if (payload.version !== SESSION_EXPORT_VERSION) {
|
|
3153
3153
|
throw new Error(`Unsupported session export version: ${payload.version}`);
|
|
@@ -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-3MAA4AQR.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-7OPGV7CQ.js");
|
|
7343
7343
|
setGlobalMcpServersProvider(
|
|
7344
7344
|
() => mcpManager.getAllServers().map((s) => ({ name: s.name, disabled: s.config.disabled }))
|
|
7345
7345
|
);
|
|
@@ -7361,7 +7361,7 @@ async function createServerHandle(config3) {
|
|
|
7361
7361
|
toolRegistry = createToolRegistry();
|
|
7362
7362
|
logger.info("MCP tools registered", { count: mcpTools.length });
|
|
7363
7363
|
}
|
|
7364
|
-
const { signalMcpReady } = await import("./server-
|
|
7364
|
+
const { signalMcpReady } = await import("./server-B4AJ7ETE.js");
|
|
7365
7365
|
signalMcpReady();
|
|
7366
7366
|
});
|
|
7367
7367
|
const app = express();
|
|
@@ -7576,9 +7576,9 @@ async function createServerHandle(config3) {
|
|
|
7576
7576
|
const sessionFavoriteRouter = express.Router();
|
|
7577
7577
|
registerSessionFavoriteRoute(sessionFavoriteRouter, sessionManager);
|
|
7578
7578
|
app.use("/api", sessionFavoriteRouter);
|
|
7579
|
-
const { createTasksService } = await import("./service-
|
|
7580
|
-
const { registerTaskRoutes } = await import("./tasks-
|
|
7581
|
-
const { setTasksService } = await import("./tools-
|
|
7579
|
+
const { createTasksService } = await import("./service-JL55SFPL.js");
|
|
7580
|
+
const { registerTaskRoutes } = await import("./tasks-ZMJCHW7E.js");
|
|
7581
|
+
const { setTasksService } = await import("./tools-LZHSSSK4.js");
|
|
7582
7582
|
const tasksService = createTasksService({
|
|
7583
7583
|
sessionManager,
|
|
7584
7584
|
config: config3,
|
|
@@ -7610,7 +7610,7 @@ async function createServerHandle(config3) {
|
|
|
7610
7610
|
}
|
|
7611
7611
|
try {
|
|
7612
7612
|
await checkoutBranch(project.workdir, branch);
|
|
7613
|
-
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-
|
|
7613
|
+
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-VHS47DHO.js");
|
|
7614
7614
|
const allSessions = sessionManager.listSessions();
|
|
7615
7615
|
for (const s of allSessions) {
|
|
7616
7616
|
if (sessionManager.getEffectiveWorkdir(s.id) === project.workdir) {
|
|
@@ -7646,7 +7646,7 @@ async function createServerHandle(config3) {
|
|
|
7646
7646
|
);
|
|
7647
7647
|
}
|
|
7648
7648
|
await createBranch(project.workdir, name, sb);
|
|
7649
|
-
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-
|
|
7649
|
+
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-VHS47DHO.js");
|
|
7650
7650
|
const allSessions = sessionManager.listSessions();
|
|
7651
7651
|
for (const s of allSessions) {
|
|
7652
7652
|
if (sessionManager.getEffectiveWorkdir(s.id) === project.workdir) {
|
|
@@ -7678,7 +7678,7 @@ async function createServerHandle(config3) {
|
|
|
7678
7678
|
if (!branch || typeof branch !== "string") return res.status(400).json({ error: "branch is required" });
|
|
7679
7679
|
const effectiveWorkdir = sessionManager.getEffectiveWorkdir(req.params.id);
|
|
7680
7680
|
const { checkoutBranch, validateRef: validateRef2 } = await import("./workspace-LM646OHC.js");
|
|
7681
|
-
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-
|
|
7681
|
+
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-VHS47DHO.js");
|
|
7682
7682
|
try {
|
|
7683
7683
|
await validateRef2(effectiveWorkdir, branch);
|
|
7684
7684
|
await checkoutBranch(effectiveWorkdir, branch);
|
|
@@ -7721,7 +7721,7 @@ All file and git operations should use this branch.
|
|
|
7721
7721
|
if (!name || typeof name !== "string") return res.status(400).json({ error: "name is required" });
|
|
7722
7722
|
const effectiveWorkdir = sessionManager.getEffectiveWorkdir(req.params.id);
|
|
7723
7723
|
const { validateRef: validateRef2 } = await import("./workspace-LM646OHC.js");
|
|
7724
|
-
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-
|
|
7724
|
+
const { updateSessionBranch: updateSessionBranch2 } = await import("./sessions-VHS47DHO.js");
|
|
7725
7725
|
try {
|
|
7726
7726
|
await validateRef2(effectiveWorkdir, name);
|
|
7727
7727
|
if (sourceBranch) {
|
|
@@ -7776,8 +7776,8 @@ All file and git operations should use this branch.
|
|
|
7776
7776
|
res.json({ workspaces: workspacesList });
|
|
7777
7777
|
});
|
|
7778
7778
|
app.get("/api/sessions", async (req, res) => {
|
|
7779
|
-
const { getRecentUserPromptsForSession } = await import("./events-
|
|
7780
|
-
const { getPendingConfirmationsBySession: getPendingConfirmationsBySession2 } = await import("./path-security-
|
|
7779
|
+
const { getRecentUserPromptsForSession } = await import("./events-ZLP5V2YU.js");
|
|
7780
|
+
const { getPendingConfirmationsBySession: getPendingConfirmationsBySession2 } = await import("./path-security-V3XALT5E.js");
|
|
7781
7781
|
const projectId = req.query["projectId"];
|
|
7782
7782
|
const rawLimit = req.query["limit"];
|
|
7783
7783
|
const offset = parseInt(req.query["offset"]) || 0;
|
|
@@ -7895,10 +7895,10 @@ All file and git operations should use this branch.
|
|
|
7895
7895
|
}
|
|
7896
7896
|
});
|
|
7897
7897
|
app.get("/api/sessions/:id", async (req, res) => {
|
|
7898
|
-
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEventsWithSnapshot2 } = await import("./events-
|
|
7899
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations } = await import("./folding-
|
|
7900
|
-
const { getPendingQuestionsForSession: getPendingQuestionsForSession2 } = await import("./tools-
|
|
7901
|
-
const { getMaxVisibleItems } = await import("./settings-
|
|
7898
|
+
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEventsWithSnapshot2 } = await import("./events-ZLP5V2YU.js");
|
|
7899
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations } = await import("./folding-BXMVJIFF.js");
|
|
7900
|
+
const { getPendingQuestionsForSession: getPendingQuestionsForSession2 } = await import("./tools-LZHSSSK4.js");
|
|
7901
|
+
const { getMaxVisibleItems } = await import("./settings-HCSHADP5.js");
|
|
7902
7902
|
const session = sessionManager.getSession(req.params.id);
|
|
7903
7903
|
if (!session) {
|
|
7904
7904
|
return res.status(404).json({ error: "Session not found" });
|
|
@@ -7926,9 +7926,9 @@ All file and git operations should use this branch.
|
|
|
7926
7926
|
});
|
|
7927
7927
|
app.get("/api/sessions/:id/status", async (req, res) => {
|
|
7928
7928
|
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-
|
|
7931
|
-
const { foldPendingConfirmations } = await import("./folding-
|
|
7929
|
+
const { getPendingQuestionsForSession: getPendingQuestionsForSession2 } = await import("./tools-LZHSSSK4.js");
|
|
7930
|
+
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEventsWithSnapshot2 } = await import("./events-ZLP5V2YU.js");
|
|
7931
|
+
const { foldPendingConfirmations } = await import("./folding-BXMVJIFF.js");
|
|
7932
7932
|
const sessionId = req.params["id"];
|
|
7933
7933
|
if (!sessionId) {
|
|
7934
7934
|
return res.status(400).json({ error: "Session id is required" });
|
|
@@ -7958,8 +7958,8 @@ All file and git operations should use this branch.
|
|
|
7958
7958
|
if (!session) {
|
|
7959
7959
|
return res.status(404).json({ error: "Session not found" });
|
|
7960
7960
|
}
|
|
7961
|
-
const { stopSessionExecution } = await import("./chat-handler-
|
|
7962
|
-
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-
|
|
7961
|
+
const { stopSessionExecution } = await import("./chat-handler-KGITQAXC.js");
|
|
7962
|
+
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-LZHSSSK4.js");
|
|
7963
7963
|
sessionManager.clearMessageQueue(sessionId);
|
|
7964
7964
|
stopSessionExecution(sessionId, sessionManager);
|
|
7965
7965
|
abortSession(sessionId);
|
|
@@ -7988,9 +7988,9 @@ All file and git operations should use this branch.
|
|
|
7988
7988
|
res.json({ success: true });
|
|
7989
7989
|
});
|
|
7990
7990
|
app.post("/api/sessions/:id/provider", async (req, res) => {
|
|
7991
|
-
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEv } = await import("./events-
|
|
7992
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-
|
|
7993
|
-
const { getMaxVisibleItems } = await import("./settings-
|
|
7991
|
+
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEv } = await import("./events-ZLP5V2YU.js");
|
|
7992
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-BXMVJIFF.js");
|
|
7993
|
+
const { getMaxVisibleItems } = await import("./settings-HCSHADP5.js");
|
|
7994
7994
|
const sessionId = req.params.id;
|
|
7995
7995
|
const session = sessionManager.getSession(sessionId);
|
|
7996
7996
|
if (!session) {
|
|
@@ -8019,9 +8019,9 @@ All file and git operations should use this branch.
|
|
|
8019
8019
|
res.json({ session: toClientSession(updatedSession), messages, hiddenCount, contextState });
|
|
8020
8020
|
});
|
|
8021
8021
|
app.delete("/api/sessions/:id/provider", async (req, res) => {
|
|
8022
|
-
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEv } = await import("./events-
|
|
8023
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-
|
|
8024
|
-
const { getMaxVisibleItems } = await import("./settings-
|
|
8022
|
+
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEv } = await import("./events-ZLP5V2YU.js");
|
|
8023
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-BXMVJIFF.js");
|
|
8024
|
+
const { getMaxVisibleItems } = await import("./settings-HCSHADP5.js");
|
|
8025
8025
|
const sessionId = req.params.id;
|
|
8026
8026
|
const session = sessionManager.getSession(sessionId);
|
|
8027
8027
|
if (!session) {
|
|
@@ -8153,9 +8153,9 @@ All file and git operations should use this branch.
|
|
|
8153
8153
|
res.json({ success: true });
|
|
8154
8154
|
});
|
|
8155
8155
|
app.put("/api/sessions/:id/mode", async (req, res) => {
|
|
8156
|
-
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEv } = await import("./events-
|
|
8157
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-
|
|
8158
|
-
const { getMaxVisibleItems } = await import("./settings-
|
|
8156
|
+
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEv } = await import("./events-ZLP5V2YU.js");
|
|
8157
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-BXMVJIFF.js");
|
|
8158
|
+
const { getMaxVisibleItems } = await import("./settings-HCSHADP5.js");
|
|
8159
8159
|
const sessionId = req.params.id;
|
|
8160
8160
|
const session = sessionManager.getSession(sessionId);
|
|
8161
8161
|
if (!session) {
|
|
@@ -8191,7 +8191,7 @@ All file and git operations should use this branch.
|
|
|
8191
8191
|
}
|
|
8192
8192
|
sessionManager.setDangerLevel(sessionId, dangerLevel);
|
|
8193
8193
|
if (dangerLevel === "dangerous") {
|
|
8194
|
-
const { autoApprovePendingConfirmationsForSession } = await import("./tools-
|
|
8194
|
+
const { autoApprovePendingConfirmationsForSession } = await import("./tools-LZHSSSK4.js");
|
|
8195
8195
|
const approvedCallIds = autoApprovePendingConfirmationsForSession(sessionId);
|
|
8196
8196
|
for (const callId of approvedCallIds) {
|
|
8197
8197
|
wssExports.broadcastForSession(sessionId, {
|
|
@@ -8226,7 +8226,7 @@ All file and git operations should use this branch.
|
|
|
8226
8226
|
setSessionDisabledServers(sessionId, disabledServers);
|
|
8227
8227
|
const messages = session.messages ?? [];
|
|
8228
8228
|
if (messages.length === 0) {
|
|
8229
|
-
const { applyDynamicContext } = await import("./dynamic-context-
|
|
8229
|
+
const { applyDynamicContext } = await import("./dynamic-context-3MAA4AQR.js");
|
|
8230
8230
|
const modelName = session.providerModel ?? providerManager.getCurrentModel();
|
|
8231
8231
|
await applyDynamicContext(sessionManager, sessionId, modelName);
|
|
8232
8232
|
} else {
|
|
@@ -8260,7 +8260,7 @@ All file and git operations should use this branch.
|
|
|
8260
8260
|
if (alwaysAllow !== void 0 && typeof alwaysAllow !== "boolean") {
|
|
8261
8261
|
return res.status(400).json({ error: "alwaysAllow must be a boolean if provided" });
|
|
8262
8262
|
}
|
|
8263
|
-
const { providePathConfirmation: providePathConfirmation2, getConfirmationSessionId } = await import("./tools-
|
|
8263
|
+
const { providePathConfirmation: providePathConfirmation2, getConfirmationSessionId } = await import("./tools-LZHSSSK4.js");
|
|
8264
8264
|
const pendingSessionId = getConfirmationSessionId(callId);
|
|
8265
8265
|
if (!pendingSessionId) {
|
|
8266
8266
|
return res.status(404).json({ error: "No pending path confirmation with that ID" });
|
|
@@ -8272,11 +8272,11 @@ All file and git operations should use this branch.
|
|
|
8272
8272
|
if (!result.found) {
|
|
8273
8273
|
return res.status(404).json({ error: "No pending path confirmation with that ID" });
|
|
8274
8274
|
}
|
|
8275
|
-
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEvents } = await import("./events-
|
|
8276
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations } = await import("./folding-
|
|
8275
|
+
const { getEventStore: getEventStore2, combineEventsWithSnapshot: combineEvents } = await import("./events-ZLP5V2YU.js");
|
|
8276
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations } = await import("./folding-BXMVJIFF.js");
|
|
8277
8277
|
const { createSessionStateMessage } = await import("./protocol-MRMOB3P4.js");
|
|
8278
|
-
const { getPendingQuestionsForSession: getPendingQuestionsForSession2 } = await import("./tools-
|
|
8279
|
-
const { getMaxVisibleItems } = await import("./settings-
|
|
8278
|
+
const { getPendingQuestionsForSession: getPendingQuestionsForSession2 } = await import("./tools-LZHSSSK4.js");
|
|
8279
|
+
const { getMaxVisibleItems } = await import("./settings-HCSHADP5.js");
|
|
8280
8280
|
const eventStore = getEventStore2();
|
|
8281
8281
|
const { snapshot, events: eventsSinceSnapshot } = eventStore.getEventsSinceSnapshot(sessionId);
|
|
8282
8282
|
const events = combineEvents(sessionId, snapshot, eventsSinceSnapshot);
|
|
@@ -8313,7 +8313,7 @@ All file and git operations should use this branch.
|
|
|
8313
8313
|
if (!skip && typeof answer !== "string") {
|
|
8314
8314
|
return res.status(400).json({ error: "answer is required when not skipping" });
|
|
8315
8315
|
}
|
|
8316
|
-
const { provideAnswer: provideAnswer2 } = await import("./tools-
|
|
8316
|
+
const { provideAnswer: provideAnswer2 } = await import("./tools-LZHSSSK4.js");
|
|
8317
8317
|
const found = provideAnswer2(callId, answer ?? "", skip ?? false);
|
|
8318
8318
|
if (!found) {
|
|
8319
8319
|
return res.status(404).json({ error: "No pending question with that ID" });
|
|
@@ -8346,7 +8346,7 @@ All file and git operations should use this branch.
|
|
|
8346
8346
|
if (!session) {
|
|
8347
8347
|
return res.status(404).json({ error: "Session not found" });
|
|
8348
8348
|
}
|
|
8349
|
-
const { getSetting: getSetting2, SETTINGS_KEYS } = await import("./settings-
|
|
8349
|
+
const { getSetting: getSetting2, SETTINGS_KEYS } = await import("./settings-HCSHADP5.js");
|
|
8350
8350
|
if (getSetting2(SETTINGS_KEYS.CACHE_WARMING) !== "true") {
|
|
8351
8351
|
return res.json({ success: false, reason: "disabled" });
|
|
8352
8352
|
}
|
|
@@ -8379,7 +8379,7 @@ All file and git operations should use this branch.
|
|
|
8379
8379
|
backend: activeProvider?.backend ?? llmClient.getBackend(),
|
|
8380
8380
|
model: llmClient.getModel()
|
|
8381
8381
|
};
|
|
8382
|
-
const { runAgentTurn, TurnMetrics } = await import("./orchestrator-
|
|
8382
|
+
const { runAgentTurn, TurnMetrics } = await import("./orchestrator-MMHV6SZY.js");
|
|
8383
8383
|
runAgentTurn(
|
|
8384
8384
|
{
|
|
8385
8385
|
sessionManager,
|
|
@@ -8417,15 +8417,15 @@ All file and git operations should use this branch.
|
|
|
8417
8417
|
if (!session) {
|
|
8418
8418
|
return res.status(404).json({ error: "Session not found" });
|
|
8419
8419
|
}
|
|
8420
|
-
const { stopSessionExecution } = await import("./chat-handler-
|
|
8421
|
-
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-
|
|
8420
|
+
const { stopSessionExecution } = await import("./chat-handler-KGITQAXC.js");
|
|
8421
|
+
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-LZHSSSK4.js");
|
|
8422
8422
|
const queuedMessages = sessionManager.getQueueState(sessionId);
|
|
8423
8423
|
sessionManager.clearMessageQueue(sessionId);
|
|
8424
8424
|
stopSessionExecution(sessionId, sessionManager);
|
|
8425
8425
|
abortSession(sessionId);
|
|
8426
8426
|
cancelQuestionsForSession(sessionId, "Session stopped by user");
|
|
8427
8427
|
cancelPathConfirmationsForSession(sessionId, "Session stopped by user");
|
|
8428
|
-
const eventStore = (await import("./events-
|
|
8428
|
+
const eventStore = (await import("./events-ZLP5V2YU.js")).getEventStore();
|
|
8429
8429
|
eventStore.append(sessionId, { type: "running.changed", data: { isRunning: false } });
|
|
8430
8430
|
res.json({ success: true, queuedMessages });
|
|
8431
8431
|
});
|
|
@@ -8466,7 +8466,7 @@ All file and git operations should use this branch.
|
|
|
8466
8466
|
if (typeof messageIndex !== "number" || messageIndex < 0) {
|
|
8467
8467
|
return res.status(400).json({ error: "messageIndex must be a non-negative number" });
|
|
8468
8468
|
}
|
|
8469
|
-
const { truncateSessionMessages } = await import("./events-
|
|
8469
|
+
const { truncateSessionMessages } = await import("./events-ZLP5V2YU.js");
|
|
8470
8470
|
truncateSessionMessages(sessionId, messageIndex);
|
|
8471
8471
|
res.json({ success: true });
|
|
8472
8472
|
});
|
|
@@ -8486,8 +8486,8 @@ All file and git operations should use this branch.
|
|
|
8486
8486
|
if (attachments !== void 0 && !Array.isArray(attachments)) {
|
|
8487
8487
|
return res.status(400).json({ error: "attachments must be an array if provided" });
|
|
8488
8488
|
}
|
|
8489
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
8490
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-
|
|
8489
|
+
const { getEventStore: getEventStore2 } = await import("./events-ZLP5V2YU.js");
|
|
8490
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-BXMVJIFF.js");
|
|
8491
8491
|
const eventStore = getEventStore2();
|
|
8492
8492
|
const events = eventStore.getEvents(sessionId);
|
|
8493
8493
|
const { messages } = buildMessagesFromStoredEvents2(events);
|
|
@@ -8499,7 +8499,7 @@ All file and git operations should use this branch.
|
|
|
8499
8499
|
if (msg.role !== "user" || msg.isSystemGenerated) {
|
|
8500
8500
|
return res.status(400).json({ error: "Can only replay user messages" });
|
|
8501
8501
|
}
|
|
8502
|
-
const { truncateSessionMessages } = await import("./events-
|
|
8502
|
+
const { truncateSessionMessages } = await import("./events-ZLP5V2YU.js");
|
|
8503
8503
|
truncateSessionMessages(sessionId, msgIndex - 1);
|
|
8504
8504
|
sessionManager.queueMessage(
|
|
8505
8505
|
sessionId,
|
|
@@ -8541,7 +8541,7 @@ All file and git operations should use this branch.
|
|
|
8541
8541
|
return res.status(404).json({ error: "Session not found" });
|
|
8542
8542
|
}
|
|
8543
8543
|
try {
|
|
8544
|
-
const { buildSessionExport } = await import("./export-import-
|
|
8544
|
+
const { buildSessionExport } = await import("./export-import-ZJFYZJOP.js");
|
|
8545
8545
|
const payload = buildSessionExport(sessionManager, sessionId);
|
|
8546
8546
|
const filename = `${(payload.session.title ?? "session").replace(/[^a-zA-Z0-9-_]/g, "_")}.openfox-session.json`;
|
|
8547
8547
|
res.setHeader("Content-Disposition", `attachment; filename="${filename}"`);
|
|
@@ -8598,7 +8598,7 @@ All file and git operations should use this branch.
|
|
|
8598
8598
|
res.json({ accepted: true });
|
|
8599
8599
|
});
|
|
8600
8600
|
app.get("/api/settings", async (req, res) => {
|
|
8601
|
-
const { getSetting: getSetting2, SETTINGS_DEFAULTS } = await import("./settings-
|
|
8601
|
+
const { getSetting: getSetting2, SETTINGS_DEFAULTS } = await import("./settings-HCSHADP5.js");
|
|
8602
8602
|
const keysParam = req.query["keys"];
|
|
8603
8603
|
if (!keysParam) {
|
|
8604
8604
|
return res.status(400).json({ error: "keys query parameter is required" });
|
|
@@ -8611,19 +8611,19 @@ All file and git operations should use this branch.
|
|
|
8611
8611
|
res.json(result);
|
|
8612
8612
|
});
|
|
8613
8613
|
app.get("/api/settings/:key", async (req, res) => {
|
|
8614
|
-
const { getSetting: getSetting2, SETTINGS_DEFAULTS } = await import("./settings-
|
|
8614
|
+
const { getSetting: getSetting2, SETTINGS_DEFAULTS } = await import("./settings-HCSHADP5.js");
|
|
8615
8615
|
const key = req.params.key;
|
|
8616
8616
|
const value = getSetting2(key) ?? SETTINGS_DEFAULTS[key] ?? null;
|
|
8617
8617
|
res.json({ key, value });
|
|
8618
8618
|
});
|
|
8619
8619
|
app.get("/api/settings/:key", async (req, res) => {
|
|
8620
|
-
const { getSetting: getSetting2, SETTINGS_DEFAULTS } = await import("./settings-
|
|
8620
|
+
const { getSetting: getSetting2, SETTINGS_DEFAULTS } = await import("./settings-HCSHADP5.js");
|
|
8621
8621
|
const key = req.params.key;
|
|
8622
8622
|
const value = getSetting2(key) ?? SETTINGS_DEFAULTS[key] ?? null;
|
|
8623
8623
|
res.json({ key, value });
|
|
8624
8624
|
});
|
|
8625
8625
|
app.put("/api/settings/:key", async (req, res) => {
|
|
8626
|
-
const { setSetting: setSetting2 } = await import("./settings-
|
|
8626
|
+
const { setSetting: setSetting2 } = await import("./settings-HCSHADP5.js");
|
|
8627
8627
|
const key = req.params.key;
|
|
8628
8628
|
const { value } = req.body;
|
|
8629
8629
|
if (value === void 0) {
|
|
@@ -8650,7 +8650,7 @@ All file and git operations should use this branch.
|
|
|
8650
8650
|
}
|
|
8651
8651
|
});
|
|
8652
8652
|
app.get("/api/tools/shells", async (_req, res) => {
|
|
8653
|
-
const { listAvailableShells } = await import("./platform-
|
|
8653
|
+
const { listAvailableShells } = await import("./platform-DBPLSLE4.js");
|
|
8654
8654
|
res.json({ shells: listAvailableShells() });
|
|
8655
8655
|
});
|
|
8656
8656
|
app.get("/api/config", async (_req, res) => {
|
|
@@ -8688,7 +8688,7 @@ All file and git operations should use this branch.
|
|
|
8688
8688
|
defaultModelSelection: config3.defaultModelSelection,
|
|
8689
8689
|
visionFallback,
|
|
8690
8690
|
platform: platformInfo,
|
|
8691
|
-
locale: (await import("./settings-
|
|
8691
|
+
locale: (await import("./settings-HCSHADP5.js")).getSetting("display.locale") ?? "automatic"
|
|
8692
8692
|
});
|
|
8693
8693
|
});
|
|
8694
8694
|
app.post("/api/model/refresh", async (_req, res) => {
|
|
@@ -8744,7 +8744,7 @@ All file and git operations should use this branch.
|
|
|
8744
8744
|
}));
|
|
8745
8745
|
}
|
|
8746
8746
|
app.post("/api/proxy/test", async (_req, res) => {
|
|
8747
|
-
const { getSetting: getSetting2, SETTINGS_KEYS } = await import("./settings-
|
|
8747
|
+
const { getSetting: getSetting2, SETTINGS_KEYS } = await import("./settings-HCSHADP5.js");
|
|
8748
8748
|
const proxyUrl = getSetting2(SETTINGS_KEYS.PROXY_URL);
|
|
8749
8749
|
if (!proxyUrl) {
|
|
8750
8750
|
return res.status(400).json({ success: false, error: "No proxy URL configured" });
|
|
@@ -8836,7 +8836,7 @@ All file and git operations should use this branch.
|
|
|
8836
8836
|
}
|
|
8837
8837
|
});
|
|
8838
8838
|
app.post("/api/proxy/test", async (_req, res) => {
|
|
8839
|
-
const { getSetting: getSetting2, SETTINGS_KEYS } = await import("./settings-
|
|
8839
|
+
const { getSetting: getSetting2, SETTINGS_KEYS } = await import("./settings-HCSHADP5.js");
|
|
8840
8840
|
const proxyUrl = getSetting2(SETTINGS_KEYS.PROXY_URL);
|
|
8841
8841
|
if (!proxyUrl) {
|
|
8842
8842
|
return res.status(400).json({ success: false, error: "No proxy URL configured" });
|
|
@@ -8863,7 +8863,7 @@ All file and git operations should use this branch.
|
|
|
8863
8863
|
const backend = req.query["backend"];
|
|
8864
8864
|
if (!url) return res.status(400).json({ error: "url is required" });
|
|
8865
8865
|
try {
|
|
8866
|
-
const { fetchModelsWithContext } = await import("./provider-manager-
|
|
8866
|
+
const { fetchModelsWithContext } = await import("./provider-manager-3MV7KDAD.js");
|
|
8867
8867
|
const { getModelProfile: getModelProfile2 } = await import("./profiles-EBCVFYG7.js");
|
|
8868
8868
|
const { getCatalogEntry } = await import("./model-catalog-Y5MA5OZP.js");
|
|
8869
8869
|
const models = await fetchModelsWithContext(
|
|
@@ -8938,7 +8938,7 @@ All file and git operations should use this branch.
|
|
|
8938
8938
|
const { getModelProfile: getModelProfile2 } = await import("./profiles-EBCVFYG7.js");
|
|
8939
8939
|
const { getBackendCapabilities } = await import("./backend-24FTDSHF.js");
|
|
8940
8940
|
const { buildNonStreamingCreateParams } = await import("./client-pure-YZ4IGCU4.js");
|
|
8941
|
-
const { OpenAIHttpClient } = await import("./http-client-
|
|
8941
|
+
const { OpenAIHttpClient } = await import("./http-client-VMRQHMF7.js");
|
|
8942
8942
|
const { ensureVersionPrefix } = await import("./url-utils-C5BM7NF7.js");
|
|
8943
8943
|
const profile = getModelProfile2(model);
|
|
8944
8944
|
const capabilities = getBackendCapabilities(backend || "unknown");
|
|
@@ -9215,7 +9215,7 @@ All file and git operations should use this branch.
|
|
|
9215
9215
|
if (clearedSessions > 0) {
|
|
9216
9216
|
logger.info("Cleared provider from sessions of deleted provider", { providerId: id, sessions: clearedSessions });
|
|
9217
9217
|
}
|
|
9218
|
-
const { pruneFavoriteModels } = await import("./settings-
|
|
9218
|
+
const { pruneFavoriteModels } = await import("./settings-HCSHADP5.js");
|
|
9219
9219
|
pruneFavoriteModels(updatedConfig.providers);
|
|
9220
9220
|
res.json({ success: true });
|
|
9221
9221
|
});
|
|
@@ -9278,7 +9278,7 @@ All file and git operations should use this branch.
|
|
|
9278
9278
|
await saveGlobalConfig(config3.mode ?? "production", updatedConfig, config3.globalConfigPath);
|
|
9279
9279
|
providerManager.setProviders(updatedConfig.providers, updatedConfig.defaultModelSelection ?? void 0);
|
|
9280
9280
|
config3.defaultModelSelection = updatedConfig.defaultModelSelection;
|
|
9281
|
-
const { pruneFavoriteModels } = await import("./settings-
|
|
9281
|
+
const { pruneFavoriteModels } = await import("./settings-HCSHADP5.js");
|
|
9282
9282
|
pruneFavoriteModels(updatedConfig.providers);
|
|
9283
9283
|
res.json({ success: true, provider: updatedConfig.providers.find((p) => p.id === id) });
|
|
9284
9284
|
} catch (error) {
|
|
@@ -9364,7 +9364,7 @@ All file and git operations should use this branch.
|
|
|
9364
9364
|
});
|
|
9365
9365
|
async function rebuildMcpTools() {
|
|
9366
9366
|
const { createMcpTools: createMcpTools2 } = await import("./tool-adapter-ZY4FC4C4.js");
|
|
9367
|
-
const { setMcpTools: setMcpTools2 } = await import("./tools-
|
|
9367
|
+
const { setMcpTools: setMcpTools2 } = await import("./tools-LZHSSSK4.js");
|
|
9368
9368
|
const mcpTools = createMcpTools2(mcpManager);
|
|
9369
9369
|
setMcpTools2(mcpTools);
|
|
9370
9370
|
toolRegistry = createToolRegistry();
|
|
@@ -9794,13 +9794,13 @@ All file and git operations should use this branch.
|
|
|
9794
9794
|
})
|
|
9795
9795
|
);
|
|
9796
9796
|
app.get("/api/sessions/:id/background-processes", async (req, res) => {
|
|
9797
|
-
const { getSessionProcesses } = await import("./manager-
|
|
9797
|
+
const { getSessionProcesses } = await import("./manager-JZNNVDYR.js");
|
|
9798
9798
|
const sessionId = req.params.id;
|
|
9799
9799
|
const processes = getSessionProcesses(sessionId);
|
|
9800
9800
|
res.json({ processes });
|
|
9801
9801
|
});
|
|
9802
9802
|
app.post("/api/sessions/:id/background-process/:processId/stop", async (req, res) => {
|
|
9803
|
-
const { stopProcess } = await import("./manager-
|
|
9803
|
+
const { stopProcess } = await import("./manager-JZNNVDYR.js");
|
|
9804
9804
|
const sessionId = req.params.id;
|
|
9805
9805
|
const processId = req.params.processId;
|
|
9806
9806
|
const session = sessionManager.getSession(sessionId);
|
|
@@ -9940,7 +9940,7 @@ All file and git operations should use this branch.
|
|
|
9940
9940
|
);
|
|
9941
9941
|
const wss = wssExports.wss;
|
|
9942
9942
|
deferTasksBroadcast = (projectId, payload) => wssExports.broadcastForProject(projectId, "", { type: "tasks.update", payload });
|
|
9943
|
-
const { launchWorkflowRun, abortRunnerRun } = await import("./launch-
|
|
9943
|
+
const { launchWorkflowRun, abortRunnerRun } = await import("./launch-73LDMGCT.js");
|
|
9944
9944
|
deferTasksLaunchWorkflow = (sessionId, launch) => {
|
|
9945
9945
|
const effective = sessionManager.resolveEffectiveProviderModel(sessionId);
|
|
9946
9946
|
let llmClient = getLLMClient();
|
|
@@ -9985,7 +9985,7 @@ All file and git operations should use this branch.
|
|
|
9985
9985
|
const state = sessionManager.getContextState(sessionId);
|
|
9986
9986
|
wssExports.broadcastForSession(sessionId, createContextStateMessage(state));
|
|
9987
9987
|
});
|
|
9988
|
-
const { QueueProcessor } = await import("./processor-
|
|
9988
|
+
const { QueueProcessor } = await import("./processor-2M7N26QG.js");
|
|
9989
9989
|
const queueProcessor = new QueueProcessor({
|
|
9990
9990
|
sessionManager,
|
|
9991
9991
|
providerManager,
|
|
@@ -10027,8 +10027,8 @@ All file and git operations should use this branch.
|
|
|
10027
10027
|
launchWorkflow: (sessionId, launch) => deferTasksLaunchWorkflow(sessionId, launch),
|
|
10028
10028
|
stopSession: (sessionId) => {
|
|
10029
10029
|
void (async () => {
|
|
10030
|
-
const { stopSessionExecution } = await import("./chat-handler-
|
|
10031
|
-
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-
|
|
10030
|
+
const { stopSessionExecution } = await import("./chat-handler-KGITQAXC.js");
|
|
10031
|
+
const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-LZHSSSK4.js");
|
|
10032
10032
|
sessionManager.clearMessageQueue(sessionId);
|
|
10033
10033
|
stopSessionExecution(sessionId, sessionManager);
|
|
10034
10034
|
abortSession(sessionId);
|
|
@@ -10149,4 +10149,4 @@ export {
|
|
|
10149
10149
|
createServerHandle,
|
|
10150
10150
|
createServer
|
|
10151
10151
|
};
|
|
10152
|
-
//# sourceMappingURL=chunk-
|
|
10152
|
+
//# sourceMappingURL=chunk-C543DUKL.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
deleteSetting,
|
|
12
12
|
getSetting,
|
|
13
13
|
setSetting
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EMXMTCSY.js";
|
|
15
15
|
|
|
16
16
|
// src/server/context/instructions.ts
|
|
17
17
|
import { readFile, access } from "fs/promises";
|
|
@@ -452,4 +452,4 @@ export {
|
|
|
452
452
|
deleteSkill,
|
|
453
453
|
deleteProjectSkill
|
|
454
454
|
};
|
|
455
|
-
//# sourceMappingURL=chunk-
|
|
455
|
+
//# sourceMappingURL=chunk-CRJ5J7U5.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAllInstructions,
|
|
3
3
|
getEnabledSkillMetadata
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CRJ5J7U5.js";
|
|
5
5
|
import {
|
|
6
6
|
buildTopLevelSystemPrompt
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GKRYQ56N.js";
|
|
8
8
|
import {
|
|
9
9
|
getCurrentContextWindowId,
|
|
10
10
|
getEventStore
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JTR3PC5I.js";
|
|
12
12
|
import {
|
|
13
13
|
findAgentById,
|
|
14
14
|
getRuntimeConfig,
|
|
15
15
|
getSubAgents,
|
|
16
16
|
loadAllAgentsDefault,
|
|
17
17
|
resolveDefaultAgentId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4F4ARGAM.js";
|
|
19
19
|
import {
|
|
20
20
|
logger
|
|
21
21
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -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-LZHSSSK4.js");
|
|
331
|
+
const { isDescribeImageEligible } = await import("./describe-image-TQOD52IC.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-CXB4HJAM.js.map
|