openfox 2.0.140 → 2.0.142
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 +30 -0
- package/dist/CHANGELOG.md +30 -0
- package/dist/{chat-handler-JWRCPG72.js → chat-handler-OFB4426F.js} +26 -26
- package/dist/{chunk-CRJ5J7U5.js → chunk-2CEZQAGQ.js} +3 -3
- package/dist/{chunk-GZJRXVVJ.js → chunk-5CZAKVGZ.js} +12 -12
- package/dist/{chunk-SSHXYKW3.js → chunk-5HDPFHHJ.js} +2 -2
- package/dist/{chunk-K227HOLU.js → chunk-ACILWRPU.js} +7 -7
- package/dist/{chunk-TJOKDC34.js → chunk-CSUMZAYY.js} +399 -86
- package/dist/{chunk-EE6VFEE6.js → chunk-DNL2NUDB.js} +2 -2
- package/dist/{chunk-UA2ATO3B.js → chunk-DQEANXXF.js} +3 -3
- package/dist/{chunk-4F4ARGAM.js → chunk-DRIR2IZR.js} +3 -3
- package/dist/{chunk-AE2IBEUH.js → chunk-EFEHIJXF.js} +2 -2
- package/dist/chunk-EPZO3MGM.js +7 -0
- package/dist/{chunk-7OHSAZLF.js → chunk-F3R4YS3F.js} +16 -18
- package/dist/{chunk-WD354R3H.js → chunk-FFVIO6GL.js} +4 -4
- package/dist/{chunk-5EKBZXCU.js → chunk-HQDKHNWS.js} +7 -7
- package/dist/{chunk-H7YL7PH3.js → chunk-J556QIRD.js} +2 -2
- package/dist/{chunk-DPFET73G.js → chunk-JYYBSODN.js} +2 -2
- package/dist/{chunk-46Q2SHGJ.js → chunk-MEPTCUYN.js} +2 -2
- package/dist/{chunk-RG326HS4.js → chunk-N5AJHJG5.js} +45 -13
- package/dist/{chunk-JTR3PC5I.js → chunk-NJFXYSXP.js} +5 -5
- package/dist/{chunk-XE6UC5Z3.js → chunk-PHR64A6U.js} +2 -2
- package/dist/{chunk-5F7LNEEP.js → chunk-Q5JCBAQF.js} +3 -3
- package/dist/{chunk-5MGCTRKM.js → chunk-RM4ZBI2B.js} +20 -20
- package/dist/{chunk-EMXMTCSY.js → chunk-SKNPOZYP.js} +4 -2
- package/dist/{chunk-IFARTQOK.js → chunk-TEUVZCPS.js} +17 -17
- package/dist/{chunk-JLHYB445.js → chunk-TIIWXMGE.js} +2 -2
- package/dist/{chunk-66XJC5TA.js → chunk-TRZZCMJ3.js} +9 -9
- package/dist/{chunk-LW6MMSTD.js → chunk-VGE6UYND.js} +2 -2
- package/dist/{chunk-QIGVYXMH.js → chunk-VK2BSIJP.js} +141 -131
- package/dist/{chunk-JU757HVI.js → chunk-WOVWVB5J.js} +11 -1
- package/dist/{chunk-FIEFBRTQ.js → chunk-WSDR27YV.js} +4 -4
- package/dist/{chunk-MAUQ6AW4.js → chunk-XADIBENX.js} +6 -6
- package/dist/{chunk-GKRYQ56N.js → chunk-Z7IT3V22.js} +3 -3
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{client-KJS7QIIV.js → client-2A766XZK.js} +5 -5
- package/dist/{compactor-UREBHSZQ.js → compactor-3BVVHO4M.js} +11 -11
- package/dist/{describe-image-TQOD52IC.js → describe-image-F22VNBWY.js} +12 -12
- package/dist/{dynamic-context-KGSZ7TRQ.js → dynamic-context-5SFXTEAP.js} +12 -12
- package/dist/{events-ZLP5V2YU.js → events-UAUOGRSV.js} +8 -8
- package/dist/{export-import-CJT33IO6.js → export-import-PBEX3KWU.js} +9 -9
- package/dist/{folding-BXMVJIFF.js → folding-IHD244OU.js} +6 -6
- package/dist/http-client-RA7XFYPO.js +11 -0
- package/dist/{inspect-proxy-A3OROWPG.js → inspect-proxy-24Q2CNCZ.js} +4 -4
- package/dist/{launch-7NKOCT5A.js → launch-L5NL75KK.js} +26 -26
- package/dist/{manager-JZNNVDYR.js → manager-4SMHCFXY.js} +5 -5
- package/dist/{orchestrator-VSVDUGBT.js → orchestrator-53SS74LD.js} +25 -25
- package/dist/package.json +1 -1
- package/dist/{path-security-V3XALT5E.js → path-security-WOA6MTWQ.js} +10 -10
- package/dist/{platform-DBPLSLE4.js → platform-EAZNZDAE.js} +4 -4
- package/dist/{processor-ACZM62WO.js → processor-T4VWZMXT.js} +25 -25
- package/dist/{project-creator-T3A4H3YV.js → project-creator-K5EGKY2P.js} +3 -3
- package/dist/{projects-5U37RUTL.js → projects-VDWCFPVE.js} +3 -3
- package/dist/{protocol-D6DZzkSH.d.ts → protocol-Dpf4FBF2.d.ts} +1 -1
- package/dist/provider/index.d.ts +4 -4
- package/dist/{provider-7LNTLWRB.js → provider-5XNJEDKW.js} +6 -6
- package/dist/{provider-manager-TV5I5YJH.js → provider-manager-RHJYUU5W.js} +6 -6
- package/dist/{registry-PVJAAL2Y.js → registry-C7RKKHZB.js} +5 -5
- package/dist/scheduler-VLTPMGGJ.js +25 -0
- package/dist/{serve-36D5HXWE.js → serve-LP3ZX6CW.js} +31 -31
- package/dist/server/index.d.ts +6 -6
- package/dist/server/index.js +30 -30
- package/dist/server-IGZLCNZG.js +61 -0
- package/dist/{service-7QKWUNU4.js → service-AZU4YTS2.js} +9 -9
- package/dist/{session-overrides-7OPGV7CQ.js → session-overrides-CKS2AVE5.js} +7 -7
- package/dist/{sessions-VHS47DHO.js → sessions-DAHLRQE2.js} +6 -6
- package/dist/{settings-HCSHADP5.js → settings-TR4BF2C4.js} +3 -3
- package/dist/shared/index.d.ts +3 -3
- package/dist/{tasks-E7EG7344.js → tasks-T5KZXKMD.js} +18 -12
- package/dist/{tools-AY6XEVJK.js → tools-BL6XCTUV.js} +23 -23
- package/dist/{types-ofYNpiqi.d.ts → types-CZJf6Fnb.d.ts} +1 -1
- package/dist/{types-CLcL33hJ.d.ts → types-LO8296aY.d.ts} +34 -1
- package/dist/{update-JHFZMW3T.js → update-M5DMX3FC.js} +2 -2
- package/dist/web/assets/{index-BtkaULxJ.css → index-2WvLd7SC.css} +1 -1
- package/dist/web/assets/index-BPhet33M.js +313 -0
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/dist/{workspace-LM646OHC.js → workspace-ENN27P56.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-6RYTDRUR.js +0 -7
- package/dist/http-client-JVJ43TBY.js +0 -11
- package/dist/server-R3J26IP2.js +0 -61
- package/dist/web/assets/index-Bm0_ekvt.js +0 -313
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDefaultAgentId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DRIR2IZR.js";
|
|
4
4
|
import {
|
|
5
5
|
getDatabase
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WOVWVB5J.js";
|
|
7
7
|
|
|
8
8
|
// src/server/db/sessions.ts
|
|
9
9
|
function getProjectDangerLevel(projectId) {
|
|
@@ -324,10 +324,9 @@ function listSessionsPaged(projectId, limit, offset) {
|
|
|
324
324
|
const sessions = rows.slice(0, limit).map(mapSessionSummaryRow);
|
|
325
325
|
return { sessions, hasMore };
|
|
326
326
|
}
|
|
327
|
-
function listHomeSessions(
|
|
327
|
+
function listHomeSessions(limit = 20) {
|
|
328
328
|
const db = getDatabase();
|
|
329
|
-
const
|
|
330
|
-
`
|
|
329
|
+
const select = `
|
|
331
330
|
SELECT
|
|
332
331
|
s.id,
|
|
333
332
|
s.project_id,
|
|
@@ -345,18 +344,17 @@ function listHomeSessions(sessionsPerProject = 5) {
|
|
|
345
344
|
s.provider_model,
|
|
346
345
|
s.message_count
|
|
347
346
|
FROM sessions s
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
return result;
|
|
347
|
+
`;
|
|
348
|
+
const rows = db.prepare(`${select} ORDER BY s.updated_at DESC LIMIT ?`).all(limit);
|
|
349
|
+
const pinned = db.prepare(
|
|
350
|
+
`${select}
|
|
351
|
+
WHERE (s.is_running = 1 OR s.workflow_phase IN ('waiting', 'blocked'))
|
|
352
|
+
AND s.id NOT IN (SELECT id FROM sessions ORDER BY updated_at DESC LIMIT ?)`
|
|
353
|
+
).all(limit);
|
|
354
|
+
const merged = [...rows, ...pinned].sort(
|
|
355
|
+
(a, b) => new Date(b.updated_at).getTime() - new Date(a.updated_at).getTime()
|
|
356
|
+
);
|
|
357
|
+
return merged.map(mapSessionSummaryRow);
|
|
360
358
|
}
|
|
361
359
|
function updateSessionWorkdir(id, workdir, workspace, branch) {
|
|
362
360
|
const db = getDatabase();
|
|
@@ -484,4 +482,4 @@ export {
|
|
|
484
482
|
getLatestWorkflowExecution,
|
|
485
483
|
clearWorkflowExecution
|
|
486
484
|
};
|
|
487
|
-
//# sourceMappingURL=chunk-
|
|
485
|
+
//# sourceMappingURL=chunk-F3R4YS3F.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-5XNJEDKW.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-M5DMX3FC.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-LP3ZX6CW.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-FFVIO6GL.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAllInstructions,
|
|
3
3
|
getEnabledSkillMetadata
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2CEZQAGQ.js";
|
|
5
5
|
import {
|
|
6
6
|
buildTopLevelSystemPrompt
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z7IT3V22.js";
|
|
8
8
|
import {
|
|
9
9
|
getCurrentContextWindowId,
|
|
10
10
|
getEventStore
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NJFXYSXP.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-DRIR2IZR.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-BL6XCTUV.js");
|
|
331
|
+
const { isDescribeImageEligible } = await import("./describe-image-F22VNBWY.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-HQDKHNWS.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-OA2FURC3.js";
|
|
5
5
|
import {
|
|
6
6
|
createLLMClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5HDPFHHJ.js";
|
|
8
8
|
import {
|
|
9
9
|
getModelProfile
|
|
10
10
|
} from "./chunk-TS5WKTFB.js";
|
|
@@ -920,4 +920,4 @@ export {
|
|
|
920
920
|
parseDefaultModelSelection,
|
|
921
921
|
createProviderManager
|
|
922
922
|
};
|
|
923
|
-
//# sourceMappingURL=chunk-
|
|
923
|
+
//# sourceMappingURL=chunk-J556QIRD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDatabase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WOVWVB5J.js";
|
|
4
4
|
|
|
5
5
|
// src/server/db/projects.ts
|
|
6
6
|
function createProject(name, workdir) {
|
|
@@ -144,4 +144,4 @@ export {
|
|
|
144
144
|
toggleStar,
|
|
145
145
|
getProjectDefaultAgent
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=chunk-
|
|
147
|
+
//# sourceMappingURL=chunk-JYYBSODN.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETTINGS_KEYS,
|
|
3
3
|
getSetting
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SKNPOZYP.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-MEPTCUYN.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getEventStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NJFXYSXP.js";
|
|
4
4
|
import {
|
|
5
5
|
createChatPathConfirmationMessage
|
|
6
6
|
} from "./chunk-OVAHNEFG.js";
|
|
7
7
|
import {
|
|
8
8
|
getPlatformShell
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MEPTCUYN.js";
|
|
10
10
|
|
|
11
11
|
// src/server/tools/path-security.ts
|
|
12
12
|
import { realpath } from "fs/promises";
|
|
@@ -723,20 +723,52 @@ function extractDangerousPatterns(command) {
|
|
|
723
723
|
return dangerous;
|
|
724
724
|
}
|
|
725
725
|
var GIT_N_NO_VERIFY_SUBCOMMANDS = /* @__PURE__ */ new Set(["commit", "am"]);
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
const
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
726
|
+
var COMMAND_SEPARATORS = /* @__PURE__ */ new Set([";", "&&", "||", "|"]);
|
|
727
|
+
function hasDanglingQuote(command) {
|
|
728
|
+
let quote = null;
|
|
729
|
+
for (let i = 0; i < command.length; i++) {
|
|
730
|
+
const ch = command[i];
|
|
731
|
+
if (quote !== null) {
|
|
732
|
+
if (ch === "\\" && quote !== "'") {
|
|
733
|
+
i += 1;
|
|
734
|
+
continue;
|
|
735
|
+
}
|
|
736
|
+
if (ch === quote) quote = null;
|
|
737
|
+
continue;
|
|
736
738
|
}
|
|
739
|
+
if (ch === "'" || ch === '"' || ch === "`") quote = ch;
|
|
740
|
+
}
|
|
741
|
+
return quote !== null;
|
|
742
|
+
}
|
|
743
|
+
function gitSubHasNoVerify(sub) {
|
|
744
|
+
const gitIndex = sub.indexOf("git");
|
|
745
|
+
const subCmd = sub[gitIndex + 1];
|
|
746
|
+
if (gitIndex >= 0 && subCmd && !subCmd.startsWith("-")) {
|
|
747
|
+
const gitArgs = sub.slice(gitIndex + 2);
|
|
748
|
+
if (gitArgs.includes("--no-verify")) return true;
|
|
749
|
+
if (GIT_N_NO_VERIFY_SUBCOMMANDS.has(subCmd) && gitArgs.includes("-n")) return true;
|
|
737
750
|
}
|
|
738
751
|
return false;
|
|
739
752
|
}
|
|
753
|
+
function extractGitNoVerify(command) {
|
|
754
|
+
if (hasDanglingQuote(command)) {
|
|
755
|
+
for (const sub2 of command.split(/\s*(?:&&|\|\||\||;)\s*/)) {
|
|
756
|
+
if (gitSubHasNoVerify(sub2.trim().split(/\s+/))) return true;
|
|
757
|
+
}
|
|
758
|
+
return false;
|
|
759
|
+
}
|
|
760
|
+
const tokens = tokenizeShell(command);
|
|
761
|
+
let sub = [];
|
|
762
|
+
for (const token of tokens) {
|
|
763
|
+
if (token.isOperator && COMMAND_SEPARATORS.has(token.text)) {
|
|
764
|
+
if (gitSubHasNoVerify(sub)) return true;
|
|
765
|
+
sub = [];
|
|
766
|
+
continue;
|
|
767
|
+
}
|
|
768
|
+
if (!token.isOperator) sub.push(token.text);
|
|
769
|
+
}
|
|
770
|
+
return gitSubHasNoVerify(sub);
|
|
771
|
+
}
|
|
740
772
|
async function requestPathAccess(paths, workdir, sessionId, callId, tool, onEvent, dangerLevel, command, isSubAgent) {
|
|
741
773
|
if (isSubAgent) {
|
|
742
774
|
const result2 = await checkPathsAccess(paths, workdir, sessionId);
|
|
@@ -956,4 +988,4 @@ export {
|
|
|
956
988
|
getConfirmationSessionId,
|
|
957
989
|
getPendingConfirmationsBySession
|
|
958
990
|
};
|
|
959
|
-
//# sourceMappingURL=chunk-
|
|
991
|
+
//# sourceMappingURL=chunk-N5AJHJG5.js.map
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
foldSessionState,
|
|
7
7
|
spreadOptionalMessageFields,
|
|
8
8
|
trimSnapshotStreamingOutput
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EFEHIJXF.js";
|
|
10
10
|
import {
|
|
11
11
|
updateSessionMessageCount
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-F3R4YS3F.js";
|
|
13
13
|
import {
|
|
14
14
|
getRuntimeConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DRIR2IZR.js";
|
|
16
16
|
import {
|
|
17
17
|
SETTINGS_KEYS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SKNPOZYP.js";
|
|
19
19
|
import {
|
|
20
20
|
logger
|
|
21
21
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1489,4 +1489,4 @@ export {
|
|
|
1489
1489
|
truncateSessionMessages,
|
|
1490
1490
|
getRecentUserPromptsForSession
|
|
1491
1491
|
};
|
|
1492
|
-
//# sourceMappingURL=chunk-
|
|
1492
|
+
//# sourceMappingURL=chunk-NJFXYSXP.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
getProjectByWorkdir,
|
|
6
6
|
updateProject
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JYYBSODN.js";
|
|
8
8
|
import {
|
|
9
9
|
logger
|
|
10
10
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -347,4 +347,4 @@ export {
|
|
|
347
347
|
deleteWorkspace,
|
|
348
348
|
isGitRepository
|
|
349
349
|
};
|
|
350
|
-
//# sourceMappingURL=chunk-
|
|
350
|
+
//# sourceMappingURL=chunk-PHR64A6U.js.map
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-OA7KBQ2O.js";
|
|
4
4
|
import {
|
|
5
5
|
COMPACTION_PROMPT
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z7IT3V22.js";
|
|
7
7
|
import {
|
|
8
8
|
getCurrentWindowMessageOptions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NJFXYSXP.js";
|
|
10
10
|
|
|
11
11
|
// src/server/context/compactor.ts
|
|
12
12
|
function appendCompactionPrompt(sessionId, append) {
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
COMPACTION_MAX_RATIO,
|
|
37
37
|
shouldCompact
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-Q5JCBAQF.js.map
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
getEnabledSkillMetadata,
|
|
5
5
|
isSkillEnabled,
|
|
6
6
|
loadAllSkills
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2CEZQAGQ.js";
|
|
8
8
|
import {
|
|
9
9
|
getGitBranch,
|
|
10
10
|
isGitRepository,
|
|
11
11
|
listWorkspaces
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PHR64A6U.js";
|
|
13
13
|
import {
|
|
14
14
|
getGateConfig,
|
|
15
15
|
isTaskConflictError,
|
|
16
16
|
isTaskGateError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CSUMZAYY.js";
|
|
18
18
|
import {
|
|
19
19
|
getSessionDisabledServers
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WSDR27YV.js";
|
|
21
21
|
import {
|
|
22
22
|
buildSignal,
|
|
23
23
|
computeFileHash,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
requireSession,
|
|
34
34
|
validateActionWithPermission,
|
|
35
35
|
validateFileForWrite
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-XADIBENX.js";
|
|
37
37
|
import {
|
|
38
38
|
serverT
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-TIIWXMGE.js";
|
|
40
40
|
import {
|
|
41
41
|
TurnMetrics,
|
|
42
42
|
clearLLMFailure,
|
|
@@ -55,10 +55,10 @@ import {
|
|
|
55
55
|
COMPACTION_PROMPT,
|
|
56
56
|
buildBasePrompt,
|
|
57
57
|
computeEffectiveTools
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-Z7IT3V22.js";
|
|
59
59
|
import {
|
|
60
60
|
startInspectProxy
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-VGE6UYND.js";
|
|
62
62
|
import {
|
|
63
63
|
checkAborted,
|
|
64
64
|
createProcess,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
spawnShellProcess,
|
|
73
73
|
startProcessCommand,
|
|
74
74
|
stopProcess
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-DQEANXXF.js";
|
|
76
76
|
import {
|
|
77
77
|
getMaxPerSession,
|
|
78
78
|
getSessionProcessCount,
|
|
@@ -93,12 +93,12 @@ import {
|
|
|
93
93
|
extractAbsolutePathsFromCommand,
|
|
94
94
|
extractSensitivePathsFromCommand,
|
|
95
95
|
resolveRelativeTraversals
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-N5AJHJG5.js";
|
|
97
97
|
import {
|
|
98
98
|
getCurrentContextWindowId,
|
|
99
99
|
getCurrentWindowMessageOptions,
|
|
100
100
|
getEventStore
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-NJFXYSXP.js";
|
|
102
102
|
import {
|
|
103
103
|
buildContextMessagesFromEventHistory,
|
|
104
104
|
foldContextState,
|
|
@@ -108,13 +108,13 @@ import {
|
|
|
108
108
|
handleToolResult,
|
|
109
109
|
reorderToolMessages,
|
|
110
110
|
stripOrphanedToolCalls
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-EFEHIJXF.js";
|
|
112
112
|
import {
|
|
113
113
|
findAgentById,
|
|
114
114
|
getRuntimeConfig,
|
|
115
115
|
getSubAgents,
|
|
116
116
|
loadAllAgentsDefault
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-DRIR2IZR.js";
|
|
118
118
|
import {
|
|
119
119
|
createChatDoneMessage,
|
|
120
120
|
createChatLLMRetryFailedMessage,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
SETTINGS_KEYS,
|
|
140
140
|
getSetting,
|
|
141
141
|
setSetting
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-SKNPOZYP.js";
|
|
143
143
|
import {
|
|
144
144
|
logger
|
|
145
145
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1731,7 +1731,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
|
|
|
1731
1731
|
currentMaxTokensOverride = void 0;
|
|
1732
1732
|
if (!compacting) {
|
|
1733
1733
|
const contextState = sessionManager.getContextState(sessionId);
|
|
1734
|
-
const { shouldCompact, appendCompactionPrompt } = await import("./compactor-
|
|
1734
|
+
const { shouldCompact, appendCompactionPrompt } = await import("./compactor-3BVVHO4M.js");
|
|
1735
1735
|
if (shouldCompact(
|
|
1736
1736
|
contextState.currentTokens,
|
|
1737
1737
|
contextState.maxTokens,
|
|
@@ -2447,7 +2447,7 @@ var callSubAgentTool = {
|
|
|
2447
2447
|
};
|
|
2448
2448
|
}
|
|
2449
2449
|
try {
|
|
2450
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
2450
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-BL6XCTUV.js");
|
|
2451
2451
|
const toolRegistry = getToolRegistryForAgent2(agentDef);
|
|
2452
2452
|
const turnMetrics = new TurnMetrics();
|
|
2453
2453
|
const result = await executeSubAgent({
|
|
@@ -3551,11 +3551,11 @@ var mcpConfigTool = createTool(
|
|
|
3551
3551
|
async function notifyContextChanged(sessionId) {
|
|
3552
3552
|
context.sessionManager.setDynamicContextChanged(sessionId, true);
|
|
3553
3553
|
mcpNotifyChanged?.(sessionId);
|
|
3554
|
-
const { injectContextDriftReminders } = await import("./dynamic-context-
|
|
3554
|
+
const { injectContextDriftReminders } = await import("./dynamic-context-5SFXTEAP.js");
|
|
3555
3555
|
await injectContextDriftReminders(context.sessionManager, sessionId);
|
|
3556
3556
|
}
|
|
3557
3557
|
async function rebuildTools() {
|
|
3558
|
-
const { setMcpTools: setMcpTools2 } = await import("./tools-
|
|
3558
|
+
const { setMcpTools: setMcpTools2 } = await import("./tools-BL6XCTUV.js");
|
|
3559
3559
|
const mcpTools = createMcpTools(mcpManagerForTools);
|
|
3560
3560
|
setMcpTools2(mcpTools);
|
|
3561
3561
|
}
|
|
@@ -3564,7 +3564,7 @@ var mcpConfigTool = createTool(
|
|
|
3564
3564
|
if (servers.length === 0) {
|
|
3565
3565
|
return helpers.success(serverT({ en: "No MCP servers configured.", fr: "Aucun serveur MCP configur\xE9." }));
|
|
3566
3566
|
}
|
|
3567
|
-
const { getSessionDisabledServers: getSessionDisabledServers2 } = await import("./session-overrides-
|
|
3567
|
+
const { getSessionDisabledServers: getSessionDisabledServers2 } = await import("./session-overrides-CKS2AVE5.js");
|
|
3568
3568
|
const disabledForSession = new Set(context.sessionId ? getSessionDisabledServers2(context.sessionId) : []);
|
|
3569
3569
|
const visibleServers = servers.filter((server) => !disabledForSession.has(server.name));
|
|
3570
3570
|
if (visibleServers.length === 0) {
|
|
@@ -4697,4 +4697,4 @@ export {
|
|
|
4697
4697
|
getToolRegistryForAgent,
|
|
4698
4698
|
createToolRegistry
|
|
4699
4699
|
};
|
|
4700
|
-
//# sourceMappingURL=chunk-
|
|
4700
|
+
//# sourceMappingURL=chunk-RM4ZBI2B.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDatabase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WOVWVB5J.js";
|
|
4
4
|
|
|
5
5
|
// src/server/db/settings.ts
|
|
6
6
|
var SETTINGS_KEYS = {
|
|
@@ -30,6 +30,7 @@ var SETTINGS_KEYS = {
|
|
|
30
30
|
DISPLAY_COLLAPSE_PROVIDERS_BY_DEFAULT: "display.collapseProvidersByDefault",
|
|
31
31
|
DISPLAY_COLLAPSE_FAVORITES_BY_DEFAULT: "display.collapseFavoritesByDefault",
|
|
32
32
|
DISPLAY_MODEL_FAVORITES: "display.modelFavorites",
|
|
33
|
+
DISPLAY_MOBILE_FULLSCREEN_COMPOSER: "display.mobileFullscreenComposer",
|
|
33
34
|
LLM_DYNAMIC_SYSTEM_PROMPT: "llm.dynamicSystemPrompt",
|
|
34
35
|
LLM_CAVEMAN_THINKING: "llm.cavemanThinking",
|
|
35
36
|
CACHE_WARMING: "cache.warming",
|
|
@@ -74,6 +75,7 @@ var SETTINGS_DEFAULTS = {
|
|
|
74
75
|
[SETTINGS_KEYS.DISPLAY_COLLAPSE_PROVIDERS_BY_DEFAULT]: "false",
|
|
75
76
|
[SETTINGS_KEYS.DISPLAY_COLLAPSE_FAVORITES_BY_DEFAULT]: "false",
|
|
76
77
|
[SETTINGS_KEYS.DISPLAY_MODEL_FAVORITES]: "[]",
|
|
78
|
+
[SETTINGS_KEYS.DISPLAY_MOBILE_FULLSCREEN_COMPOSER]: "false",
|
|
77
79
|
[SETTINGS_KEYS.LLM_DYNAMIC_SYSTEM_PROMPT]: "false",
|
|
78
80
|
[SETTINGS_KEYS.LLM_CAVEMAN_THINKING]: "false",
|
|
79
81
|
[SETTINGS_KEYS.CACHE_WARMING]: "false",
|
|
@@ -170,4 +172,4 @@ export {
|
|
|
170
172
|
pruneFavoriteModels,
|
|
171
173
|
getMaxVisibleItems
|
|
172
174
|
};
|
|
173
|
-
//# sourceMappingURL=chunk-
|
|
175
|
+
//# sourceMappingURL=chunk-SKNPOZYP.js.map
|
|
@@ -2,37 +2,37 @@ import {
|
|
|
2
2
|
generateSessionNameForSession,
|
|
3
3
|
getSessionMessageCount,
|
|
4
4
|
needsNameGeneration
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ACILWRPU.js";
|
|
6
6
|
import {
|
|
7
7
|
launchWorkflowRun
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TRZZCMJ3.js";
|
|
9
9
|
import {
|
|
10
10
|
runChatTurn
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5CZAKVGZ.js";
|
|
12
12
|
import {
|
|
13
13
|
applyDynamicContext,
|
|
14
14
|
computeSessionHash,
|
|
15
15
|
computeUnifiedDiff
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HQDKHNWS.js";
|
|
17
17
|
import {
|
|
18
18
|
devServerManager
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RM4ZBI2B.js";
|
|
20
20
|
import {
|
|
21
21
|
gitSpawnEnv
|
|
22
22
|
} from "./chunk-J7GAZGZT.js";
|
|
23
23
|
import {
|
|
24
24
|
serverT
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TIIWXMGE.js";
|
|
26
26
|
import {
|
|
27
27
|
appendCompactionPrompt
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-Q5JCBAQF.js";
|
|
29
29
|
import {
|
|
30
30
|
hasRecentLLMFailure,
|
|
31
31
|
interruptLLMRetryWait
|
|
32
32
|
} from "./chunk-OA7KBQ2O.js";
|
|
33
33
|
import {
|
|
34
34
|
onProcessEvent
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-DQEANXXF.js";
|
|
36
36
|
import {
|
|
37
37
|
killProcessTree
|
|
38
38
|
} from "./chunk-I72ACQ6R.js";
|
|
@@ -43,14 +43,14 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
combineEventsWithSnapshot,
|
|
45
45
|
getEventStore
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-NJFXYSXP.js";
|
|
47
47
|
import {
|
|
48
48
|
buildMessagesFromStoredEvents,
|
|
49
49
|
foldPendingConfirmations
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-EFEHIJXF.js";
|
|
51
51
|
import {
|
|
52
52
|
getRuntimeConfig
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-DRIR2IZR.js";
|
|
54
54
|
import {
|
|
55
55
|
createChatErrorMessage,
|
|
56
56
|
createChatMessageMessage,
|
|
@@ -69,10 +69,10 @@ import {
|
|
|
69
69
|
} from "./chunk-OVAHNEFG.js";
|
|
70
70
|
import {
|
|
71
71
|
getPlatformShell
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-MEPTCUYN.js";
|
|
73
73
|
import {
|
|
74
74
|
getMaxVisibleItems
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-SKNPOZYP.js";
|
|
76
76
|
import {
|
|
77
77
|
logger
|
|
78
78
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -1350,8 +1350,8 @@ 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-
|
|
1354
|
-
const allAgents = await import("./registry-
|
|
1353
|
+
const { buildCachedPrompt, computePreviewToolDiff } = await import("./dynamic-context-5SFXTEAP.js");
|
|
1354
|
+
const allAgents = await import("./registry-C7RKKHZB.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();
|
|
1357
1357
|
const {
|
|
@@ -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-BL6XCTUV.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-TEUVZCPS.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETTINGS_KEYS,
|
|
3
3
|
getSetting
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SKNPOZYP.js";
|
|
5
5
|
import {
|
|
6
6
|
getLocale,
|
|
7
7
|
setLocale,
|
|
@@ -21,4 +21,4 @@ function serverT(tx, vars) {
|
|
|
21
21
|
export {
|
|
22
22
|
serverT
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-TIIWXMGE.js.map
|